Auxiliary class for microtonal conversion.
More...
#include <midimicrotonalhelper.h>
|
| MidiMicrotonalHelper (MidiMicrotonal *midimicrotone) |
| Constructor, resetting the member variables. More...
|
|
void | setInstrument (int instrument) |
| Set the instrument (program) More...
|
|
void | turnNoteOn (int channel, int key, int volume, double delta) |
| Turn note on. More...
|
|
void | turnNoteOff (int channel, int key, double delta) |
| Turn note off. More...
|
|
void | afterTouch (int channel, int key, int volume, double delta) |
| Polyphonic Key Pressure (Aftertouch). More...
|
|
void | controlChange (int channel, int control, int value, double delta) |
| Polyphonic Key Pressure (Aftertouch). More...
|
|
void | bankSelect (int bank, double delta) |
| MidiMicrotonalHelper::bankSelect. More...
|
|
void | allNotesOff () |
| Turn all notes off. More...
|
|
void | resetAllControllers () |
| Reset all controllers. More...
|
|
void | localControl (bool on) |
| Enable local control. More...
|
|
void | tune (int key, double pitch) |
| MidiMicrotonalHelper::tune. More...
|
|
void | setVerbosity (int verbosity) |
| Set the verbosity level of the class-specific messages. More...
|
|
int | getVerbosity () |
| Get the actual verbosity level. More...
|
|
|
void | playNote (bool on, int mappedChannel, int key, int vol, double delta) |
|
void | setPitchBend (int channel, double pitch) |
|
Auxiliary class for microtonal conversion.
Definition at line 36 of file midimicrotonalhelper.h.
MidiMicrotonalHelper::MidiMicrotonalHelper |
( |
MidiMicrotonal * |
midimicrotone | ) |
|
Constructor, resetting the member variables.
- Parameters
-
midimicrotone | : Pointer back to the instance of MidiMicrotone |
Definition at line 36 of file midimicrotonalhelper.cpp.
void MidiMicrotonalHelper::afterTouch |
( |
int |
channel, |
|
|
int |
key, |
|
|
int |
volume, |
|
|
double |
delta |
|
) |
| |
void MidiMicrotonalHelper::allNotesOff |
( |
| ) |
|
void MidiMicrotonalHelper::bankSelect |
( |
int |
bank, |
|
|
double |
delta |
|
) |
| |
void MidiMicrotonalHelper::controlChange |
( |
int |
channel, |
|
|
int |
control, |
|
|
int |
value, |
|
|
double |
delta |
|
) |
| |
int Log::getVerbosity |
( |
| ) |
|
|
inherited |
Get the actual verbosity level.
- Returns
- : Verbosity level (1...4)
Definition at line 118 of file log.cpp.
void MidiMicrotonalHelper::localControl |
( |
bool |
on | ) |
|
Enable local control.
If one plays on an electronic keyboard it is per default controlled locally, that is, pressing a key produces a sound. This means that the keyboard unit and the sound-generating unit in the keyboard are connected. For playing in just intonation, we have to switch the local control off and send all data through the attached computer.
- Parameters
-
on | : True = local control, false = no local control |
Definition at line 352 of file midimicrotonalhelper.cpp.
void MidiMicrotonalHelper::playNote |
( |
bool |
on, |
|
|
int |
mappedChannel, |
|
|
int |
key, |
|
|
int |
vol, |
|
|
double |
delta |
|
) |
| |
|
private |
void MidiMicrotonalHelper::resetAllControllers |
( |
| ) |
|
void MidiMicrotonalHelper::sendInitialMidiCommands |
( |
void |
| ) |
|
|
slot |
Send initial Midi commands.
This function sends the intial MIDI commands for initialization. In particular it resets all channels to the same mInstrument. Moreover, it switches the local control of the target device off.
Definition at line 326 of file midimicrotonalhelper.cpp.
void MidiMicrotonalHelper::setInstrument |
( |
int |
instrument | ) |
|
void MidiMicrotonalHelper::setPitchBend |
( |
int |
channel, |
|
|
double |
pitch |
|
) |
| |
|
private |
void Log::setVerbosity |
( |
int |
verbosity | ) |
|
|
inherited |
Set the verbosity level of the class-specific messages.
- Parameters
-
verbosity | : Verbosity level (1...4) |
Definition at line 107 of file log.cpp.
void MidiMicrotonalHelper::tune |
( |
int |
key, |
|
|
double |
pitch |
|
) |
| |
MidiMicrotonalHelper::tune.
This function receives the key number and the corresponding cent deviatin from the tuner module. It scans the array to look up which of the 16 channels currently plays this key. If so, the pitch bend function is called.
- Parameters
-
key | : Number of the key |
pitch | : pitch versus ET in cent |
Definition at line 269 of file midimicrotonalhelper.cpp.
void MidiMicrotonalHelper::turnNoteOff |
( |
int |
channel, |
|
|
int |
key, |
|
|
double |
delta |
|
) |
| |
void MidiMicrotonalHelper::turnNoteOn |
( |
int |
channel, |
|
|
int |
key, |
|
|
int |
volume, |
|
|
double |
delta |
|
) |
| |
const int MidiMicrotonalHelper::cDrumChannel = 9 |
|
private |
QVector<double> MidiMicrotonalHelper::mCurrentPitch |
|
private |
int MidiMicrotonalHelper::mInstrument |
|
private |
QVector<int> MidiMicrotonalHelper::mKeyOfMappedChannel |
|
private |
QVector<bool> MidiMicrotonalHelper::mMappedChannelIsUsed |
|
private |
int MidiMicrotonalHelper::mSequentialNumber |
|
private |
QVector<int> MidiMicrotonalHelper::mSequentialNumberOfMappedChannel |
|
private |
The documentation for this class was generated from the following files: