View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

radioactivity sc3

in sc3 there is no way to execute sclang functions on scserver.
the example shown in radioactivity sc2 compared to sc3.
see also particular activities (the same as a SynthDef)
____________
//sc3, using NodeProxy (public bus)
//a single burst of dissolution
(
var activity, nAtoms, tHalf;
tHalf = 0.7;
nAtoms = 1e+3;
activity = NodeProxy.audio(s,1);
activity.source = { 
	var n;
	n = max(0, nAtoms - PulseCount.ar(activity.ar, Impulse.ar(0)));
	Dust.ar( n * 2.log / tHalf)
};
activity.play
)

//sc3, using local bus
(
{
var activity, nAtoms, tHalf, n;
tHalf = 0.7;
nAtoms = 1e+3;

n = max(0, nAtoms - PulseCount.ar(LocalIn.ar(2), Impulse.ar(0)));
activity = Dust.ar( n * 2.log / tHalf);
LocalOut.ar(activity);
activity;
}.play;
) 

_____________
//sc2

//a single burst of dissolution
(
var thalf, natoms, activity;
thalf = 0.7;
natoms = 1e+3;
{ natoms = Plug.kr(natoms);
	activity = Dust.ar(2.log/thalf*natoms);
	Sequencer.ar({ natoms.source = natoms.source-1; 0.0 }, activity);
	activity
	}.play;
)

*****
/*
authors so far:
jrh
*/


Link to this Page