On 12.07.19 20:04, Werner LEMBERG wrote:
Functions like transpose act destructively on their argument, so you
need a copy or the original will get changed. [...]
How can Joe User find out whether a function is acting destructively?
The Extending Manual tells him about using $ in music
Wols Lists writes:
> On 12/07/19 19:04, Werner LEMBERG wrote:
>>
>>> Functions like transpose act destructively on their argument, so you
>>> need a copy or the original will get changed. [...]
>>
>> How can Joe User find out whether a function is acting destructively?
>>
> Computer pedant
Werner LEMBERG writes:
>> Functions like transpose act destructively on their argument, so you
>> need a copy or the original will get changed. [...]
>
> How can Joe User find out whether a function is acting destructively?
All music functions are allowed to do that by definition because it
On 12/07/19 19:04, Werner LEMBERG wrote:
>
>> Functions like transpose act destructively on their argument, so you
>> need a copy or the original will get changed. [...]
>
> How can Joe User find out whether a function is acting destructively?
>
Computer pedant here :-)
Functions do not have
> Functions like transpose act destructively on their argument, so you
> need a copy or the original will get changed. [...]
How can Joe User find out whether a function is acting destructively?
Werner
___
lilypond-user mailing list
Immanuel Litzroth writes:
> This seems to do the wrong thing:
>
>>
> \version "2.19.81"
> testme = #(define-music-function
>(parser location music)
>(ly:music?)
>#{
> \transpose c c' {#music } {#music }
> #})
> \testme g'
>>
>
On 2019-07-11 11:52 pm, Immanuel Litzroth wrote:
This seems to do the wrong thing:
\version "2.19.81"
testme = #(define-music-function
(parser location music)
(ly:music?)
#{
\transpose c c' {#music } {#music }
#})
\testme g'
This seems to do the wrong thing:
>
\version "2.19.81"
testme = #(define-music-function
(parser location music)
(ly:music?)
#{
\transpose c c' {#music } {#music }
#})
\testme g'
>
printing out two g'' instead of a g'' and a g'
Also I