Csound Csound-dev Csound-tekno Search About

[Csnd] MIDI File Input and Tempo opcodes

Date2009-10-02 05:35
FromBen McAllister
Subject[Csnd] MIDI File Input and Tempo opcodes
Hi Again -

Working through this, and stuck on my tempo update problem. 

I have an implementation of a tap tempo via midi input, and figured tempo and tempoval would work as spec'd, but after reading previous posts I'm guessing it's broken?  I read Jacob Joaquin's posts about manually tracking tempo to determine note durations, but I'm lost as to how I'd be able to hack something that would speed up or slow down score processing (midi file processing actually, via -F).  Any ideas?
Thanks in advance,
b

On Thu, Oct 1, 2009 at 9:52 AM, Ben McAllister <benmca@gmail.com> wrote:
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
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 <benmca@gmail.com>:
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"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



--
Ben McAllister | listenfaster.com | p: 206.829.9234 | c: 206.849.3183




--
Ben McAllister | listenfaster.com | p: 206.829.9234 | c: 206.849.3183