import java.io.IOException;

import javax.sound.sampled.UnsupportedAudioFileException;

import net.beadsproject.beads.core.AudioContext;
import net.beadsproject.beads.data.Sample;


public class SampleTest {

	/**
	 * @param args
	 * @throws UnsupportedAudioFileException 
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException, UnsupportedAudioFileException {
		AudioContext ac = new AudioContext();
		
		//
		Sample.TimedRegime tr = new Sample.TimedRegime();
		tr.setRegionSize(1000);
		tr.setLookAhead(tr.regionSize * 5);
		
		Sample s = new Sample("audio/1234.aif",tr);		

		// or		
		Sample s2 = new Sample("audio/1234.aif", Sample.Regime.newTotalRegime());
		
		// or
		Sample s3 = new Sample("audio/tada.wav", new Sample.TimedRegime(100,100,100,1000,Sample.TimedRegime.Order.NEAREST));
	}

}
