brucearnold
2014-10-21 14:36:27 UTC
I'm getting back into an old sound I used to use. I'm getting the following
error message:
Operator 'asInteger' applied to a UGen is not supported in scsynth
I could've swore I had this is a SynthDef or possibly I'm having a senior
moment :-) Or could this be a case of "synthdefs, once compiled, are
static."
If so, does anybody have a workaround to get the pitch information as a
number or float within a SynthDef.
Thanks
Bruce
(
SynthDef("mon_cheri1",{ | in, lpfreq=1000, winSize=0.3, pchDispersion=0.2,
timeDispersion=0.1, decaytime=0.3 |
var fReally, fVirtual, delta, gate, out, round;
fReally = Pitch.kr(LPF.ar(in, lpfreq)).at(0);
gate = Lag.kr(Amplitude.kr(in) > 0.001, 0.01, 0.2);
fVirtual = fReally.asInteger;
delta = (fVirtual - fReally) / fReally + 5;
delta = Lag.kr(delta, 0.1);
out = PitchShift.ar(in, winSize, delta, pchDispersion,
timeDispersion, gate);
out = CombL.ar(out, 1, fVirtual.reciprocal, decaytime);
});
)
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/asinteger-tp7614189.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
error message:
Operator 'asInteger' applied to a UGen is not supported in scsynth
I could've swore I had this is a SynthDef or possibly I'm having a senior
moment :-) Or could this be a case of "synthdefs, once compiled, are
static."
If so, does anybody have a workaround to get the pitch information as a
number or float within a SynthDef.
Thanks
Bruce
(
SynthDef("mon_cheri1",{ | in, lpfreq=1000, winSize=0.3, pchDispersion=0.2,
timeDispersion=0.1, decaytime=0.3 |
var fReally, fVirtual, delta, gate, out, round;
fReally = Pitch.kr(LPF.ar(in, lpfreq)).at(0);
gate = Lag.kr(Amplitude.kr(in) > 0.001, 0.01, 0.2);
fVirtual = fReally.asInteger;
delta = (fVirtual - fReally) / fReally + 5;
delta = Lag.kr(delta, 0.1);
out = PitchShift.ar(in, winSize, delta, pchDispersion,
timeDispersion, gate);
out = CombL.ar(out, 1, fVirtual.reciprocal, decaytime);
});
)
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/asinteger-tp7614189.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/