36 : mMidiMicrotonalHelper(this)
40 , mLastChannelModeMessage(0)
46 connect(&
mTimer,&QTimer::timeout,
125 else LOGWARNING <<
"Microtonal converter is already off";
197 LOGSTATUS <<
"Microtonal converter not working." << event;
210 LOGSTATUS <<
"Receive Midi event" << event;
211 int channel =
event.byte0() & 0x0f;
212 quint8 code =
event.byte0() & 0xf0;
215 QMutexLocker locker(&
mMutex);
222 switch (event.byte1())
268 LOGMESSAGE <<
"Unrecognized Midi code" <<
event.byte0();
286 LOGSTATUS <<
"Microtonal converter is switched off";
290 QMapIterator<int, double> entry(corrections);
294 QMutexLocker locker(&
mMutex);
295 while (entry.hasNext())
309 QMutexLocker locker(&
mMutex);
312 LOGSTATUS <<
"Microtonal converter is switched off";
326 QMutexLocker locker(&
mMutex);
341 LOGMESSAGE <<
"Re-initialize after I/O device change";
bool stop()
Stop the microtonal converter.
void receiveTuningCorrections(QMap< int, double > corrections)
Input slot: Receive tuning corrections from the tuner (<key,cent>)
void setModuleName(const QString &name)
Specify the name of the class-specific module.
MidiMicrotonal()
Constructor, resetting member variables.
int getVerbosity()
Get the actual verbosity level.
bool exit()
Shutdown, no functionality.
void allNotesOff()
Turn all notes off.
void controlChange(int channel, int control, int value, double delta)
Polyphonic Key Pressure (Aftertouch).
bool start()
Start the microtonal converter.
void allNotesOff()
Slot: Turns all notes off.
void setVerbosity(int verbosity)
Set the verbosity level of the class-specific messages.
void setInstrument(int instrument)
Set the instrument (program)
void activate(bool active)
Activate or deactivate the module.
void setMidiOutputChannel(int channel)
Slot: Set the instrument channel of the external Midi device.
int mLastChannelModeMessage
void turnNoteOn(int channel, int key, int volume, double delta)
Turn note on.
void localControl(bool on)
Enable local control.
void resume()
Resume from suspend mode.
bool init()
Initialization, no functionality.
void sendInitialMidiCommands(void)
Send initial Midi commands.
void tune(int key, double pitch)
MidiMicrotonalHelper::tune.
static const QMidiMessage cLoopMarker
Closed-loop marking event.
void suspend()
Suspend the microtonal converter.
void reInitializeConvertedMidiStream()
Slot: Re-initialize the output stream.
void receiveMidiEvent(const QMidiMessage event)
Input slot: Here the module receives the stream of incoming Midi events.
void turnNoteOff(int channel, int key, double delta)
Turn note off.
MidiMicrotonalHelper mMidiMicrotonalHelper