SynthLab SDK
|
All of the source code for all of the projects is contained in the SynthLab_SDK/source/ folder except the engine and voice object files. These are located in the SynthLab_SDK/examples/synthlab_examples. Rememeber that the engine and voice source files in the main SynthLab_SDK/source/ are the template files that are mostly empty. To create any of the example synths, you will need to:
If you keep the folder hierarchy intact, then the files will all reference each other correctly from their #include statements using relative paths. If you want to create a totally flat project folder, you will need to modify the #include statement's relative paths appropriately.
You can build all six example synths from the same source code. This is because the only difference is in the voice object, and I've placed a few #define statements that allow the code to compile as any of the six projects. These #define statments are simple to find, as they are near the top of the synthvoice.h file.
You uncomment the #define line that represents the synth example, and comment out the other lines of code as shown in the fragment below, where I am building the PCM sample based project. All you need to do is set these #define statements and you are good to go.