Mercurial > hg > touchkeys
comparison Source/Mappings/Control/TouchkeyControlMapping.cpp @ 11:c6f30c1e2bda
Fixes for OSC emulation. Also a debugging tool for generating random TouchKeys data.
author | Andrew McPherson <andrewm@eecs.qmul.ac.uk> |
---|---|
date | Sat, 23 Nov 2013 14:47:02 +0000 |
parents | 3580ffe87dc8 |
children | 85577160a0d4 |
comparison
equal
deleted
inserted
replaced
10:1afe374c4511 | 11:c6f30c1e2bda |
---|---|
377 lastControlValue_ = latestValue; | 377 lastControlValue_ = latestValue; |
378 } | 378 } |
379 } | 379 } |
380 | 380 |
381 // Register for the next update by returning its timestamp | 381 // Register for the next update by returning its timestamp |
382 nextScheduledTimestamp_ = currentTimestamp + updateInterval_; | 382 nextScheduledTimestamp_ = 0; //currentTimestamp + updateInterval_; |
383 return nextScheduledTimestamp_; | 383 return nextScheduledTimestamp_; |
384 } | 384 } |
385 | 385 |
386 // MIDI note-on message received | 386 // MIDI note-on message received |
387 void TouchkeyControlMapping::midiNoteOnReceived(int channel, int velocity) { | 387 void TouchkeyControlMapping::midiNoteOnReceived(int channel, int velocity) { |