Re: \sustainOff\sustainOn produces inconsistent MIDI results

2015-02-17 Thread Kevin Barry
On Sun, Feb 15, 2015 at 9:58 AM, bensonby benso...@gmail.com wrote:

 I have the same problem too. As a quick solution, I split the note into two
 with a tie, one for sustainOff and one for sustainOn.


Does that not add an extra note column (affecting layout)?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \sustainOff\sustainOn produces inconsistent MIDI results

2015-02-16 Thread H. S. Teoh
On Sun, Feb 15, 2015 at 02:58:11AM -0700, bensonby wrote:
 I have the same problem too. As a quick solution, I split the note
 into two with a tie, one for sustainOff and one for sustainOn.
 
 If there are no real solutions, I guess someone may write a function
 to automatically achieve this, say, \sustainOffOn
[...]

Hmm, that's not a bad idea. What if the function that breaks a note into
two tied parts, like you said, also manipulates the grobs so that it
still renders as if it's the original note? Not sure if this is actually
achievable, but it *seems* that it should be possible with a
sufficiently clever Scheme function... (I'm currently cutting my teeth
on using Scheme in lilypond.)

Having a function that automatically does this is essential for me,
since I use this a LOT in my piece, and it would be far too tedious to
manually split every note where the problem occurs.

Or I could try to locate the source of the problem in the lilypond code
and fix it there... I'm not sure which one would require more effort,
though, since I first have to understand enough of the code to figure
out where it might have gone wrong. :-P


T

-- 
If blunt statements had a point, they wouldn't be blunt...

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


Re: \sustainOff\sustainOn produces inconsistent MIDI results

2015-02-15 Thread bensonby
I have the same problem too. As a quick solution, I split the note into two
with a tie, one for sustainOff and one for sustainOn.

If there are no real solutions, I guess someone may write a function to
automatically achieve this, say, \sustainOffOn



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/sustainOff-sustainOn-produces-inconsistent-MIDI-results-tp171356p171904.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


\sustainOff\sustainOn produces inconsistent MIDI results

2015-02-02 Thread H. S. Teoh
Hi All,

I'm having some trouble with the MIDI output from lilypond for a new
piano composition. I have a lot of \sustainOff\sustainOn sequences in
the music, and while they show up fine on the score, the MIDI file
appears to sometimes turn off sustain completely instead, instead of
turning off previously sustained notes and starting new sustained notes.

Here's a snippet that exhibits this problem:

| g8(\sustainOn d' g d f,\sustainOff\sustainOn d' f d |
  ees,\sustainOff\sustainOn c' ees c d,\sustainOff\sustainOn bes' 
d)\sustainOff r |

I used a decompiler on the MIDI file and discovered that some of the
sustain pedal controller events have been transposed. The correct
sequence of controller events ought to be (64,0), (64,127), but lilypond
appears to sometimes generate (64,127), (64,0) instead, which, of
course, has the effect of completely turning off the sustain. (Note: 64
is the sustain pedal, 0 means pedal off, 127 means pedal on).

Is this a known bug? Are there any workarounds?

P.S. I'm using lilypond 2.18.2.


T

-- 
The volume of a pizza of thickness a and radius z can be described by the 
following formula: pi zz a. -- Wouter Verhelst

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


Re: \sustainOff\sustainOn produces inconsistent MIDI results

2015-02-02 Thread H. S. Teoh
On Mon, Feb 02, 2015 at 09:27:44PM -0800, H. S. Teoh wrote:
[...]
 So, I decided to try the latest git version of lilypond (2.19.16) to
 see if this glitch still exists, and I'm happy to report that it's now
 fixed!!
[...]

Oops, I spoke too soon. :-(  The glitch still exists, just in a
different random pattern, so I didn't catch it at first.

Anybody has any idea how to fix / work around this?


T

-- 
Some days you win; most days you lose.

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


Re: \sustainOff\sustainOn produces inconsistent MIDI results

2015-02-02 Thread H. S. Teoh
On Mon, Feb 02, 2015 at 05:34:56PM -0800, H. S. Teoh wrote:
 Hi All,
 
 I'm having some trouble with the MIDI output from lilypond for a new
 piano composition. I have a lot of \sustainOff\sustainOn sequences in
 the music, and while they show up fine on the score, the MIDI file
 appears to sometimes turn off sustain completely instead, instead of
 turning off previously sustained notes and starting new sustained
 notes.
[...]
 I used a decompiler on the MIDI file and discovered that some of the
 sustain pedal controller events have been transposed.
[...]
 P.S. I'm using lilypond 2.18.2.
[...]

So, I decided to try the latest git version of lilypond (2.19.16) to see
if this glitch still exists, and I'm happy to report that it's now
fixed!! Furthermore, the layout engine seems to have improved
significantly -- an overfull page I had before is now correctly spilled
over to adjacent pages so it no longer needs to be compressed. Hooray!

I guess I'll be using 2.19.16 from now on. :-)


T

-- 
War doesn't prove who's right, just who's left. -- BSD Games' Fortune

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