Class SimpleSamplePlayingInstrumentWithLoops

java.lang.Object
com.softsynth.jmsl.InstrumentAdapter
com.softsynth.jmsl.jsyn.SimpleSamplePlayingInstrument
com.softsynth.jmsl.jsyn.SimpleSamplePlayingInstrumentWithLoops
All Implemented Interfaces:
Editable, Instrument, Namable, OutputProvider, Transposable, AttributeBuildable, DirectorySettable, HandleSpecialXMLTag
Direct Known Subclasses:
TransposingSamplePlayingInstrument, TransposingSampleSustainingInstrument

public class SimpleSamplePlayingInstrumentWithLoops
extends SimpleSamplePlayingInstrument
Deprecated.
use the pure Java JSyn2 package instead
This class is not used directly. It is a subclass of SimpleSamplePlaying instrument adding a hashtable of sample loop regioners, and provides a common superclass for both TransposingSamplePlayingInstrument and TransposingSampleSustainngInstrument
Author:
Nick Didkovsky, nick@didkovsky.com (C) 2001 Nick Didkovsky, all rights reserved.
See Also:
TransposingSamplePlayingInstrument
  • Constructor Details

    • SimpleSamplePlayingInstrumentWithLoops

      public SimpleSamplePlayingInstrumentWithLoops()
      Deprecated.
    • SimpleSamplePlayingInstrumentWithLoops

      public SimpleSamplePlayingInstrumentWithLoops​(java.lang.String sampleDirectory)
      Deprecated.
      constructor. sample directory string must end in dir delimitter, ex "F:\samples\"
  • Method Details

    • loadSample

      public void loadSample​(java.lang.String filename, int noteIndex) throws java.io.IOException
      Deprecated.
      Throws:
      java.io.IOException
    • addSamplePitch

      public void addSamplePitch​(com.softsynth.jsyn.SynthSample sample, int noteIndex)
      Deprecated.
      Description copied from class: SimpleSamplePlayingInstrument
      Assign a dynamically created sample to a note index. If you do this you will not be able to save/reload. You are committed to runtime building
      Overrides:
      addSamplePitch in class SimpleSamplePlayingInstrument
    • clear

      public void clear()
      Deprecated.
      Description copied from class: SimpleSamplePlayingInstrument
      remove all samples and pitch mappings
      Overrides:
      clear in class SimpleSamplePlayingInstrument
    • getSampleLoopRegioners

      public java.util.Hashtable getSampleLoopRegioners()
      Deprecated.
      Returns:
      Hashtable of SampleLoopRegioner (where key = Integer(pitchIndex), SampleLoopRegioner contains info about loop points in samples associated with pitchIndex)
    • getSampleLoopRegioner

      public SampleLoopRegioner getSampleLoopRegioner​(int pitchIndex)
      Deprecated.
      Returns:
      SampleLoopRegioner associated with pitchIndex. contains info about loop points in samples
    • play

      public double play​(double playTime, double timeStretch, double[] dar)
      Deprecated.
      Description copied from class: SimpleSamplePlayingInstrument
      If there is a sample loaded at dar[1], bang it. No sustain, no transposition. Hold time is not used to terminate sample early.
      Specified by:
      play in interface Instrument
      Overrides:
      play in class SimpleSamplePlayingInstrument