A simple portamento (pitch slide from one note to the next) effect, useful for note-based applications. More...
Public Member Functions | |
Portamento () | |
Constructor. | |
void | setTime (unsigned int milliseconds) |
Set how long it will take to slide from note to note, in milliseconds. | |
void | start (unsigned char note) |
Call this at note-on, it initialises the portamento. | |
void | start (Q16n16 note) |
Call this at note-on, it initialises the portamento. | |
Q16n16 | next () |
Use this in updateControl() to provide a frequency to the oscillator it's controlling, for example: myOscil.setFreq_Q16n16(myPortamento.next());. |
A simple portamento (pitch slide from one note to the next) effect, useful for note-based applications.
Definition at line 33 of file Portamento.h.
Q16n16 Portamento< CONTROL_UPDATE_RATE >::next | ( | ) | [inline] |
Use this in updateControl() to provide a frequency to the oscillator it's controlling, for example: myOscil.setFreq_Q16n16(myPortamento.next());.
Definition at line 82 of file Portamento.h.
void Portamento< CONTROL_UPDATE_RATE >::setTime | ( | unsigned int | milliseconds | ) | [inline] |
Set how long it will take to slide from note to note, in milliseconds.
milliseconds |
Definition at line 49 of file Portamento.h.
void Portamento< CONTROL_UPDATE_RATE >::start | ( | unsigned char | note | ) | [inline] |
Call this at note-on, it initialises the portamento.
note | a midi note number, a whole number. |
Definition at line 58 of file Portamento.h.
void Portamento< CONTROL_UPDATE_RATE >::start | ( | Q16n16 | note | ) | [inline] |
Call this at note-on, it initialises the portamento.
note | a midi note number in Q16n16 fractional format. This is useful for non-whole note or detuned values. |
Definition at line 69 of file Portamento.h.