com.frinika.synth.synths
Class MySampler

java.lang.Object
  extended by com.frinika.synth.Synth
      extended by com.frinika.synth.synths.MySampler
All Implemented Interfaces:
javax.sound.midi.MidiChannel

public class MySampler
extends Synth

Author:
Peter Johan Salomonsen

Nested Class Summary
 class MySampler.SamplingOscillator
           
 class MySampler.SoundFontOscillator
           
 
Field Summary
protected  java.util.HashMap<java.lang.Integer,java.util.Vector<MySampler.SoundFontOscillator>> exclusiveClasses
           
 SamplerGUI gui
           
 int recordMode
           
static int RECORDMODE_ALL_KEYS
           
static int RECORDMODE_SELECTION
           
static int RECORDMODE_SINGLE_KEY
           
 SampledSoundSettings[][] sampledSounds
           
static int SAMPLEMODE_LOOP_CONTINOUSLY
           
static int SAMPLEMODE_LOOP_UNTIL_RELEASE
           
static int SAMPLEMODE_NO_LOOP
           
 SamplerOscillator samplerOscillator
           
 SoundFontImporter sfi
           
 
Fields inherited from class com.frinika.synth.Synth
keys, oscillators, postOscillator, preOscillator, sustain, sustainedKeys
 
Constructor Summary
MySampler(SynthRack synth)
           
 
Method Summary
 void close()
           
 SoundFontImporter getImporter()
           
 SamplerSettings getSamplerSettings()
           
 java.io.Serializable getSettings()
           
 void insertSample(SampledSoundSettings snd, int noteNumber, int velocity)
           
 void loadSettings(java.io.Serializable settings)
           
 void noteOn(int noteNumber, int velocity)
           
 void showGUI()
           
 java.lang.String toString()
           
 
Methods inherited from class com.frinika.synth.Synth
addInstrumentNameListener, addOscillator, allNotesOff, allSoundOff, controlChange, getAudioOutput, getChannelPressure, getController, getFrinikaSynth, getInstrumentName, getMono, getMute, getOmni, getPitchBend, getPolyPressure, getPostOscillator, getPreOscillator, getProgram, getSolo, localControl, noteOff, noteOff, programChange, programChange, removeInstrumentNameListener, resetAllControllers, setChannelPressure, setInstrumentName, setMono, setMute, setOmni, setPitchBend, setPolyPressure, setSolo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exclusiveClasses

protected java.util.HashMap<java.lang.Integer,java.util.Vector<MySampler.SoundFontOscillator>> exclusiveClasses

sfi

public SoundFontImporter sfi

samplerOscillator

public SamplerOscillator samplerOscillator

gui

public SamplerGUI gui

sampledSounds

public SampledSoundSettings[][] sampledSounds

recordMode

public int recordMode

RECORDMODE_SINGLE_KEY

public static final int RECORDMODE_SINGLE_KEY
See Also:
Constant Field Values

RECORDMODE_ALL_KEYS

public static final int RECORDMODE_ALL_KEYS
See Also:
Constant Field Values

RECORDMODE_SELECTION

public static final int RECORDMODE_SELECTION
See Also:
Constant Field Values

SAMPLEMODE_NO_LOOP

public static final int SAMPLEMODE_NO_LOOP
See Also:
Constant Field Values

SAMPLEMODE_LOOP_CONTINOUSLY

public static final int SAMPLEMODE_LOOP_CONTINOUSLY
See Also:
Constant Field Values

SAMPLEMODE_LOOP_UNTIL_RELEASE

public static final int SAMPLEMODE_LOOP_UNTIL_RELEASE
See Also:
Constant Field Values
Constructor Detail

MySampler

public MySampler(SynthRack synth)
Method Detail

getImporter

public SoundFontImporter getImporter()

insertSample

public void insertSample(SampledSoundSettings snd,
                         int noteNumber,
                         int velocity)

loadSettings

public void loadSettings(java.io.Serializable settings)
Specified by:
loadSettings in class Synth

getSettings

public java.io.Serializable getSettings()
Specified by:
getSettings in class Synth

getSamplerSettings

public SamplerSettings getSamplerSettings()

close

public void close()
Overrides:
close in class Synth

noteOn

public void noteOn(int noteNumber,
                   int velocity)

showGUI

public void showGUI()
Overrides:
showGUI in class Synth

toString

public java.lang.String toString()
Overrides:
toString in class Synth