Closed markwheeler closed 6 years ago
I haven't tried your code out but you might wanna try wrapping the phase, ie. see NOTE on phase argument in http://doc.sccode.org/Classes/SinOsc.html .
Also I mostly use SinOsc.ar rather than sin() in my SynthDefs, I don't know if that matters.
Aha good shout, it hadn't occurred to me that I'd need to wrap values there but that solves it!
As an aside, I'm using sin() rather than SinOsc here as phase drifts between SinOscs unfortunately.
arguably wrapping should not be needed but glad if it solved the problem :)
Ran into this oddness while working on an additive synthdef. Not quite sure what to make of it... Here's some demo code (warning, horrible sounds!):
This engine works fine for me and shows around 25% CPU usage according to
top
with no system FX running. However, change themult
var to50
and the CPU usage now jumps to 90%.It seems there is a number which if
sin()
is passed a value greater than, performance drops drastically. I'm unable to reproduce anything similar on desktop so assuming this is some quirk of norns software or hardware?