Re: Bug with transpose in functions

2019-07-14 Thread Simon Albrecht
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

Re: Bug with transpose in functions

2019-07-12 Thread David Kastrup
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

Re: Bug with transpose in functions

2019-07-12 Thread David Kastrup
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

Re: Bug with transpose in functions

2019-07-12 Thread Wols Lists
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

Re: Bug with transpose in functions

2019-07-12 Thread Werner LEMBERG
> 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

Re: Bug with transpose in functions

2019-07-12 Thread David Kastrup
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' >> >

Re: Bug with transpose in functions

2019-07-12 Thread Aaron Hill
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'

Bug with transpose in functions

2019-07-12 Thread Immanuel Litzroth
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