Initial commit; building against libfluidsynth
This commit is contained in:
commit
78053ba56e
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
build/
|
||||
fluidsynth/
|
||||
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal 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
32
README.md
Normal 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
5
src/main.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
#include <fluidsynth.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user