[Csnd] How to play MIDI files with CSound?
Date | 2010-07-07 15:08 |
From | Marcel de Velde |
Subject | [Csnd] How to play MIDI files with CSound? |
Hello list, I'm new to CSound, and wish to use it for precision rendering of microtonally retuned classical music. I read somewhere that CSound can take as it's input a MIDI file, but I can't find out how to do this. My MIDI files are multi channel, all channels are monophonic and microtuning is done by pitch bend messages per channel. I figure I'll have to write some custom code to get the instrument to respond to the pitch bend messages, but once I can get CSound to play a MIDI file I'll be well on my way. Many thanks for any help! Kind regards, Marcel |
Date | 2010-07-07 15:38 |
From | Iain McCurdy |
Subject | [Csnd] RE: How to play MIDI files with CSound? |
Hello Marcel, You can use the -F command line flag followed by the name of your MIDI file. Channel 1 events routed to instr 1, chan 2 to instr 2 etc. more info here: http://www.csounds.com/manual/html/CommandFlagsCategory.html Hope this helps, Iain Date: Wed, 7 Jul 2010 16:08:41 +0200 From: m.develde@gmail.com To: csound@lists.bath.ac.uk Subject: [Csnd] How to play MIDI files with CSound? Hello list, I'm new to CSound, and wish to use it for precision rendering of microtonally retuned classical music. I read somewhere that CSound can take as it's input a MIDI file, but I can't find out how to do this. My MIDI files are multi channel, all channels are monophonic and microtuning is done by pitch bend messages per channel. I figure I'll have to write some custom code to get the instrument to respond to the pitch bend messages, but once I can get CSound to play a MIDI file I'll be well on my way. Many thanks for any help! Kind regards, Marcel Get a free e-mail account with Hotmail. Sign-up now. |
Date | 2010-07-07 15:41 |
From | Michael Gogins |
Subject | [Csnd] Re: How to play MIDI files with CSound? |
As is often the case with Csound, there is more than one way to do this. The simplest, standard way is to use the --midifile (or -F) command-line option. There are other methods, involving reading the MIDI file into the CsoundAC.Score object. You may wish to use the MIDI inter-operability (--midi-key, --midi-velocity) options, relatively new in Csound, so that you can write the same instrument definitions for both MIDI and standard Csound score use. The examples/CsoundAC.csd orchestra instruments are written in this way, you can use them or use them as examples. Hope this helps, Mike On Wed, Jul 7, 2010 at 10:08 AM, Marcel de Velde |
Date | 2010-07-07 16:00 |
From | Marcel de Velde |
Subject | [Csnd] Re: Re: How to play MIDI files with CSound? |
Hi Iain and Michael, Many thanks for your help! That was exactly what I needed. Kind regards, Marcel |