Re: grace notes break preceding ties in MIDI

2013-01-12 Thread Adam Spiers
Sorry, I should have moved this thread to lilypond-devel; I'll repost
there ...

On Sat, Jan 12, 2013 at 12:08:21PM +, Adam Spiers wrote:
> On Tue, Jan 8, 2013 at 5:59 PM, Adam Spiers
>  wrote:
> > On Tue, Jan 8, 2013 at 5:41 PM, Eluze  wrote:
> >> I've added an issue to the tracker:
> >> https://code.google.com/p/lilypond/issues/detail?id=3091&thanks=3091&ts=1357666391
> >
> > Thanks!
> >
> >> I'm not aware of a workaround - I could imagine using 2 voices, one without
> >> the grace the other with just the grace and a muted note - but this seems
> >> pretty awkward!
> >
> > Is it perhaps the fault of the
> >
> > if (now_mom ().grace_part_)
> >
> > section in Note_performer::process_music() in lily/note-performer.cc?
> > Does it somehow reintroduce the previous note when shortening it to
> > make room for the grace note, even though the previous note was tied
> > to the one before?
> 
> Is there a performer tutorial similar to the engraver tutorial?
> 
> http://lilypond.org/doc/v2.16/Documentation/contributor/engraver-tutorial
> 
> I've started trying to fix the above bug, but my knowledge of
> LilyPond's C++ performer code (let alone any other code) is poor, and
> getting to grips with the various data structures is slow work.  I'm
> running it through gdb which helps, but any other pointers would be
> really useful.  Thanks!
> 
> Adam

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: grace notes break preceding ties in MIDI

2013-01-12 Thread Adam Spiers
On Tue, Jan 8, 2013 at 5:59 PM, Adam Spiers
 wrote:
> On Tue, Jan 8, 2013 at 5:41 PM, Eluze  wrote:
>> I've added an issue to the tracker:
>> https://code.google.com/p/lilypond/issues/detail?id=3091&thanks=3091&ts=1357666391
>
> Thanks!
>
>> I'm not aware of a workaround - I could imagine using 2 voices, one without
>> the grace the other with just the grace and a muted note - but this seems
>> pretty awkward!
>
> Is it perhaps the fault of the
>
> if (now_mom ().grace_part_)
>
> section in Note_performer::process_music() in lily/note-performer.cc?
> Does it somehow reintroduce the previous note when shortening it to
> make room for the grace note, even though the previous note was tied
> to the one before?

Is there a performer tutorial similar to the engraver tutorial?

http://lilypond.org/doc/v2.16/Documentation/contributor/engraver-tutorial

I've started trying to fix the above bug, but my knowledge of
LilyPond's C++ performer code (let alone any other code) is poor, and
getting to grips with the various data structures is slow work.  I'm
running it through gdb which helps, but any other pointers would be
really useful.  Thanks!

Adam

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: grace notes break preceding ties in MIDI

2013-01-08 Thread Adam Spiers
On Tue, Jan 8, 2013 at 5:41 PM, Eluze  wrote:
> I've added an issue to the tracker:
> https://code.google.com/p/lilypond/issues/detail?id=3091&thanks=3091&ts=1357666391

Thanks!

> I'm not aware of a workaround - I could imagine using 2 voices, one without
> the grace the other with just the grace and a muted note - but this seems
> pretty awkward!

Is it perhaps the fault of the

if (now_mom ().grace_part_)

section in Note_performer::process_music() in lily/note-performer.cc?
Does it somehow reintroduce the previous note when shortening it to
make room for the grace note, even though the previous note was tied
to the one before?

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: grace notes break preceding ties in MIDI

2013-01-08 Thread Eluze
Adam Spiers-5 wrote

thanks Adams

I've added an issue to the tracker:
https://code.google.com/p/lilypond/issues/detail?id=3091&thanks=3091&ts=1357666391

I'm not aware of a workaround - I could imagine using 2 voices, one without
the grace the other with just the grace and a muted note - but this seems
pretty awkward!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/grace-notes-break-preceding-ties-in-MIDI-tp139014p139059.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


grace notes break preceding ties in MIDI

2013-01-07 Thread Adam Spiers
Hi all,

Can anyone explain the following bug, and offer a work-around?
Reproducible on latest git master:

\include "english.ly"
%\include "articulate.ly"

\score {
  \new Staff {
\relative c' {
  % BUG: This first f~ tie will not be honoured in the MIDI output
  % due to the \grace:
  f2 ef4 f~
  % i.e. this f8 will be sounded:
  | f8 \grace c32 f4
}
  }
  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 150 4)
}
  }
}

If the grace note is removed, the tie works.

Thanks!
Adam

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user