So, I've been playing with MIDI a bit in the past couple of days, helping 
making sure the impending release of the Hercules driver is as smooth as 
possible (for anyone interested, I expect it to be released in the very short 
term, and Mixxx pretty much completely supports it now).

I've got a couple of things I want to have a look at given time. Note that I 
haven't even attempted to look at the MIDI code just yet, so this might be a 
little premature, but I figured it was worth seeing if there was any reason 
to not do what I'm planning.

1) Apparently we send a MIDI 'system reset' command when Mixxx exits. 
According to the MIDI specification, we should really not do this without a 
good reason. I'm thinking of having a 'set all LEDs to off on startup and 
shutdown' routine to replace this.

2) Try logging the MIDI commands sent when music is playing. We send a command 
for every LED, as fast as we can, for the VU meters. This is probably not a 
great deal of load, but it may help the machine just a little bit (and will 
certainly help MIDI debugging) to cache LED state, and only send commands 
when they need to change state. Spewing out many commands is a great way of 
discovering driver issues that appear under stress though, it turns out :) 
Along with caching, perhaps also add a timer to the VU handling code so that 
it doesn't run quite so frequently. Haven't looked at it, so I don't know if 
that's possible yet.

Any of these seem like a bad idea?

-- 
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to