So I did this a few days after I got Picotron for the first time. I was inspired by Endfield's .mod player to make my own one. (I even checked how Endfield's sample mixer worked to make my sample mixer more optimized).
This uses luchak's PCM sample code as a base for outputting 8-bit PCM samples at 44.1kHz (I have noticed that there are resampling issues at least on the macOS and linux versions of Picotron when I use this script).
I was also inspired by my scener friend Nightshade's (currently unreleased) Picotron .mod player, which is less optimized than mine but has a nicer GUI and might have more accurate player logic? (afaik). I might also improve the GUI of this player a bit, but I'd have to learn how to detect when the program's window isn't rendered (or isn't shown), since I set both background_updates and background_draws to true when setting up the program's window (in order to make the program run in the background while in the code editor, etc.)






2 comments