[Csnd] MIDI File Input
Date | 2009-10-01 03:18 |
From | Ben McAllister |
Subject | [Csnd] MIDI File Input |
Hi List - I have some canned midi data in a MIDI file which I'd like to process with CSound. I know that the -F option allows me to read a midi file, though I assume it's a one-time thing. I'd like to be able to restart the passage in the midi file, change the tempo on-the-fly, trigger osc messages from notes depending on where we're at in the piece, etc - lots of fun stuff. This is all in the context of a two-hour performance, so I'm hoping to accomplish all of this in one instance of csound lasting the entire performance. I hope csound can do this. Any ideas? Thanks in advance. -- Ben McAllister | listenfaster.com |
Date | 2009-10-01 06:09 |
From | Aaron Krister Johnson |
Subject | [Csnd] Re: MIDI File Input |
I don't know, Ben...this sounds like more of a general programming (algorithmic) problem...but I know csound does *some* MIDI processing, those are just not the parts of it that I'm all too focussed on using myself. Does a quick browse of the manual in the MIDI processing section give you any ideas? While you're mentioning '-F' and MIDI; the manual mentions that -F processes always in realtime, including when making a wav file output....does this mean that complex instruments that crackle and have xruns in realtime will produce flawed wav-file realizations of MIDI files?? Anyone know?? AKJ Ben McAllister wrote: > > Hi List - > > I have some canned midi data in a MIDI file which I'd like to process with > CSound. I know that the -F option allows me to read a midi file, though I > assume it's a one-time thing. I'd like to be able to restart the passage > in > the midi file, change the tempo on-the-fly, trigger osc messages from > notes > depending on where we're at in the piece, etc - lots of fun stuff. This > is > all in the context of a two-hour performance, so I'm hoping to accomplish > all of this in one instance of csound lasting the entire performance. > > I hope csound can do this. Any ideas? Thanks in advance. > -- > Ben McAllister | listenfaster.com > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > -- View this message in context: http://www.nabble.com/MIDI-File-Input-tp25692202p25693148.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2009-10-01 06:21 |
From | Mike Moser-Booth |
Subject | [Csnd] Re: Re: MIDI File Input |
In my experience the output file does not contain any flaws. .mmb Aaron Krister Johnson wrote: I don't know, Ben...this sounds like more of a general programming (algorithmic) problem...but I know csound does *some* MIDI processing, those are just not the parts of it that I'm all too focussed on using myself. Does a quick browse of the manual in the MIDI processing section give you any ideas? While you're mentioning '-F' and MIDI; the manual mentions that -F processes always in realtime, including when making a wav file output....does this mean that complex instruments that crackle and have xruns in realtime will produce flawed wav-file realizations of MIDI files?? Anyone know?? AKJ Ben McAllister wrote:Hi List - I have some canned midi data in a MIDI file which I'd like to process with CSound. I know that the -F option allows me to read a midi file, though I assume it's a one-time thing. I'd like to be able to restart the passage in the midi file, change the tempo on-the-fly, trigger osc messages from notes depending on where we're at in the piece, etc - lots of fun stuff. This is all in the context of a two-hour performance, so I'm hoping to accomplish all of this in one instance of csound lasting the entire performance. I hope csound can do this. Any ideas? Thanks in advance. -- Ben McAllister | listenfaster.com Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-10-01 08:14 |
From | Oeyvind Brandtsegg |
Subject | [Csnd] Re: MIDI File Input |
I've never tried it, but maybe the "t" score statement works with midi files too ? And you could use the normal "times" or "readclock" opcodes to check how much time has passed in the piece. best Oeyvind 2009/10/1 Ben McAllister |
Date | 2009-10-01 09:10 |
From | Iain McCurdy |
Subject | [Csnd] RE: MIDI File Input |
Hi Ben, You might be interested in looking at timedseq which reads, not from a midi file but from a text file formatted like a Csound score. You would first need to convert your MIDI file to Csound score format (Anthony Kozar has written a Mac application that will do this). With timedseq you will be able to start, stop, play forwards, backwards, change speed, start from any point, loop etc. You can also play multiple files simultaneously if you like. Bye, Iain Date: Wed, 30 Sep 2009 19:18:15 -0700 From: benmca@gmail.com To: csound@lists.bath.ac.uk Subject: [Csnd] MIDI File Input Hi List - I have some canned midi data in a MIDI file which I'd like to process with CSound. I know that the -F option allows me to read a midi file, though I assume it's a one-time thing. I'd like to be able to restart the passage in the midi file, change the tempo on-the-fly, trigger osc messages from notes depending on where we're at in the piece, etc - lots of fun stuff. This is all in the context of a two-hour performance, so I'm hoping to accomplish all of this in one instance of csound lasting the entire performance. I hope csound can do this. Any ideas? Thanks in advance. -- Ben McAllister | listenfaster.com Insert movie times and more without leaving Hotmail®. See how. |
Date | 2009-10-01 09:17 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: MIDI File Input |
I have done this using the API and it's possible to rewind the MIDI score. I can't remember if its possible with rewindscore and setscorepos (two opcodes for this thing), but you can try it. Victor On 1 Oct 2009, at 08:14, Oeyvind Brandtsegg wrote: > I've never tried it, but maybe the "t" score statement works with midi > files too ? > And you could use the normal "times" or "readclock" opcodes to check > how much time has passed in the piece. > best > Oeyvind > > 2009/10/1 Ben McAllister |
Date | 2009-10-01 10:57 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Re: Re: MIDI File Input |
I can confirm that rewindscore works for MIDI scores and I guess setscorepos should do too. On 1 Oct 2009, at 09:17, Victor Lazzarini wrote: > I have done this using the API and it's possible to rewind the > MIDI score. I can't remember if its possible with rewindscore and > setscorepos (two opcodes for this thing), but you can try it. > > Victor > > On 1 Oct 2009, at 08:14, Oeyvind Brandtsegg wrote: > >> I've never tried it, but maybe the "t" score statement works with >> midi >> files too ? >> And you could use the normal "times" or "readclock" opcodes to check >> how much time has passed in the piece. >> best >> Oeyvind >> >> 2009/10/1 Ben McAllister |
Date | 2009-10-01 12:58 |
From | Michael Gogins |
Subject | [Csnd] Re: MIDI File Input |
You could do all this with scripting csoundac. Mkg On Sep 30, 2009 10:19 PM, "Ben McAllister" <benmca@gmail.com> wrote: |
Date | 2009-10-01 17:52 |
From | Ben McAllister |
Subject | [Csnd] Re: Re: Re: Re: MIDI File Input |
Excellent - thanks for the help everyone. setscorepos should do the trick - thanks Victor. b On Thu, Oct 1, 2009 at 2:57 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: I can confirm that rewindscore works for MIDI scores and -- Ben McAllister | listenfaster.com | p: 206.829.9234 | c: 206.849.3183 |