SynthAModelerFireFaderLab-Linux

From CCRMA Wiki
Revision as of 06:29, 8 April 2016 by Eberdahl (Talk | contribs) (Created page with "This page last updated April 2016 Current Requirements: Linux These instructions are laid out assuming that the Linux distribution is using apt-get. == Installing Dependenci...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page last updated April 2016

Current Requirements: Linux These instructions are laid out assuming that the Linux distribution is using apt-get.

Installing Dependencies

If you don't have a C++ compiler such as g++ or clang installed, then you will need to install it. You will also need to download and install faust-0.9.73.tgz from the source -- see [1]


You will also need:

sudo apt-get install qjackctl sudo apt-get libqt4-dev qt4-qmake



Installing Synth-A-Modeler

  • Download Synth-A-Modeler version 0.9 (SaM-0.9)
  • Now open up the Terminal, extract SaM-0.9, and change directories in there.
  • Before you plug in your FireFader, run the command

ls /dev/tty*

for a list of the serial devices. Then, after plugging in the FireFader, run

ls /dev/tty*

again. The new path you see is the path to your FireFader. For instance, on my machine it is /dev/ttyACM0. Then edit the file PathToDevice.txt so that it contains only the new path, that is for me it contains only the following:

/dev/ttyACM0


Exploring Synth-A-Modeler

  • Run the following command to start the GUI for adjusting the Jack parameters:

qjackctl &

JackPilotSaMSettings.jpg

(If you have problems with dropouts, you can change the Buffer Size to 128 instead (consider using an external USB audio device if it helps you get the latency down!) -- but 64 works fine for me as long as I am not running too many other applications. 32 or 16 may even work on some computers and might result in better feeling haptics.)

  • Click on the 'Save' button and then start the Jack audio server by clicking on the Start button.
  • To build all of the models stored in MDL files into QT applications for the Jack audio server, run the command

make jackqt

The make command should've caused the subdirectory jackqtdir to be created containing a compiled application for each model. (If that didn't work, then talk to one of us.) Type the following command to see which models it compiled:

ls jackqtdir

  • You can use the js.sh script to make it easier to start one of those models. (Some internal Faust 0.73 code isn't being very good about automatically connecting applications up to the jack router, and this script works around that.) For instance, to start the model pluck_one_string_pitch_control_auto_timbre.mdl, you should be able to run the following command:

./js.sh pluck_one_string_pitch_control_auto_timbre

Hint: Use the tab key!

  • Now, try editing the models. The make jackqt command should detect any MDL files that have changed and recompile the corresponding applications.
  • For information on the syntax, please see the Synth-A-Modeler Wiki or better yet the sheets we are passing around.


Notes

  • You can only run one model at a time! Really!



Going Further

  • To force Synth-A-Modeler to only compile one model, such as guiro.mdl, you can run the following command:

make jackqt SAMTARGET=guiro

  • Setup the Pure Data (pd) header files for Faust and try the make puredata command.
  • Note: Currently that is probably building versions that only work in Pd extended.





Troubleshooting

  • If Synth-A-Modeler crashes badly, it can also crash the Jack audio server. In this case, don't forget to restart the Jack audio server.
  • Requires minimum Perl version 5.10
  • The following kinds of errors can for instance happen if you ever upgraded Faust but forgot to remove the older version of Faust:

error: macro "max" passed 3 arguments, but takes just 2 or other particularly errors involving some standard template libraries, then please make sure you only have one version of Faust installed. You can remove all older versions of Faust by entering into each of their source directories and running sudo make uninstall (Then of course you will need to reinstall you favorite version of Faust 0.9.58 by going into its source directory and running sudo make install