@@ -336,7 +336,7 @@ static bool shouldProceedBend(const Note* note)
336336 const Note* baseNote = bendFor->startNoteOfChain ();
337337
338338 const GuitarBend* firstBend = baseNote->bendFor ();
339- if (firstBend && firstBend->type () == GuitarBendType::PRE_BEND) {
339+ if (firstBend && firstBend->bendType () == GuitarBendType::PRE_BEND) {
340340 const Note* nextNote = firstBend->endNote ();
341341 if (nextNote) {
342342 baseNote = nextNote;
@@ -382,7 +382,7 @@ static std::unordered_map<const Note*, int> getGraceNoteBendDurations(const Note
382382 const Note* bendStartNote = nullptr ;
383383 std::unordered_set<const Note*> currentNotes;
384384
385- if (note->bendFor () && note->bendFor ()->type () == GuitarBendType::SLIGHT_BEND) {
385+ if (note->bendFor () && note->bendFor ()->bendType () == GuitarBendType::SLIGHT_BEND) {
386386 return {};
387387 }
388388
@@ -455,7 +455,7 @@ static void collectGuitarBend(const Note* note,
455455 int quarterOffsetFromStartNote = 0 ;
456456 int currentQuarterTones = 0 ;
457457
458- if (note->bendFor ()->type () == GuitarBendType::GRACE_NOTE_BEND) {
458+ if (note->bendFor ()->bendType () == GuitarBendType::GRACE_NOTE_BEND) {
459459 curPitchBendSegmentStart -= graceOffset;
460460 }
461461
@@ -823,7 +823,7 @@ static void collectNote(EventsHolder& events, const Note* note, const CollectNot
823823 }
824824
825825 // skipping the notes which are connected by bends
826- if (bendBack && bendBack->type () != GuitarBendType::PRE_BEND && i == 0 ) {
826+ if (bendBack && bendBack->bendType () != GuitarBendType::PRE_BEND && i == 0 ) {
827827 continue ;
828828 }
829829
@@ -1087,7 +1087,7 @@ void CompatMidiRendererInternal::collectGraceBeforeChordEvents(Chord* chord, Cho
10871087 for (Chord* c : grChords) {
10881088 for (const Note* note : c->notes ()) {
10891089 GuitarBend* bendFor = note->bendFor ();
1090- if (bendFor && bendFor->type () == GuitarBendType::PRE_BEND) {
1090+ if (bendFor && bendFor->bendType () == GuitarBendType::PRE_BEND) {
10911091 continue ;
10921092 }
10931093
@@ -1096,7 +1096,7 @@ void CompatMidiRendererInternal::collectGraceBeforeChordEvents(Chord* chord, Cho
10961096 params.velocityMultiplier = veloMultiplier;
10971097 params.tickOffset = tickOffset;
10981098
1099- bool isGraceBend = (note->bendFor () && note->bendFor ()->type () == GuitarBendType::GRACE_NOTE_BEND);
1099+ bool isGraceBend = (note->bendFor () && note->bendFor ()->bendType () == GuitarBendType::GRACE_NOTE_BEND);
11001100 if (prevChord) {
11011101 params.previousChordTicks = prevChord->actualTicks ().ticks ();
11021102 }
0 commit comments