sound.musica
Class KeyProcessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyProcessor
public KeyProcessor(int[] scale)
KeyProcessor
public KeyProcessor(int[] scale,
javax.sound.midi.MidiChannel channel)
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)