New user here. Any SNEX tutorials?
-
Ahoi new user here.
I was wondering if there are any tutorials or anything helpful to get me started with HISE and SNEX. I've been at it for 4 weeks now, managed to compile a version with faust support but can't get a simple oscillator to work properly and found it very hard to learn with very little helpful resources for bloody beginners.
when I create a core_snex_oscillator it only outputs sound on the left chanel
where do I chance the waveform? how do I control the phase? how can I get a PWM square instead of a sawtooth? What algorithm is used to create the waveform? Is the minblep method available or implemented?
all the best
-
@Morphoice Check the snippet browser. Help -> Browse example snippets. Use the
SNEX
tag, there are 3-4 examples that show how to use the API.Once you understand the basic API, you should be able to use generic DSP tutorials as the language is pretty similar to C++. But yes, I admit that the amount of examples and docs for SNEX are sparse compared to the rest of the stuff.
-
@Morphoice There are 6 SNEX tutorials in the snippet browser, you can check it.
Use the latest commit of HISE > Help > Browse Snippet Examples
Download the content, that's it.
NOTE: Christoph almost the same reply time as you, but you came out faster :)
-
@resonant @Christoph-Hart superb thanks I will check those out!
-
I'll be releasing tutorials soon.
-
@griffinboy plssssss
-
I worked through some of the provided examples but still couldnt figure out how to e.g. simply modify the audio by code in a snex node
can someone point me to what to do if I say just wanted to make a node that runs all audio through a tanh function to saturate. -
I'm releasing a video soon which will tackle it in detail.
But to hopefully get you on the right track fast, create a new snex shaper node, and create a new file inside of it.
Now open up the node, you'll see a process function. it will look something like this:
ProcessData<2> data;
for(auto& ch: data)
{
// Pass thech
iterator into thetoChannelData
function
// in order to iterator over the float samples...
for(float& s: data.toChannelData(ch))
{
s *= 0.5f;
}
}This code here iterates over the samples and multiplies each sample by 0.5
What you want to do is replace this with
s = Math.tan(s)Or tahn, I don't remember which one snex uses
-
@FatMitchell
Would you rather I did a tutorial on snex, or on c++ nodes?C++ is more complex but allows you to do some really complex DSP not possible in snex.
Depends what you are wanting it for.