Class for converting an ordinary Midi stream into a microtonal one.
More...
#include <midimicrotonal.h>
Class for converting an ordinary Midi stream into a microtonal one.
Definition at line 62 of file midimicrotonal.h.
MidiMicrotonal::MidiMicrotonal |
( |
| ) |
|
void MidiMicrotonal::activate |
( |
bool |
active | ) |
|
Activate or deactivate the module.
- Parameters
-
active | : true if on, false otherwise |
Definition at line 171 of file midimicrotonal.cpp.
void MidiMicrotonal::allNotesOff |
( |
| ) |
|
|
slot |
bool MidiMicrotonal::exit |
( |
| ) |
|
int Log::getVerbosity |
( |
| ) |
|
|
inherited |
Get the actual verbosity level.
- Returns
- : Verbosity level (1...4)
Definition at line 118 of file log.cpp.
bool MidiMicrotonal::init |
( |
| ) |
|
bool MidiMicrotonal::isWorking |
( |
| ) |
|
|
inline |
void MidiMicrotonal::onClosedMidiLoopDetected |
( |
| ) |
|
|
signal |
onClosedMidiLoopDetected
Signal sent when a closed Midi loop has been detected. If the application is connected to a virtual loop device (such as "Midi Through"), the emitted Midi commands immediately bounce back, leading to a short-circuit of Midi commands freezing the application. To this end the Midi output regularly sends markers which are detected on the input side. If a marker is detected, this signal is sent which should be used to disconnect the Midi output.
void MidiMicrotonal::receiveMidiEvent |
( |
const QMidiMessage |
event | ) |
|
|
slot |
Input slot: Here the module receives the stream of incoming Midi events.
The input slot processes the event only if the module has been started. It is executed in the thread that instantiated the module.
Definition at line 192 of file midimicrotonal.cpp.
void MidiMicrotonal::receiveTuningCorrections |
( |
QMap< int, double > |
corrections | ) |
|
|
slot |
Input slot: Receive tuning corrections from the tuner (<key,cent>)
- Parameters
-
corrections | : QMap<int,double> holding the keys and the corresponding cent deviation. |
Definition at line 282 of file midimicrotonal.cpp.
void MidiMicrotonal::reInitializeConvertedMidiStream |
( |
| ) |
|
|
slot |
Slot: Re-initialize the output stream.
This slot is called when the MIDI output device changes
Definition at line 336 of file midimicrotonal.cpp.
void MidiMicrotonal::resume |
( |
| ) |
|
void MidiMicrotonal::sendMidiEvent |
( |
QMidiMessage |
event | ) |
|
|
signal |
Output signal: This is the converted outgoing stream of Midi events.
void MidiMicrotonal::setMidiOutputChannel |
( |
int |
channel | ) |
|
|
slot |
Slot: Set the instrument channel of the external Midi device.
While Midi is polyphononic, the remapped Midi produced by this class can play only one instrument, which is set here.
- Parameters
-
Definition at line 324 of file midimicrotonal.cpp.
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.
bool MidiMicrotonal::start |
( |
| ) |
|
bool MidiMicrotonal::stop |
( |
| ) |
|
void MidiMicrotonal::suspend |
( |
| ) |
|
Suspend the microtonal converter.
If a closed Midi loop is detected the converter is suspended. In the suspend mode the input slot receiveMidiEvent() ignores any input.
Definition at line 139 of file midimicrotonal.cpp.
const QMidiMessage MidiMicrotonal::cLoopMarker |
|
static |
Closed-loop marking event.
The application sends this MIDI command to the output Midi device from time to time. If this marker is received by the Midi input, this indicates that the externally connected device simply forwards the output back to the input, which would lead to a dangerous feedback loop of Midi commend. This marker serves as a tag to discover such feedback loops and to disconnect the output device in such a case.
Definition at line 143 of file midimicrotonal.h.
bool MidiMicrotonal::mActive |
|
private |
int MidiMicrotonal::mLastChannelModeMessage |
|
private |
QMutex MidiMicrotonal::mMutex |
|
private |
bool MidiMicrotonal::mRunning |
|
private |
bool MidiMicrotonal::mSuspended |
|
private |
QTimer MidiMicrotonal::mTimer |
|
private |
The documentation for this class was generated from the following files: