On Tue, May 19, 2020 at 12:33:54AM +0300, Zoe Byrne wrote: > Hello all, > I could not found anywhere (not in this list, not in the floss manual, not > in the web at all) a .csd file that takes a .mid file and just runs it. > Does anyone have / know where is a file that does it? > Second. does someone have / know where is a .csd file to render a .mid file > and get a .wav file from it? Hi, The first thing to note is that a midifile needs an appropriate set of instruments to actually play the notes it contains! That's probably best done with a SoundFont. Csound has a set of opcodes to play soundfonts through fluidsynth. (There are also 'stand-alone' font-playing opcodes, but the fluidsynth ones are likely easier to use.) The 'examples' folder with the Manual has both 'sf_GMbank.sf2' for a SoundFont, and 'fluidcomplex.csd' to play a midifile with it. Check them out and see if they're what you need. To generate a WAV file, just change the output directive in the options from 'dac' to the file you want to make. Cheers, -- Pete -- Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here