[jmsl] Exporting to Midi

jmsl at music.columbia.edu jmsl at music.columbia.edu
Mon Apr 13 18:07:58 EDT 2009


try this (untested!)
After you turn on midi logging...

        oldClock = JMSL.clock;
        JMSL.clock = new NonRealTimeMusicClock();
        double launchTime = JMSL.now();
        noteLurker.setLaunchTime(launchTime);
        col.launch(launchTime);

// add a Playable to col's stopplayables, so that you are notified when 
the col finishes, when that Playable is notifies, do this:
JMSL.clock = oldClock;

Nick
jmsl at music.columbia.edu wrote:
> I'm trying to develop both midi (only export for compatibility) as 
> well as xml (export and import for editing).
> Is there way to export the entire sequential collection to midi 
> (ByteArray), so I can pass it to php in non-realtime, instead of 
> saving it to file?
> Thanks,
>
> Chi
> ----- Original Message ----- From: <jmsl at music.columbia.edu>
> To: <jmsl at music.columbia.edu>
> Sent: Saturday, April 11, 2009 2:39 PM
> Subject: Re: [jmsl] Exporting to Midi
>
>
>> I am not sure what your design intent is...
>> Do you want to offer a sequencer in an applet, with the ability to 
>> edit and save music to the server?  Do you want to be able to load 
>> music from the server back into the sequencer for further editing? If 
>> so, then don't save it as a midi file, save the hierarchy and data as 
>> I described earlier.
>> Thanks
>> Nick
>>
>>
>> jmsl at music.columbia.edu wrote:
>>> It's just an alternative to xml. If I go for xml route, I would need 
>>> to make a player.
>>> If I go for midi route, I could just embed midi file inn html, but I 
>>> need to find out the way to export the entire sequence into midi 
>>> like MidiLoggerRealTimeTest preferably without the rendering time.
>>> Which one do you think is easier? Thanks.
>>>
>>> Chi
>>> ----- Original Message ----- From: <jmsl at music.columbia.edu>
>>> To: <jmsl at music.columbia.edu>
>>> Sent: Saturday, April 11, 2009 10:41 AM
>>> Subject: Re: [jmsl] Exporting to Midi
>>>
>>>
>>>> Is your goal really to create a MidiFile or is this is a 
>>>> followup/alternative to your previous posting (ie a way to 
>>>> save/load a piece)?
>>>> Thanks
>>>> Nick
>>>>
>>>> jmsl at music.columbia.edu wrote:
>>>>> I've checked out the example MidiLoggerNonRealTimeTest from 
>>>>> jmsltestsuite. Is there way to export all the data from sequential 
>>>>> collection which contains parallel collections which contains 
>>>>> music shapes to midi in non-realtime? The example seems to feed 
>>>>> one midi message at a time to the logger.
>>>>> If that's the only way, I'd probably need to figure out which 
>>>>> notes play at the same time from different music shapes from 
>>>>> different parallel collections and calculate note on and off time 
>>>>> which might be too much work. MidiLoggerRealTimeTest sounds very 
>>>>> simple, but users have to wait to hear the whole thing to render 
>>>>> into midi. If you have a good solution, please let me know.
>>>>> How can I make JMSL to play through an external midi device (not 
>>>>> soundbank) without MidiShare? I know timing might be sloppy, but 
>>>>> can I still do it?
>>>>> Thanks,
>>>>>
>>>>> Chi
>>>>> _______________________________________________
>>>>> jmsl mailing list
>>>>> jmsl at music.columbia.edu
>>>>> http://music.columbia.edu/mailman/listinfo/jmsl
>>>> _______________________________________________
>>>> jmsl mailing list
>>>> jmsl at music.columbia.edu
>>>> http://music.columbia.edu/mailman/listinfo/jmsl
>>>>
>>>
>>> _______________________________________________
>>> jmsl mailing list
>>> jmsl at music.columbia.edu
>>> http://music.columbia.edu/mailman/listinfo/jmsl
>> _______________________________________________
>> jmsl mailing list
>> jmsl at music.columbia.edu
>> http://music.columbia.edu/mailman/listinfo/jmsl
>>
>
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl


More information about the jmsl mailing list