}
void
-Audio_note::tie_to (Audio_note *t)
+Audio_note::tie_to (Audio_note *t, Moment skip)
{
tied_ = t;
Audio_note *first = t;
while (first->tied_)
first = first->tied_;
- first->length_mom_ += length_mom_;
+ // Add the skip to the tied note and the length of the appended note
+ // to the full duration of the tie...
+ first->length_mom_ += skip + length_mom_;
length_mom_ = 0;
}
public:
Audio_note (Pitch p, Moment m, bool tie_event, Pitch transposition);
- void tie_to (Audio_note *);
+ // with tieWaitForNote, there might be a skip between the tied notes!
+ void tie_to (Audio_note *, Moment skip = 0);
Pitch pitch_;
Moment length_mom_;