dguitar.players.sound.midi
Class PerformanceFile

java.lang.Object
  extended byjavax.sound.midi.Sequence
      extended bydguitar.players.sound.midi.PerformanceCore
          extended bydguitar.players.sound.midi.PerformanceFile
All Implemented Interfaces:
Performance

public class PerformanceFile
extends PerformanceCore

Author:
crnash

Field Summary
 
Fields inherited from class dguitar.players.sound.midi.PerformanceCore
tempo
 
Fields inherited from class javax.sound.midi.Sequence
divisionType, PPQ, resolution, SMPTE_24, SMPTE_25, SMPTE_30, SMPTE_30DROP, tracks
 
Constructor Summary
PerformanceFile(int tracks, Tempo tempo, int resolution)
           
 
Method Summary
 void addTimerEvents(SongMeasure measure, int location)
          Generate timer events for the given measure, which will be at the specified location.
protected  void recordPerformanceEvent(PerformanceEvent item)
           
 void setTimerFrequency(int frequency)
          Set the frequency of timer events, in clicks per beat.
 
Methods inherited from class dguitar.players.sound.midi.PerformanceCore
addMusicalEvents, getTempo, initializeTrack, setTimeSignature
 
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
 

Constructor Detail

PerformanceFile

public PerformanceFile(int tracks,
                       Tempo tempo,
                       int resolution)
                throws javax.sound.midi.InvalidMidiDataException
Parameters:
tracks -
tempo -
resolution -
Throws:
javax.sound.midi.InvalidMidiDataException
Method Detail

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 information
location - the time offset, measured in timing pulses

recordPerformanceEvent

protected void recordPerformanceEvent(PerformanceEvent item)
Specified by:
recordPerformanceEvent in class PerformanceCore
Parameters:
item -