[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Score issue (FAILURE s_new SynthDef not found)
Hmm... in your startup.rtf file, do you set the SynthDef directory to
anything other then the default? If you don't, can you post the
SynthDef code itself so I can test it?
BTW - you can skip the whole:
(
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;
)
step, and just add the OSC message right into a Score object itself.
The above code was from the days before Score (for the most part).
h = Score.new;
h.add([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]]);
h.add([2.0, 0]);
h.play;
Hope that helps.
Josh
On Mar 3, 2009, at 8:46 PM, e deleflie wrote:
Hi Josh,
yes, my SynthDef is defined using SynthDef(...).load(s); .... and it
does appear in the list when I do:
(
SynthDescLib.global.read;
SynthDescLib.global.browse;
)
does that not confirm that it is there? ... BTW I'm not doing NRT
(yet) ... just learning how to use the SCore object to start (dont
know if that makes a diff).
Etienne
On Wed, Mar 4, 2009 at 3:34 PM, Josh Parmenter
<josh@xxxxxxxxxxxxxxxxx> wrote:
You need to make sure you .load or .store your SynthDef. The NRT
process is
done with a new instance of the Server, and the actual file itself
needs to
be written to disc for the NRT Server to find it.
Hope that helps.
Josh
On Mar 3, 2009, at 8:25 PM, e deleflie wrote:
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/
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own
interpretation of how modern society is structured: whether
actively or
passively, consciously or unconsciously, he makes choices in this
regard. He
may be conservative or he may subject himself to continual renewal;
or he
may strive for a revolutionary, historical or social palingenesis."
- Luigi
Nono
*/
_______________________________________________
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/
_______________________________________________
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/
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own
interpretation of how modern society is structured: whether actively
or passively, consciously or unconsciously, he makes choices in this
regard. He may be conservative or he may subject himself to continual
renewal; or he may strive for a revolutionary, historical or social
palingenesis." - Luigi Nono
*/
_______________________________________________
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/