Class MusicXMLFileReader

java.lang.Object
org.jjazz.importers.api.MusicXMLFileReader

public class MusicXMLFileReader extends Object
MusicXML leadsheet file reader.
  • Constructor Details

    • MusicXMLFileReader

      public MusicXMLFileReader(File f)
      Parameters:
      f - The input file
  • Method Details

    • getMusicalStyle

      public String getMusicalStyle()
      An optional String indicating musical style.
      Returns:
      Can be empty if no musical style defined
    • getTempo

      public int getTempo()
      -1 if tempo was not set in the musicXML file.
      Returns:
    • readSong

      public Song readSong() throws IOException
      Get the song from the current file.

      Construct a basic Song from the elements available in the file.

      Returns:
      Throws:
      IOException