com.softsynth.jmsl.jsyn
Class SampleLoopRegioner

java.lang.Object
  extended by com.softsynth.jmsl.jsyn.SampleLoopRegioner

public class SampleLoopRegioner
extends java.lang.Object

Pulls cues from a sample and builds a SampleRegion. A SampleRegion contains a loop startframe & length, release startframe and length. Assumes the loaded sample has exactly two cue points: sustain start is a cue point, and release start is a cue point. Sustain end == release start.

Author:
Nick Didkovsky, copyright 2001 Nick Didkovsky

Constructor Summary
SampleLoopRegioner()
           
SampleLoopRegioner(com.softsynth.jsyn.SynthSample sample)
           
 
Method Summary
 SampleRegion getSampleRegion()
           
static void main(java.lang.String[] args)
           
 int setSample(com.softsynth.jsyn.SynthSample s)
          assign sample, build sample regions,
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleLoopRegioner

public SampleLoopRegioner()

SampleLoopRegioner

public SampleLoopRegioner(com.softsynth.jsyn.SynthSample sample)
Method Detail

setSample

public int setSample(com.softsynth.jsyn.SynthSample s)
assign sample, build sample regions,

Returns:
number of cue points found

getSampleRegion

public SampleRegion getSampleRegion()

main

public static void main(java.lang.String[] args)