dguitar.players.sound.midi
Class PerformanceFile
java.lang.Object
javax.sound.midi.Sequence
dguitar.players.sound.midi.PerformanceCore
dguitar.players.sound.midi.PerformanceFile
- All Implemented Interfaces:
- Performance
- public class PerformanceFile
- extends PerformanceCore
- Author:
- crnash
Fields inherited from class javax.sound.midi.Sequence |
divisionType, PPQ, resolution, SMPTE_24, SMPTE_25, SMPTE_30, SMPTE_30DROP, tracks |
Methods inherited from class javax.sound.midi.Sequence |
createTrack, deleteTrack, getDivisionType, getMicrosecondLength, getPatchList, getResolution, getTickLength, getTracks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerformanceFile
public PerformanceFile(int tracks,
Tempo tempo,
int resolution)
throws javax.sound.midi.InvalidMidiDataException
- Parameters:
tracks
- tempo
- resolution
-
- Throws:
javax.sound.midi.InvalidMidiDataException
setTimerFrequency
public void setTimerFrequency(int frequency)
- Description copied from interface:
Performance
- Set the frequency of timer events, in clicks per beat.
- Parameters:
frequency
-
addTimerEvents
public void addTimerEvents(SongMeasure measure,
int location)
- Description copied from interface:
Performance
- Generate timer events for the given measure, which will be at the specified
location. It is up to the implementor to ensure that at least one event
(corresponding to the measure start) is generated by this call.
- Parameters:
measure
- the measure for which to add informationlocation
- the time offset, measured in timing pulses
recordPerformanceEvent
protected void recordPerformanceEvent(PerformanceEvent item)
- Specified by:
recordPerformanceEvent
in class PerformanceCore
- Parameters:
item
-