lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First scheme program: Preprocessing graphical objects...Segmentatio


From: Han-Wen Nienhuys
Subject: Re: First scheme program: Preprocessing graphical objects...Segmentation fault
Date: Sun, 21 Jun 2009 10:48:26 -0300

There are some functions (mostly on the C++ side) that assume that the
music objects they contain are unique copies, and modify them in
place. If objects are shared, functions like going to relative mode
and transposition may apply transformations multiple times, laeding to
excessive pitches, for example.

On Sat, Jun 20, 2009 at 9:37 PM, Neil Puttock<address@hidden> wrote:
> 2009/6/20 Tim Woodall <address@hidden>:
>
>> What am I doing wrong?
>
> I can't really explain why it breaks, but repeating a music expression
> without making a fresh copy can cause weird errors.  If you change
> (append notes notes) to (append notes (ly:music-deep-copy notes)) it
> works fine.



-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]