Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

CTRL+D shows an endless amount of changing random values where $ff is not present. SIDKick Teensy with the included MIDI-Interface allows me to disable/ignore MIDI-In-Events for those demos (somebody did a demo called Instinct ;-)) that only use MIDI-Out. If I disable MIDI-In, then I always get $ff.

Comparing with version 0.6b it seems that 0.7b/c has a different approach to MIDI-In handling. 0.6b works fine. Could it be that 0.7x is reading values without waiting for IRQ to happen?

Side note: Ctrl+F7 stops track but leaves last notes audible (fading out depending on ADSR). Shift+F7 additionally silences the track. 

Thanks for the update.  It's interesting the hardware produces random values on the bus.    The way 0.7 works is like this:

On the main thread it's polling the listen register and checking if it's an $ff, if not it adds the value to the midi buffer.  (a ring buffer, this got added once it had to start listening for midi input instead of just one-byte system commands.)

In Internal mode, when set to listen it reads through the midi buffer looking for either $f8 for a sync or $fc to switch over to being a broadcast machine when the other machine has stopped.    Stopping or restarting the song clears the midi buffer out. 

0.6 stored the latest midi value in a single byte and then compared that directly.  (not checking for idle)  So I'll get it back to that sort of setup but still using the midi buffer.  I can make it simulate what the hardware is doing while I'm testing this and have a more realistic environment. 
 
In external mode ctrl+f7will be leaving the notes trailing at the moment, if it's happening with internal mode though that's definitely a bug. :)