commit 78053ba56e5bdb339c6dde319a234a8d289ea215 Author: Jono Targett Date: Fri May 24 15:16:50 2024 +0930 Initial commit; building against libfluidsynth diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e560931 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build/ +fluidsynth/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..69992c3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.7.1) + +project(SELCALToneGenerator VERSION 0.1.0) +set(CMAKE_CXX_STANDARD 17) + +add_subdirectory(fluidsynth) + +file(GLOB_RECURSE sources src/*.cpp src/*.h) +file(GLOB_RECURSE data resources/*) + +add_executable(tone-generator ${sources} ${data}) + +target_link_libraries(tone-generator PRIVATE libfluidsynth) diff --git a/README.md b/README.md new file mode 100644 index 0000000..6abe15e --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ + +# SELCAL Tone Generator + +## Building + +Assumes that the fluidsynth sources are in the fluidsynth/ directory. + +``` +git clone https://github.com/FluidSynth/fluidsynth.git +mkdir build +cd build +cmake .. +make tone-generator +``` + +## Build with system packages? +Requires the following packages (debian) + +``` +sudo apt install libfluidsynth2 libfluidsynth-dev +``` + + +May also need some soundfonts from: + +``` +fluid-soundfont-gm/focal,focal 3.1-5.1 all + Fluid (R3) General MIDI SoundFont (GM) + +fluid-soundfont-gs/focal,focal 3.1-5.1 all + Fluid (R3) General MIDI SoundFont (GS) +``` \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..cccff6f --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,5 @@ +#include + +int main(int argc, char** argv) { + return 0; +} \ No newline at end of file