Class SampleInstrumentKeyMapPanel

java.lang.Object
com.softsynth.jmsl.view.PVPanelAdapter
com.softsynth.jmsl.jsyn2.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 revised for JSyn2 Sept 30, 2018
Author:
Nick Didkovsky, email: nick@didkovsky.com, (c) 2003 Nick Didkovsky, all rights reserved.
  • Field Details

    • currentDirectory

      public static java.lang.String currentDirectory
  • Constructor Details

  • Method Details

    • getPitchIndex

      public int getPitchIndex()
    • 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, javax.sound.sampled.UnsupportedAudioFileException
      Throws:
      java.io.IOException
      javax.sound.sampled.UnsupportedAudioFileException