| the goal is to open a midifile to generate events in realtime
according to an input time parameter
----- Original Message -----
From: "Anthony Kozar"
To: "Csound Developer list"
Sent: Sunday, March 09, 2008 5:46 PM
Subject: Re: [Cs-dev] Possible API extension
> Victor Lazzarini wrote on 3/6/08 7:12 AM:
>
>> 3) Opcodes a la diskin, diskin2 to access MIDI files (using memory file
>> functions perhaps? Anthony?)
>
> I am not sure what the goal here is, so I cannot say whether something
> like
> ldmemfile2() ought to be used. diskin of course reads the file from disk
> while performing. It is easy enough to open the same file multiple times
> this way. The advantages of ldmemfile2() are that it loads the whole file
> into memory for better performance and it ensures that a file is only
> loaded
> once when used by multiple opcodes. I don't know if these would be
> advantages for Midi files (or OLPC)?
>
> The problem with trying to use ldmemfile2() for Midi files is that it was
> intended to be used only with analysis files and thus searches only SADIR
> and the current directory. There is also csoundLoadSoundFile() but that
> won't work for Midi files at all. It would be a fairly simple task though
> to add extra parameters to the existing ldmemfile2() function so that the
> search path could be specified (MFDIR for instance). In this case, it
> should be renamed again (perhaps ldmemfilewithpath?) and a simple
> ldmemfile2() wrapper should be written to pass "SADIR" to preserve the
> current functionality of the plugin API.
>
> Anthony Kozar
> mailing-lists-1001 AT anthonykozar DOT net
> http://anthonykozar.net/
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |