diff options
author | John Anderson <ardour@semiosix.com> | 2007-07-19 22:07:10 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-07-19 22:07:10 +0000 |
commit | 4c12c98e338dd88e7b05b7e47133f91c3e3bbc06 (patch) | |
tree | b4c58bcba79696bcaf453cff5441d6caff417f85 /libs/surfaces/mackie/mackie_port.cc | |
parent | 47add43cd028855cda2292bef9dcde607f948490 (diff) |
Jog Wheel Fun:
- When ffwd/rew is pressed, wheel controls speed
- Zoom button allows jog wheel to zoom
- Scrub button cycles jog from scrub to shuttle to whatever it was before
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2155 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_port.cc')
-rw-r--r-- | libs/surfaces/mackie/mackie_port.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/mackie/mackie_port.cc b/libs/surfaces/mackie/mackie_port.cc index 26c3612a86..2a859702dc 100644 --- a/libs/surfaces/mackie/mackie_port.cc +++ b/libs/surfaces/mackie/mackie_port.cc @@ -408,9 +408,9 @@ void MackiePort::handle_midi_any (MIDI::Parser & parser, MIDI::byte * raw_bytes, ControlState state; // bytes[2] & 0b01000000 (0x40) give sign - int sign = ( bytes[2] & 0x40 ) == 0 ? 1 : -1; + state.sign = ( bytes[2] & 0x40 ) == 0 ? 1 : -1; // bytes[2] & 0b00111111 (0x3f) gives delta - state.ticks = ( bytes[2] & 0x3f) * sign; + state.ticks = ( bytes[2] & 0x3f); state.delta = float( state.ticks ) / float( 0x3f ); control_event( *this, control, state ); |