Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] API related - Multiple MIDI files

Date2007-07-05 19:42
FromVictor Lazzarini
SubjectRe: [Cs-dev] API related - Multiple MIDI files
yes, midifiles are handled by Csound itself
(InOut/midifile.c). It looks easy to implement
an opcode to read a midifile from the orchestra
using the code in that file,
but as it is, a Csound instance holds a single
midifile; for multiple midifiles, new code
needs to be written (but I suppose the stuff in
midifile.c can serve as model)

As for the other question, you can share ftables
by using the API functions that access them. But
the tables themselves are a property of each instance.

Victor

>
> All of Csound is re-entrant (ie. allows multiple
> instances). The only problems is portmidi, which
> csound uses (in some platforms) for realtime
> MIDI input. Portmidi is not re-entrant. But
> as far as I know  midi file input is handled
> by Csound itself (someone correct me if I am
> wrong).
>
> A midi file reader opcode however is a good idea.
> Would anyone like to step in and do it?
>
> Victor
>
>
> >
> > I'm curious if / how it is possible to play more than
> > one MIDI file   per Csound instance?
> >
> > If nothing else, I would like to know if it is possible
> > to play a   MIDI file at sometime after Csound is
> > running. In other words, like   a real-time line event
> > ... If this can only be achieved at startup,   then I
> > will have to consider using multiple instances.  Which
> > would   lead me to my next question - Can f-tables be
> > shared somehow across   instances?
> >
> > Few misc questions:
> >
> > What would be the best way (with efficiency as a
> > consideration) to   mute / solo MIDI tracks as the file
> > is being performed? Can MIDI tracks be dynamically
> > reassigned to use other instruments as   they're
> >     playing? Maybe some variation of massign?
> >
> > Worst case, I could hack something together using
> > program changes   maybe...
> >
> > greg
> >
> >
> >
> ----------------------------------------------------------
> > --------------- This SF.net email is sponsored by DB2
> > Express Download DB2 Express C - the FREE version of DB2
> > express and take control of your XML. No limits. Just
> > data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ----------------------------------------------------------
> --------------- This SF.net email is sponsored by DB2
> Express Download DB2 Express C - the FREE version of DB2
> express and take control of your XML. No limits. Just
> data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net