View Single Post
Old 08-20-2014, 01:29 PM   #90
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by gofer View Post
It would probably be possible to make the script check each time whether the LSB event it is looking at is on the exact same time position as the MSB currently in process (in other words if it's really a pair of 7bits making a 14bit message). That would solve the situation, not sure how much it would slow down the process, though.
Exactly, and it's really not that hard.

Working example:
https://github.com/Breeder/sws/blob/....cpp#L574-L603

We can access CC events by their time order and lower CCs appear first. So you look for your MSB first, and then go through rest of CC events, making sure time position doesn't go further than detected MSB's time position. If you find LSB there - that's your CC pair that makes up 14 bit event

Last edited by Breeder; 08-28-2014 at 02:44 AM.
Breeder is offline   Reply With Quote