Skip to content

Commit

Permalink
MIDI - Don't apply base velocity to all controller values. (#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine authored Jul 6, 2017
1 parent c6c67b3 commit d65e1a3
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 d65e1a3

Please sign in to comment.