Skip to content

Commit

Permalink
MIDI - Don't apply base velocity to all controller values. (LMMS#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine authored and PhysSong committed Jul 8, 2017
1 parent 1c21eae commit 74b567f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/midi/MidiPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ void MidiPort::processInEvent( const MidiEvent& event, const MidiTime& time )
{
return;
}
}

if( fixedInputVelocity() >= 0 && inEvent.velocity() > 0 )
{
inEvent.setVelocity( fixedInputVelocity() );
if( fixedInputVelocity() >= 0 && inEvent.velocity() > 0 )
{
inEvent.setVelocity( fixedInputVelocity() );
}
}

m_midiEventProcessor->processInEvent( inEvent, time );
Expand Down

0 comments on commit 74b567f

Please sign in to comment.