Hey everyone. I’m new to JUCE and was hoping to get a bit of help finding my way around the API.
The current project I’m working on is basically just a wave shaper that allows users to sort of draw a wave, then play it. Nothing amazing or special, just a starting point.
Right now, the API chunks I’m looking for are:
How to declare midi inputs for a vst/au? I followed the tutorial, but ended up with a vst that doesn’t accept midi input (I think). I think I need something like
BusesProperties().withInput ("Input", AudioChannelSet::stereo(), true)
After the user creates a wave shape, I’d like to turn it into a static wavetable wave by computing all the values of the wave (rendered at the audio rate on a very low note). I could store all of these in an array, or maybe a buffer, but I feel like there must be a wavetable wave class. Ideally, it might have some helpful functions like mixing two samples if a position between two known samples is requested. Is there a class like this available?
What chunk of the API should I look into for drawing arbitrary shapes (in this case a custom wave form)? I’d like to be able to draw lines with a bit of anti-aliasing, perhaps even some subpixel stuff if available.
I’ve found SetSkewFactor, but what should I set it to for your average log10 (??) decibel scale? https://docs.juce.com/master/classSlider.html#aba8fe3610e7198bd4c1f2804736bfbf2
I don’t want to reinvent the wheel too much. Are there some premade envelope and filter modules/ tools? If not, where can I find some?
I’m sure I’ll end up with more questions, but that’s it for now. Thanks for any help!