SNEX Oscillator / Shaper
-
Ahoi!
Are there any examples for snex oscillators out there? I'm looking for analog/vintage shaped waveforms with sexy curves
Something like this for example
I wish there was an ability to draw waveforms like a table or at least input the wavetables in code with a bunch of numbers instead of samples
-
Unfortunately it's not really a simple matter.
To remove aliasing from an arbitrary waveform you need to do some clever work. I imagine the best oscillators will need to be c++ to be efficient.If you simply create a waveform like this using samples, and play it back, there will be tons of audible aliasing.
Additionally, true analog waveforms have tons of interesting phase and shape changes per cycle which is another layer of complexity. But Arbitrary waveform generation is well documented in c++ there are many papers on it. I'm not sure if anyone has done it in snex though, and I'm not sure what the best way to get the node to interface with Hise is, if you intend the user to be able to draw curves, that is. You'd need a way to get data from the Hise Javascript thread into the scriptnode node.
In terms of oscillator design the antialising method is the tricky part, depending on how clean you want it to be, there are different methods available. I don't have any examples to give in hise yet sorry, but there are papers online if you want to know how it works, just search for arbitrary waveform antialiasing / generation
-
@griffinboy I have read a couple of papers about getting alias free waveforms, it's hard to do. Hence me hoping anyone some day lends their expertise to HISE to get a couple of new waveforms we all could use. Then again, the the wavetable synth already does it with random waveforms, so it might not be super complicated to use that tech and simply let the user draw a wave instead of importing it from external wav files...