Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Use xmp to convert DMF files to WAV
set channelNumbers to 12
set fileName to "/Users/you/Projects/SONGNAME"
set nr to 1
set extension to ".WAV"
set dmfFileName to "'/Users/you/Projects/SONGNAME.DMF'"
repeat while nr channelNumbers
-- display dialog nr
set xmpcmd to "/usr/local/bin/xmp -S " & nr & " -o '" & fileName & nr & extension & "' " & dmfFileName
-- display dialog xmpcmd
do shell script xmpcmd
set nr to nr + 1
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment