[jmsl] score.max.NewJMSLScore question
jmsl at music.columbia.edu
jmsl at music.columbia.edu
Tue Feb 20 15:08:53 EST 2007
Hi Brad
Launching and finishing a score could be just a tad bit better documented:
To launch a Score:
score.getControlPanel().setLoop(false); // non looping playback
score.getControlPanel().launch(JMSL.now(), 0, score.size() - 1, false);
To finish Score playback:
score.getControlPanel().finish();
// and if you're interested which measure it was playing when it finished...
ScoreCollectionBehavior behavior = (ScoreCollectionBehavior)
score.getScoreCollection().getBehavior();;
int measureWhereFinished = behavior.getCurrentMeasureNumber();
System.out.println("Score " + score.getName() + " finished on measure "
+ measureWhereFinished);
To launch a section of a Score:
score.getControlPanel().setLoop(false); // non looping playback
score.getControlPanel().launchSection(JMSL.now(), false);
Thanks
Nick
jmsl at music.columbia.edu wrote:
> Quoting jmsl at music.columbia.edu:
>
>
>> Glad you like JMSL's support for Max/MSP! Is the patch you mean
>> called
>> "JMSLScorePlayMSP"?
>>
>
> Yarr, that be the one, matey!
>
>
>> This mxj object does not support messages to launch and finish a
>> score
>> playback, sorry. I'll be happy to add that and send you source
>> off-list.
>>
>
> That would be just dandy! It would save me a bit of hacking...
>
> I'm particularly interested in being able to start playback of the
> score with a max message like [go] or [start]. I couldn't see how
> to 'get at' the controls in that class from java, otherwise I could
> probably code it myself. It would be fun to be able to hit some of
> the other methods, but that may be for another day.
>
> brad
> http://music.columbia.edu/~brad
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl
>
More information about the jmsl
mailing list