Class PitchMappedSamplesModel

java.lang.Object
com.softsynth.jmsl.jsyn2.PitchMappedSamplesModel

public class PitchMappedSamplesModel
extends java.lang.Object
A model for holding pitches mapped to audio samples
Author:
nick Didkovsky, (c) 2017 Nick Didkovsky, nick@didkovsky.com
  • Constructor Summary

    Constructors
    Constructor Description
    PitchMappedSamplesModel()  
  • Method Summary

    Modifier and Type Method Description
    void add​(int pitch, java.lang.String sampleFilename, int numChannels)  
    boolean allSamplesHaveSameNumberOfChannels()  
    void build​(SamplePlayingInstrument ins)
    construct model from a sample playing instrument's map
    int getNumChannels()  
    static void main​(java.lang.String[] args)  
    void remove​(int pitch)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PitchMappedSamplesModel

      public PitchMappedSamplesModel()
  • Method Details

    • getNumChannels

      public int getNumChannels()
    • build

      public void build​(SamplePlayingInstrument ins)
      construct model from a sample playing instrument's map
    • allSamplesHaveSameNumberOfChannels

      public boolean allSamplesHaveSameNumberOfChannels()
    • add

      public void add​(int pitch, java.lang.String sampleFilename, int numChannels)
    • remove

      public void remove​(int pitch)
    • main

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