Class SongMidiExporter

java.lang.Object
org.jjazz.musiccontrol.api.SongMidiExporter

public class SongMidiExporter extends Object
Helper methods to export a Song to a Midi file.
  • Constructor Details

    • SongMidiExporter

      public SongMidiExporter()
  • Method Details

    • songToMidiFile

      public static boolean songToMidiFile(Song song, MidiMix midiMix, File midiFile, RhythmVoice rv)
      Export a song to the specified midi File.

      If song is the active song, try to reuse the last result from the ActiveSongMusicBuilder, otherwise generate the music. Notify user if a problem occured.

      Parameters:
      song -
      midiMix -
      midiFile -
      rv - If non-null, only export the specified RhythmVoice
      Returns:
      True if write was successful.