Skip to content

Modifying or adding a synthDef

Christophe Lengelé edited this page Feb 13, 2024 · 32 revisions

Modifying a synthDef

Adding a synthDef

If you want to add a Synth definition, you have several steps to change in different files :

  1. In the file Init_BuffersSynths, you have to add in the array of the variable ~allSynthsGUI the name of your synthDef and a number for your synthDef. I recommend to add it before the glissandi versions at the end of the line 3888.

  2. In the same file, you have to add your new synth definition, where you want within the code in parentheses from line 4009 to line 7262, by copying another synth definition and changing it following the structure of other synth definition examples.

  3. In the file Init_Pattern, you may have to change the content of some keys, in this case \prepsyn2 and eventually \prepsynExt. In the key \prepsynExt, put the number of your synthDef within the array ~allSynthsGUI in the appropriate letter depending the argument controls you have in your synthDef. If you want to use all the modules of the GUI, like RAT 2 or STR 2, put the number of your synthDef in \b.

  4. In the same file Init_Pattern, you have to define how your synth Definition will handle duration of an event or instance by modifying the key \durenv.

Clone this wiki locally