com.softsynth.jmsl.jsyn
Class SampleInstrumentKeyMapPanel

java.lang.Object
  extended by com.softsynth.jmsl.view.PVPanelAdapter
      extended by com.softsynth.jmsl.jsyn.SampleInstrumentKeyMapPanel
All Implemented Interfaces:
PVComponent, PVPanel, java.awt.event.ActionListener, java.util.EventListener

public class SampleInstrumentKeyMapPanel
extends PVPanelAdapter
implements java.awt.event.ActionListener

Panel that provides a sample browser button, and tone generator mapped to a pitch and a tuning, and a button to sound the sample

Author:
Nick Didkovsky, email: didkovn@mail.rockefeller.edu, (c) 2003 Nick Didkovsky, all rights reserved.

Field Summary
static java.lang.String currentDirectory
           
 
Constructor Summary
SampleInstrumentKeyMapPanel(SampleInstrumentMapperPanel mapperPanel, SimpleSamplePlayingInstrument ins, com.softsynth.jsyn.SineOscillator osc, FixedRateSampleReader sampleReader, int index)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 int getIndex()
           
 java.lang.String getSampleName()
           
 void setSampleName(java.lang.String sampleName)
           
 
Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getFont, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setFont, setLayout, setLocation, setVisible, toString, validate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

currentDirectory

public static java.lang.String currentDirectory
Constructor Detail

SampleInstrumentKeyMapPanel

public SampleInstrumentKeyMapPanel(SampleInstrumentMapperPanel mapperPanel,
                                   SimpleSamplePlayingInstrument ins,
                                   com.softsynth.jsyn.SineOscillator osc,
                                   FixedRateSampleReader sampleReader,
                                   int index)
Method Detail

getIndex

public int getIndex()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getSampleName

public java.lang.String getSampleName()
Returns:
subdirectory and filename of soundfile relative to ins.getDirectory()

setSampleName

public void setSampleName(java.lang.String sampleName)
                   throws java.io.IOException
Throws:
java.io.IOException