sound.musica
Class KeyProcessor

java.lang.Object
  extended by sound.musica.KeyProcessor
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

public class KeyProcessor
extends java.lang.Object
implements java.awt.event.KeyListener


Constructor Summary
KeyProcessor(int[] scale)
           
KeyProcessor(int[] scale, javax.sound.midi.MidiChannel channel)
           
 
Method Summary
 void chooseInstrument(int index)
           
static javax.sound.midi.MidiChannel getGuiChannel()
           
 int getNoteNumber(int c)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyProcessor

public KeyProcessor(int[] scale)

KeyProcessor

public KeyProcessor(int[] scale,
                    javax.sound.midi.MidiChannel channel)
Method Detail

getGuiChannel

public static javax.sound.midi.MidiChannel getGuiChannel()

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

chooseInstrument

public void chooseInstrument(int index)

getNoteNumber

public int getNoteNumber(int c)