Class BiabFileReader
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 Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanKey=chord slot index (there is 4 slots per bar, whatever the time signature).intintintbooleanbooleanintintintintintintintintintintKey=bar index.intbooleanintbooleanintintintintbooleanbooleanint -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
file
-
timeSignature
-
swing
public boolean swing -
styleFileName
-
styleFeatures
-
version
public int version -
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
-
mapClsBarMarker
-
chords
-
-
Constructor Details
-
BiabFileReader
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
-
readFile
Read the file and construct a song.Update only the chordleadsheet: songstructure details must be set by a rhythm provider.
- Returns:
- @throws IOException
- Throws:
SongCreationExceptionIOException
-