|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmusic.midi.MidiUtil
public class MidiUtil
| Field Summary | |
|---|---|
static int |
STOP_TYPE
|
| Constructor Summary | |
|---|---|
MidiUtil()
|
|
| Method Summary | |
|---|---|
static javax.sound.midi.MidiEvent |
createCChangeEvent(int channel,
int controlNum,
int value,
long tick)
Create a Control Change event |
static javax.sound.midi.MidiEvent |
createNoteOffEvent(int channel,
int pitch,
int velocity,
long tick)
Create a Note Off Event |
static javax.sound.midi.MidiEvent |
createNoteOnEvent(int channel,
int pitch,
int velocity,
long tick)
Create a Note On Event |
static javax.sound.midi.MidiEvent |
createProgramChangeEvent(int channel,
int value,
long tick)
Create a Program Change Event |
static javax.sound.midi.Sequence |
scoreToSeq(jm.music.data.Score score)
|
static javax.sound.midi.Sequence |
scoreToSeq(jm.music.data.Score score,
short m_ppqn)
Converts jmusic score data into a MIDI Sequence |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STOP_TYPE
| Constructor Detail |
|---|
public MidiUtil()
| Method Detail |
|---|
public static javax.sound.midi.MidiEvent createNoteOnEvent(int channel,
int pitch,
int velocity,
long tick)
throws javax.sound.midi.InvalidMidiDataException
int - channel is the channel to changeint - pitch is the pitch of the noteint - velocity is the velocity of the notelong - tick is the time this event occurs
javax.sound.midi.InvalidMidiDataException
public static javax.sound.midi.MidiEvent createNoteOffEvent(int channel,
int pitch,
int velocity,
long tick)
throws javax.sound.midi.InvalidMidiDataException
int - channel is the channel to changeint - pitch is the pitch of the noteint - velocity is the velocity of the notelong - tick is the time this event occurs
javax.sound.midi.InvalidMidiDataException
public static javax.sound.midi.MidiEvent createProgramChangeEvent(int channel,
int value,
long tick)
throws javax.sound.midi.InvalidMidiDataException
int - channel is the channel to changeint - value is the new value to uselong - tick is the time this event occurs
javax.sound.midi.InvalidMidiDataException
public static javax.sound.midi.MidiEvent createCChangeEvent(int channel,
int controlNum,
int value,
long tick)
throws javax.sound.midi.InvalidMidiDataException
int - channel is the channel to useint - controlNum is the control change number to useint - value is the value of the control change
javax.sound.midi.InvalidMidiDataException
public static javax.sound.midi.Sequence scoreToSeq(jm.music.data.Score score)
throws javax.sound.midi.InvalidMidiDataException
javax.sound.midi.InvalidMidiDataException
public static javax.sound.midi.Sequence scoreToSeq(jm.music.data.Score score,
short m_ppqn)
throws javax.sound.midi.InvalidMidiDataException
Score - score - data to play
java.lang.Exception
javax.sound.midi.InvalidMidiDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||