A simple portamento (pitch slide from one note to the next) effect, useful for note-based applications. More...
#include <Portamento.h>
A simple portamento (pitch slide from one note to the next) effect, useful for note-based applications.
Definition at line 22 of file Portamento.h.
Public Member Functions | |
Portamento () | |
Constructor. | |
void | setTime (unsigned int milliseconds) |
Set how long it will take to slide from note to note, in milliseconds. More... | |
void | start (uint8_t note) |
Call this at note-on, it initialises the portamento. More... | |
void | start (Q16n16 note) |
Call this at note-on, it initialises the portamento. More... | |
Q16n16 | next () |
Use this in updateControl() to provide a frequency to the oscillator it's controlling. More... | |
|
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 72 of file Portamento.h.
|
inline |
Set how long it will take to slide from note to note, in milliseconds.
milliseconds |
Definition at line 38 of file Portamento.h.
|
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 58 of file Portamento.h.
|
inline |
Call this at note-on, it initialises the portamento.
note | a midi note number, a whole number. |
Definition at line 47 of file Portamento.h.