|
@@ -101,13 +101,13 @@ export class VoiceGenerator {
|
|
|
* @param measureStartAbsoluteTimestamp
|
|
|
* @param maxTieNoteFraction
|
|
|
* @param chord
|
|
|
- * @param guitarPro
|
|
|
+ * @param octavePlusOne Software like Guitar Pro gives one octave too low, so we need to add one
|
|
|
* @param printObject whether the note should be rendered (true) or invisible (false)
|
|
|
* @returns {Note}
|
|
|
*/
|
|
|
public read(noteNode: IXmlElement, noteDuration: Fraction, typeDuration: Fraction, noteTypeXml: NoteType, normalNotes: number, restNote: boolean,
|
|
|
parentStaffEntry: SourceStaffEntry, parentMeasure: SourceMeasure,
|
|
|
- measureStartAbsoluteTimestamp: Fraction, maxTieNoteFraction: Fraction, chord: boolean, guitarPro: boolean,
|
|
|
+ measureStartAbsoluteTimestamp: Fraction, maxTieNoteFraction: Fraction, chord: boolean, octavePlusOne: boolean,
|
|
|
printObject: boolean, isCueNote: boolean, isGraceNote: boolean, stemDirectionXml: StemDirectionType, tremoloStrokes: number,
|
|
|
stemColorXml: string, noteheadColorXml: string, vibratoStrokes: boolean): Note {
|
|
|
this.currentStaffEntry = parentStaffEntry;
|
|
@@ -117,7 +117,7 @@ export class VoiceGenerator {
|
|
|
try {
|
|
|
this.currentNote = restNote
|
|
|
? this.addRestNote(noteNode.element("rest"), noteDuration, noteTypeXml, normalNotes, printObject, isCueNote, noteheadColorXml)
|
|
|
- : this.addSingleNote(noteNode, noteDuration, noteTypeXml, typeDuration, normalNotes, chord, guitarPro,
|
|
|
+ : this.addSingleNote(noteNode, noteDuration, noteTypeXml, typeDuration, normalNotes, chord, octavePlusOne,
|
|
|
printObject, isCueNote, isGraceNote, stemDirectionXml, tremoloStrokes, stemColorXml, noteheadColorXml, vibratoStrokes);
|
|
|
// read lyrics
|
|
|
const lyricElements: IXmlElement[] = noteNode.elements("lyric");
|
|
@@ -313,11 +313,11 @@ export class VoiceGenerator {
|
|
|
* @param noteDuration
|
|
|
* @param divisions
|
|
|
* @param chord
|
|
|
- * @param guitarPro
|
|
|
+ * @param octavePlusOne Software like Guitar Pro gives one octave too low, so we need to add one
|
|
|
* @returns {Note}
|
|
|
*/
|
|
|
private addSingleNote(node: IXmlElement, noteDuration: Fraction, noteTypeXml: NoteType, typeDuration: Fraction,
|
|
|
- normalNotes: number, chord: boolean, guitarPro: boolean,
|
|
|
+ normalNotes: number, chord: boolean, octavePlusOne: boolean,
|
|
|
printObject: boolean, isCueNote: boolean, isGraceNote: boolean, stemDirectionXml: StemDirectionType, tremoloStrokes: number,
|
|
|
stemColorXml: string, noteheadColorXml: string, vibratoStrokes: boolean): Note {
|
|
|
//log.debug("addSingleNote called");
|