dguitar.players.sound.midi
Class MidiFiler
java.lang.Object
dguitar.players.sound.midi.MidiFiler
- All Implemented Interfaces:
- SoundPlayer
- public class MidiFiler
- extends java.lang.Object
- implements SoundPlayer
- Author:
- crnash
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
className
private java.lang.String className
logger
private java.util.logging.Logger logger
performanceFile
PerformanceFile performanceFile
fileName
private java.lang.String fileName
MidiFiler
public MidiFiler(java.lang.String fileName)
MidiFiler
public MidiFiler()
createPerformance
public Performance createPerformance(int tracks,
Tempo tempo,
int resolution)
- Description copied from interface:
SoundPlayer
- Create a performance object that is compatible with this class of SoundPlayer.
- Specified by:
createPerformance
in interface SoundPlayer
- Parameters:
tracks
- the number of physical tracks in this performancetempo
- the tempo at which to play itresolution
- the resolution (in ticks per quarter note)
- Returns:
- the Performance object that was created
start
public void start()
- Specified by:
start
in interface SoundPlayer
close
public void close()
- Specified by:
close
in interface SoundPlayer
setPerformance
public void setPerformance(Performance performance)
- Specified by:
setPerformance
in interface SoundPlayer
- Parameters:
performance
-