com.dixshtix.midi
Class PitchWheel
java.lang.Object
|
+--java.lang.Number
|
+--com.dixshtix.midi.MidiNumber
|
+--com.dixshtix.midi.PitchWheel
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class PitchWheel
- extends MidiNumber
In the range -8192 to 8191 which initially corresponds to -/+ 4 semitones.
- Version:
- 0.1
- Author:
- Richard C. Penner II
- See Also:
- Serialized Form
Field Summary |
(package private) static java.text.NumberFormat |
nf
Controls formating of percentage. |
Fields inherited from class java.lang.Number |
serialVersionUID |
Constructor Summary |
PitchWheel(int num)
Constructor of a pitch-wheel value. |
Method Summary |
private static void |
initNF()
|
java.lang.String |
toString()
Creates a string with a translation of the internal value
to a MIDI number 0-16383 and a percentage change +/- 100%. |
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
nf
static java.text.NumberFormat nf
- Controls formating of percentage.
PitchWheel
public PitchWheel(int num)
- Constructor of a pitch-wheel value.
- Parameters:
num
- is in the range -8192 to 8191.
initNF
private static void initNF()
toString
public java.lang.String toString()
- Creates a string with a translation of the internal value
to a MIDI number 0-16383 and a percentage change +/- 100%.
- Overrides:
toString
in class MidiNumber