SuperDirt
SuperDirt copied to clipboard
Diversion does not work with TidalCycles (but as SuperDirt event)
It looks like I can not use diversions in the current version of SuperDirt. My diversion example looks like this:
(
var diversions = ();
~diversions = diversions;
~d1.defaultParentEvent[\diversion] = { |dirtEvent| diversions[~s].value(dirtEvent.event) };
~diversions[\bubu] = {
Pfindur(~sustain ? 1,
Pbind(
\dur, 0.04,
\note, Pbrown(-15, 15 ! 5, 0.3, inf) + 16,
\out, ~out, \pan, ~pan, \amp, ~amp * 0.1
)
).play
};
)
This works totally fine when I try (type:\dirt, s:\bubu, dirt: ~dirt, out:~dirt.orbits[0].outBus).play;.
But when I try to use it in TidalCycles with d1 $ s "bubu"
then I receive this error in SuperCollider:
no synth or sample named 'bubu' could be found.
module 'sound': instrument not found: bubu