Is "Flash markup language" the same thing as
FlMML?:
Google Translate wrote:
FlMML is a library for you to play the music in Flash.
It allows you to play the melody just pass the text of the MML notation.
I found a script for the NES emulator
FCEUX that looks like it will convert NES audio playing in FCEUX into MML. (I have never used MML. I found this script while looking for sound visualization scripts for FCEUX.)
The script collection:
emu2midi-lua. In the right margin, click on Download ZIP.
A blog post about how to use it:
MIDI Converter Runs On EmulatorFCUEX can play NSF files, so if the script works, maybe this will do what you want.
_____
I got the script to write a MML file, but I don't know how to use the MML file to confirm it works well. EDIT: The MML text works well, see below.
The script normally requires a base64 extension and a MIDI extension, but I don't know how to install those. In nes2midi.lua, it looks like the base64 code is only used to embed DPCM samples, so I just disabled that code for now. And if you remove the line that writes the MIDI file, then the script will still write the MML file and a debugging text file. These are the changes I made:
In nes2midi.lua, find this line near the top and remove it:
local base64 = require("base64")
Near the bottom, find this line:
ch.patch = string.format("%d,%d,%s", ch.dmcseed, ch.dmcloop and 1 or 0, base64.encode(memory.readbyterange(ch.dmcaddress, ch.dmcsize)))
Change the part beginning with 0, to the end of the line to be: 0, "")
Also near the bottom, remove this line:
writer:writeMidiFile("testVGM.mid")_____
EDIT: Using the stand-alone Flash player, I opened flmll.swf from
this download and pasted in the MML text. The converted MML text works well for internal audio and NTSC speeds. Expansion audio isn't converted. Music designed for PAL speeds will play fast in the MML version, but you can lower the T number at the beginning of the MML text to adjust the speed.