|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.softsynth.jmsl.MusicJob
com.softsynth.jmsl.MusicShape
com.softsynth.jmsl.midi.MidiNoteRecorder
public class MidiNoteRecorder
MusicShape that logs Midi noteon's to a 3 dimensional MusicShape (timestamp, note, vel)
NoteOff's are logged at noteOn's with vel 0
See MidiParser
| Field Summary |
|---|
| Fields inherited from class com.softsynth.jmsl.MusicJob |
|---|
repeatCount |
| Constructor Summary | |
|---|---|
MidiNoteRecorder()
|
|
| Method Summary | |
|---|---|
void |
handleChannelAftertouch(double timeStamp,
int channel,
int pressure)
does nothing |
void |
handleControlChange(double timeStamp,
int channel,
int id,
int value)
does nothing |
void |
handleNoteOff(double timeStamp,
int channel,
int pitch,
int velocity)
If record flag is set, add time, pitch and velocity=0 to shape |
void |
handleNoteOn(double timeStamp,
int channel,
int pitch,
int velocity)
If record flag is set, add time, pitch and velocity to shape |
void |
handlePitchBend(double timeStamp,
int channel,
int lsb,
int msb)
does nothing |
void |
handlePolyphonicAftertouch(double timeStamp,
int channel,
int pitch,
int pressure)
does nothing |
void |
handleProgramChange(double timeStamp,
int channel,
int program)
does nothing |
void |
handleSysEx(double timeStamp,
byte[] data)
does nothing |
void |
setThru(boolean f)
Set Midi thru emulation. |
void |
startRecording(double startTime)
clear old notes and set flag to ready recording |
void |
stopRecording(double stopTime)
Set startDelay and differentiate note ON/OFFs. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MidiNoteRecorder()
| Method Detail |
|---|
public void startRecording(double startTime)
public void stopRecording(double stopTime)
public void setThru(boolean f)
public void handleNoteOn(double timeStamp,
int channel,
int pitch,
int velocity)
handleNoteOn in interface MidiListener
public void handleNoteOff(double timeStamp,
int channel,
int pitch,
int velocity)
handleNoteOff in interface MidiListener
public void handlePolyphonicAftertouch(double timeStamp,
int channel,
int pitch,
int pressure)
handlePolyphonicAftertouch in interface MidiListener
public void handleControlChange(double timeStamp,
int channel,
int id,
int value)
handleControlChange in interface MidiListener
public void handleProgramChange(double timeStamp,
int channel,
int program)
handleProgramChange in interface MidiListener
public void handleChannelAftertouch(double timeStamp,
int channel,
int pressure)
handleChannelAftertouch in interface MidiListener
public void handlePitchBend(double timeStamp,
int channel,
int lsb,
int msb)
handlePitchBend in interface MidiListener
public void handleSysEx(double timeStamp,
byte[] data)
handleSysEx in interface MidiListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||