Initial commit; building against libfluidsynth

This commit is contained in:
Jono Targett 2024-05-24 15:16:50 +09:30
commit 78053ba56e
4 changed files with 52 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build/
fluidsynth/

13
CMakeLists.txt Normal file
View File

@ -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)

32
README.md Normal file
View File

@ -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)
```

5
src/main.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <fluidsynth.h>
int main(int argc, char** argv) {
return 0;
}