From 2327581da7bdd53c22353acb6bcbd0b487d50733 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 23 Jan 2013 23:11:47 +0100 Subject: [PATCH] MidiPort: coding style fixes --- src/core/midi/MidiPort.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/core/midi/MidiPort.cpp b/src/core/midi/MidiPort.cpp index bdf9d42fd..eb6949356 100644 --- a/src/core/midi/MidiPort.cpp +++ b/src/core/midi/MidiPort.cpp @@ -45,17 +45,17 @@ MidiPort::MidiPort( const QString & _name, MidiClient * _mc, m_outputChannelModel( 1, 1, MidiChannelCount, this, tr( "Output channel" ) ), m_inputControllerModel( 0, 0, MidiControllerCount, this, - tr( "Input controller" ) ), + tr( "Input controller" ) ), m_outputControllerModel( 0, 0, MidiControllerCount, this, - tr( "Output controller" ) ), + tr( "Output controller" ) ), m_fixedInputVelocityModel( -1, -1, MidiMaxVelocity, this, - tr( "Fixed input velocity" ) ), + tr( "Fixed input velocity" ) ), m_fixedOutputVelocityModel( -1, -1, MidiMaxVelocity, this, tr( "Fixed output velocity" ) ), m_fixedOutputNoteModel( -1, -1, MidiMaxNote, this, tr( "Fixed output note" ) ), m_outputProgramModel( 1, 1, MidiProgramCount, this, - tr( "Output MIDI program" ) ), + tr( "Output MIDI program" ) ), m_readableModel( false, this, tr( "Receive MIDI-events" ) ), m_writableModel( false, this, tr( "Send MIDI-events" ) ) { @@ -168,10 +168,11 @@ void MidiPort::processOutEvent( const midiEvent & _me, const midiTime & _time ) --ev.m_channel; } */ if( ( _me.m_type == MidiNoteOn || _me.m_type == MidiNoteOff ) && - fixedOutputNote() >=0 ) { - // Convert MIDI note number (from spinbox) -> LMMS note number - // that will be converted back when outputted. - ev.key() = fixedOutputNote() - KeysPerOctave; + fixedOutputNote() >= 0 ) + { + // Convert MIDI note number (from spinbox) -> LMMS note number + // that will be converted back when outputted. + ev.key() = fixedOutputNote() - KeysPerOctave; } if( fixedOutputVelocity() >= 0 && _me.velocity() > 0 && ( _me.m_type == MidiNoteOn ||