dguitar.players.sound.midi
Class MidiFiler

java.lang.Object
  extended bydguitar.players.sound.midi.MidiFiler
All Implemented Interfaces:
SoundPlayer

public class MidiFiler
extends java.lang.Object
implements SoundPlayer

Author:
crnash

Field Summary
private  java.lang.String className
           
private  java.lang.String fileName
           
private  java.util.logging.Logger logger
           
(package private)  PerformanceFile performanceFile
           
 
Constructor Summary
MidiFiler()
           
MidiFiler(java.lang.String fileName)
           
 
Method Summary
 void close()
           
 Performance createPerformance(int tracks, Tempo tempo, int resolution)
          Create a performance object that is compatible with this class of SoundPlayer.
 void setPerformance(Performance performance)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

private java.lang.String className

logger

private java.util.logging.Logger logger

performanceFile

PerformanceFile performanceFile

fileName

private java.lang.String fileName
Constructor Detail

MidiFiler

public MidiFiler(java.lang.String fileName)

MidiFiler

public MidiFiler()
Method Detail

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 performance
tempo - the tempo at which to play it
resolution - 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 -