|
vector< int > | keys |
| this vector holds 12 int values that rapresents the keys that triggers the notes. By default it is initalized to the keys of a qwerty keyboard, but you can change that manually
|
|
◆ draw()
void pdsp::ComputerKeyboard::draw |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
draws some graphics and infos about the state of the object
- Parameters
-
[in] | x | x coordinate |
[in] | y | y coordinate |
[in] | w | width |
[in] | h | height |
◆ out_pitch()
returns the pitch output of the given voice
- Parameters
-
[in] | voice | voice number. It won't be clamped, so use a valid voice number to avoid segfaults. |
◆ out_trig()
returns the trigger output of the given voice
- Parameters
-
[in] | voice | voice number. It won't be clamped, so use a valid voice number to avoid segfaults. |
◆ setKeysToggle()
void pdsp::ComputerKeyboard::setKeysToggle |
( |
bool |
active | ) |
|
when active, pressing a key generate a note on and pressing it again a note off
- Parameters
-
[in] | active | true for activating the mode, false by default |
◆ setMonoMode()
void pdsp::ComputerKeyboard::setMonoMode |
( |
bool |
legato, |
|
|
pdsp::MonoPriority |
priority = pdsp::Last |
|
) |
| |
set the mode to Mono, with the given control parameters
- Parameters
-
[in] | legato | true if you want to retrigger the envelopes only when all the key are released |
[in] | priority | you can use Last, Low or High as parameter |
◆ setPolyMode()
void pdsp::ComputerKeyboard::setPolyMode |
( |
int |
voices | ) |
|
set the mode to Poly, with the given max notes
- Parameters
-
[in] | maxNotes | max note for the polyphony, 4 is the minimum |
Note stealing will steal the oldest note that are not the highest or the lowest playing notes
◆ setPortamento()
void pdsp::ComputerKeyboard::setPortamento |
( |
pdsp::PortamentoMode |
mode, |
|
|
float |
timeMs |
|
) |
| |
sets the portamento parameters
- Parameters
-
[in] | portamentoMode | Off or On |
[in] | timeMs | slew time in milliseconds |
The documentation for this class was generated from the following files: