cozyMIDI:
my brand new 68k mac application coded in C (and sweat). Plays standard MIDI files assuming you have an external module plugged on the modem port.
- loads and plays type 0 (1 track) and type 1 (more than 1 track) standard MIDI files
- keeps them in a pre-calculated form so the loop doesn't have to do real time divisions at the cost of slightly longer file opening delays
- animations with small graphic zones using CopyBits and 32 pixel width to keep it lean different MIDI instrument out of the 128 regular general MIDI instruments
Mac Garden link: https://macintoshgarden.org/apps/cozymidi
Github link: https://github.com/Mu0n/1bitdreammachine/tree/main/cozyMIDI
this is a project that continues in the path I took over the last 2 years about MIDI and vintage computers for several platforms. Here's a previous thread here where I got some great help. Thanks to all involved!
Wow guys, thanks for the high quality tutorial on variable types. I found very old documentation in which SerGetBuf uses ints instead of longs, maybe that was triggered the error for me. It's definitely a long in more recent documentation, including THINK Reference Viewer.
The bad formatter character for printf was a stupid mistake that I do occasionally.
The real mistake was not setting up the .AIn driver properly with the clock like I did for .AOut. There was no chance of getting anything other than garbage before this was done. Once this was fixed with the printf statement, I saw the...
