Class BiabFileReader

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

public class BiabFileReader extends Object
Band In A Box file reader.

The reader retrieves data from the BIAB file and creates a Song. The ChordLeadSheet is complete and the SongStructure reflects the structure of the BIAB file, including the chorus repeats. SongPart names are also updated.

What remains to be done is to customize the SongParts rhythm/style parameters.

Not parsed yet, although it would have an impact on the JJazzLab song :
- Repeats/2nd Endings/DC Al copa, etc.
- Start 2 bars early when generate 2 bars end is ON
- Chord Pedal bass 2/4 etc.
- Bar settings: style changes, tempo changes, nb of beats changes

  • Field Details

    • file

      public File file
    • timeSignature

      public TimeSignature timeSignature
    • swing

      public boolean swing
    • styleFileName

      public String styleFileName
    • styleFeatures

      public BiabStyleFeatures styleFeatures
    • version

      public int version
    • title

      public String title
    • overallLoop

      public boolean overallLoop
    • keyId

      public int keyId
    • tempo

      public int tempo
    • startBar

      public int startBar
    • chorusStart

      public int chorusStart
    • chorusEnd

      public int chorusEnd
    • chorusNbRepeats

      public int chorusNbRepeats
    • varyStyleInMiddleChorus

      public boolean varyStyleInMiddleChorus
    • useTagJump

      public boolean useTagJump
    • tagBeginBar

      public int tagBeginBar
    • tagAfterBar

      public int tagAfterBar
    • tagEndBar

      public int tagEndBar
    • hasSoloTrack

      public int hasSoloTrack
    • nbMelodyNotes

      public int nbMelodyNotes
    • gmPatchBass

      public int gmPatchBass
    • gmPatchDrums

      public int gmPatchDrums
    • gmPatchPiano

      public int gmPatchPiano
    • gmPatchGuitar

      public int gmPatchGuitar
    • gmPatchStrings

      public int gmPatchStrings
    • gmPatchSoloist

      public int gmPatchSoloist
    • gmPatchMelodist

      public int gmPatchMelodist
    • gmPatchThru

      public int gmPatchThru
    • allowPushInMiddleChorus

      public boolean allowPushInMiddleChorus
    • allowRestInFirstChorus

      public boolean allowRestInFirstChorus
    • allowRestInMiddleChorus

      public boolean allowRestInMiddleChorus
    • allowRestInLastChorus

      public boolean allowRestInLastChorus
    • generate2barsEnding

      public boolean generate2barsEnding
    • forceSongToSimpleArrangement

      public boolean forceSongToSimpleArrangement
    • mapBiabBarMarker

      public TreeMap<Integer,Integer> mapBiabBarMarker
      Key=bar index. ZeroBased 0.
    • mapClsBarMarker

      public TreeMap<Integer,Integer> mapClsBarMarker
    • chords

      public TreeMap<Integer,org.jjazz.importers.biab.BiabChord> chords
      Key=chord slot index (there is 4 slots per bar, whatever the time signature). ZeroBased 0.
  • Constructor Details

    • BiabFileReader

      public BiabFileReader(File f, TimeSignature ts, boolean swing)
      Create a reader.

      There is no time signature and Feel information in BIAB files, so if user knows this info it should pass it via the parameters.

      Parameters:
      f -
      ts - Can be null, in this case, algorithm will try to guess the TimeSignature based on the file name.
      swing - True if swing style
  • Method Details