LoginLogin

Is it possible to play MIDIs using SmileBASIC?

Root / General / [.]

HTV04Created:
I know SmileBASIC doesn't have native MIDI support, but is there a way to make a MIDI player that reads and plays MIDIs? If it's possible, how would the player "feed" the MIDI data to SmileBASIC's soundfont? Should I use BEEP or BGMPLAY?

You could write a MIDI to MML compiler and play the result.

You could write a MIDI to MML compiler and play the result.
How can I parse a MIDI file?

I found this, but I don't know how to incorporate what this says into SmileBASIC code: http://www.music-software-development.com/midi-tutorial.html

And now I found this: https://myu314.github.io/pismf2mml/ I guess as an experiment I could try porting this to SmileBASIC.