[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Score issue (FAILURE s_new SynthDef not found)



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/