Using the info on this page I created a synth in Supercollider and defined it like this:
//----------------------------------------------------------------------------------------------
(
SynthDef(‘piTest’,
{|freq = 200, amp = 1, out_bus = 0 |
Out.ar(out_bus,
SinOsc.ar([freq,freq],0,0.5)* Line.kr(1, 0, 5, amp, doneAction: 2))}
).writeDefFile(“C:/TEST”) ;
)
//----------------------------------------------------------------------------------------------
I then run the following code in Sonic Pi:
load_synthdefs "C:/TEST/" synth :piTest, note: 60
But I get the error:
Unknown synth :piTest
Any suggestions on where I might go wrong?