org.rubato.audio.midi
Class MidiReader

java.lang.Object
  extended by org.rubato.audio.midi.MidiReader

public class MidiReader
extends java.lang.Object

This class reads in a MIDI file an converts it to a denotator of form Score.

Author:
Gérard Milmeister

Constructor Summary
MidiReader(java.io.InputStream stream)
          Creates a MidiReader that reads from an InputStream.
MidiReader(java.lang.String fileName)
          Creates a MidiReader that reads from a file.
 
Method Summary
 Denotator getDenotator()
          Reads the MIDI file and returns a denotator of form Score.
 void setTempoFactor(double f)
          The the factor that each time value is multiplied with.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiReader

public MidiReader(java.lang.String fileName)
           throws javax.sound.midi.InvalidMidiDataException,
                  java.io.IOException
Creates a MidiReader that reads from a file.

Throws:
javax.sound.midi.InvalidMidiDataException
java.io.IOException

MidiReader

public MidiReader(java.io.InputStream stream)
           throws javax.sound.midi.InvalidMidiDataException,
                  java.io.IOException
Creates a MidiReader that reads from an InputStream.

Throws:
javax.sound.midi.InvalidMidiDataException
java.io.IOException
Method Detail

getDenotator

public Denotator getDenotator()
Reads the MIDI file and returns a denotator of form Score.


setTempoFactor

public void setTempoFactor(double f)
The the factor that each time value is multiplied with. The default is 1.0;