fix computation of MMC base track for MMC rec enable (Ben Loftis)
git-svn-id: svn://localhost/trunk/ardour2@301 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
81ef56fba9
commit
4e2d99fd21
@ -512,7 +512,7 @@ MachineControl::write_track_record_ready (byte *msg, size_t len)
|
||||
change track 3: msg[0] = 1; << second byte of track bitmap
|
||||
msg[1] = 0000001; << binary: bit 0 set
|
||||
|
||||
the (msg[0] * 7) - 5 computation is an attempt to
|
||||
the (msg[0] * 8) - 6 computation is an attempt to
|
||||
extract the value of the first track: ie. the one
|
||||
that would be indicated by bit 0 being set.
|
||||
|
||||
@ -529,7 +529,11 @@ MachineControl::write_track_record_ready (byte *msg, size_t len)
|
||||
supported number of tracks.
|
||||
*/
|
||||
|
||||
base_track = (msg[0] * 7) - 5;
|
||||
if (msg[0] == 0) {
|
||||
base_track = -5;
|
||||
} else {
|
||||
base_track = (msg[0] * 8) - 6;
|
||||
}
|
||||
|
||||
for (n = 0; n < 7; n++) {
|
||||
if (msg[1] & (1<<n)) {
|
||||
|
Loading…
Reference in New Issue
Block a user