[jmsl] New User Question
jmsl at music.columbia.edu
jmsl at music.columbia.edu
Wed Jul 1 13:07:09 EDT 2009
Hello Edward
duration is always in seconds, as is hold (ie sustain time, the
difference between staccato and tenuto for example). These values will
be scaled according to the timestretch value (which is how, for example,
JMSL Score implements tempo).
In TransposingSamplePlayingInstrument, if the hold time is shorter than
the duration of the sample, there will be no looping. If the hold time
is longer then it will using the portion of the sample bounded by with
two markers (which you would have done in a sound file editor), and it
will loop that the appropriate number of times to achieve the hold time.
TransposingSamplePlayingInstrument goes one better and uses a
doublebuffered scheme where two sample loopers are swapping back and
forth, with crossfades at the boundaries, so that the loop is less
noticeable.
You can check out
http://www.algomusic.com/jmsl/tutorial/jscoretoot15.html , which covers
this stuff in more detail
Let me know if this answers your questions.
Thanks
Nick Didkovsky
jmsl at music.columbia.edu wrote:
> Hi,
> I was trying to figure out by browsing the Javadocs for JMSL some of the
> specs on the most common music shape arguments like duration, hold,
> amplitude, etc., such as what are the allowable input ranges, how does hold
> relate to duration (and the length of the sample). I understand that these
> are somewhat dependent on the instrument . . . in this case I would be using
> the TransposingSampleSustainingInstrument. I also browsed the tutorial and
> could not find too much about it. If you could point me in the right
> direction with a link I would appreciate it! (Or a code example that
> clarifies the use of these quantities).
>
> Many thanks,
>
More information about the jmsl
mailing list