I need to convert a midi files to tone for a small piezo speaker.
Is there something like wav2c but for midi files?
I googled a bit without much success
The midifile protocol is quite simple and there are some parsers out there. Maybe you can start exploring with this:
Not much for an arduino to do here.
Simply get a MIDI monitor to display the notes for the tune and look up the frequencies or if you are doing a lot of it then get a processing sketch to do it for you.