All,
I've read other posts about 'FAILURE s_new SynthDef not found' but
cant seem to crack the nut. The first part of the below code works,
the second part (using Score) does not. Cant work out why
Supercollider thinks that the synthDef does not exist ... (its
definitely there according to SynthDescLib.global.read;
SynthDescLib.global.browse;)
I'm on 3.3alpha on OSX.
// this works fine
s.sendSynthDef(\ambisonic_grain);
s.sendMsg(\s_new, \ambisonic_grain, s.nextNodeID, 1, 1,\w, w, \x, x,
\y, y, \z, z,\triggerEvery, 4, \lengthToTriggerFactor, 12,
\randomPositionSpread, 24, \randomDurationSpread, 0 );
// this doesn't work
(
var f, g;
TempoClock.default.tempo = 1;
g = [
[0.0, [ \s_new, \ambisonic_grain, s.nextNodeID, 1, 1, \w, w, \x, x,
\y, y, \z, z,\triggerEvery, 4, \lengthToTriggerFactor, 12,
\randomPositionSpread, 24, \randomDurationSpread, 0]],
[2.0, [\c_set, 0, 0]] // finish
];
f = File("score-test","w");
f.write(g.asCompileString);
f.close;
)
h = Score.newFromFile("score-test");
h.play(s);
Etienne
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/