First of all, I want to admit I’m rather new to audio programming.
I’m working with some people to create an 8-bit VST to make sounds similar to the NES. A common effect is note slide. I’m just having some trouble getting started here… here’s what I need:
- bpm (120 )
- the key pressed (C )
- the target key (in half-steps) (3 half steps => D# )
- the duration to slide (quarter-note )
…so that when C is pressed on the keyboard, the note slides up to D# for a duration of a quarter-note.
I figured out how to access the bpm of the DAW, and there is midi input implemented. The target note in half-steps and the speed to slide will be options for the user.
Given all that, what’s a good approach for a note slide? Do I do some linear interpolation on the frequency inside of SynthVoice::renderNextBlock? What kind of equation would be useful here to manipulate the frequency-- given bpm, key pressed, target key, and duration?