variable

2017-11-24 Thread Gianmaria Lari
I'm sorry for the trivial question but why this code is wrong? \version "2.19.80" music = {a b} \music My understanding was that "\music" is substituted by its value "{a b}" Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org https:

Re: variable

2017-11-24 Thread David Kastrup
Gianmaria Lari writes: > I'm sorry for the trivial question but why this code is wrong? > > \version "2.19.80" > > music = {a b} > \music > > > My understanding was that "\music" is substituted by its value "{a b}" You need to put anything in between. LilyPond looks at \music before decidin

Re: variable

2017-11-24 Thread Gianmaria Lari
On 24 November 2017 at 09:49, David Kastrup wrote: > Gianmaria Lari writes: > > > I'm sorry for the trivial question but why this code is wrong? > > > > \version "2.19.80" > > > > music = {a b} > > \music > > > > > > My understanding was that "\music" is substituted by its value "{a > b}" >

Re: variable

2017-11-24 Thread David Kastrup
Gianmaria Lari writes: > On 24 November 2017 at 09:49, David Kastrup wrote: > >> Gianmaria Lari writes: >> >> > I'm sorry for the trivial question but why this code is wrong? >> > >> > \version "2.19.80" >> > >> > music = {a b} >> > \music >> > >> > >> > My understanding was that "\music" is su

Re: variable

2017-11-24 Thread Werner LEMBERG
>> I'm sorry for the trivial question but why this code is wrong? >> >> \version "2.19.80" >> >> music = {a b} >> \music >> >> >> My understanding was that "\music" is substituted by its value "{a >> b}" > > You need to put anything in between. LilyPond looks at \music > before deciding the

Re: variable

2017-11-24 Thread Malte Meyn
Am 24.11.2017 um 09:37 schrieb Gianmaria Lari: I'm sorry for the trivial question but why this code is wrong? \version "2.19.80" music = {a b} \music The easiest way to deal with this is to add some scheme code that does nothing: \version "2.19.80" music = {a b} #'() \music

Re: variable

2017-11-24 Thread David Kastrup
Malte Meyn writes: > Am 24.11.2017 um 09:37 schrieb Gianmaria Lari: >> I'm sorry for the trivial question but why this code is wrong? >> >> \version "2.19.80" >> >> music = {a b} >> \music > > The easiest way to deal with this is to add some scheme code that does > nothing: > > \versi

Re: repeat index

2017-11-24 Thread Gianmaria Lari
On 20 November 2017 at 23:01, David Kastrup wrote: > Gianmaria Lari writes: > > > On 20 November 2017 at 15:18, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > On 20 November 2017 at 12:00, David Kastrup wrote: > >> > > >> >> Gianmaria Lari writes: > >> > >> >> > Is there an

Re: variable

2017-11-24 Thread Gianmaria Lari
On 24 November 2017 at 10:15, Werner LEMBERG wrote: > > >> I'm sorry for the trivial question but why this code is wrong? > >> > >> \version "2.19.80" > >> > >> music = {a b} > >> \music > >> > >> > >> My understanding was that "\music" is substituted by its value "{a > >> b}" > > > > You nee

Re: repeat index

2017-11-24 Thread David Kastrup
Gianmaria Lari writes: > On 20 November 2017 at 23:01, David Kastrup wrote: >> >> whatever = >> #(define-music-function (pattern) (ly:music?) >> #{ \fixed c' { >>#@(map >>(lambda (p) >> #{ \modalTranspose c #(ly:make-pitch -1 p) \scale #pattern #}) >>

Re: repeat index

2017-11-24 Thread bb
Do you think that as a proper question for a lilipond user blog? I think a scheme blog might be a better place for that problem. I cannot help, but what however, whatever do you think that code to do? Regards Am 24.11.2017 um 10:45 schrieb Gianmaria Lari: > > > whatever = > #(define-musi

Re: repeat index

2017-11-24 Thread David Kastrup
bb writes: > Do you think that as a proper question for a lilipond user blog? The software is called "LilyPond", and LilyPond-user is not a blog but a mailing list. Apart from that, the answer is most emphatically yes. This is a question about common LilyPond usage. It is not trivial, there is

Re: repeat index

2017-11-24 Thread Gianmaria Lari
It works fantastically well. To automatically generate exercise this is more than great. Thanks a lot David! g. On 24 November 2017 at 10:55, David Kastrup wrote: > Gianmaria Lari writes: > > > On 20 November 2017 at 23:01, David Kastrup wrote: > >> > >> whatever = > >> #(define-music-function

Re: repeat index

2017-11-24 Thread bb
Sorry, interpreted this repetition as a scheme topic. Regards Am 24.11.2017 um 13:43 schrieb David Kastrup: > bb writes: > >> Do you think that as a proper question for a lilipond user blog? > The software is called "LilyPond", and LilyPond-user is not a blog but a > mailing list. Apart from th

Re: Adding \noPageBreak Programatically

2017-11-24 Thread Jay Anderson
I'm coming back to this again. Here's the example below updated and a bit smaller: === \version "2.19.80" makeStuff = #(define-void-function () () (add-text #{\markup "fill some space" #}) (add-score #{ \score { \new Staff { c'1 } } #}) (add-text #{\markup "Keep with next"#}) ; This d

Re: variable

2017-11-24 Thread David Wright
On Fri 24 Nov 2017 at 10:08:29 (+0100), David Kastrup wrote: > Gianmaria Lari writes: > > > On 24 November 2017 at 09:49, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > I'm sorry for the trivial question but why this code is wrong? > >> > > >> > \version "2.19.80" > >> > > >>

Re: variable

2017-11-24 Thread Gianmaria Lari
On 24 November 2017 at 16:21, David Wright wrote: > On Fri 24 Nov 2017 at 10:08:29 (+0100), David Kastrup wrote: > > Gianmaria Lari writes: > > > > > On 24 November 2017 at 09:49, David Kastrup wrote: > > > > > >> Gianmaria Lari writes: > > >> > > >> > I'm sorry for the trivial question but wh

scheme function containing score {...}

2017-11-24 Thread Gianmaria Lari
I'm trying to put the score functionality inside a function (consider it a test). Here it is the code: \version "2.19.80" myScore = #(define (music) (ly:music?) #{ \score { $music \layout{} \midi{} } #} ) \myScore {a b c'} The code correctly generate a score but it does not gen

Re: scheme function containing score {...}

2017-11-24 Thread David Kastrup
Gianmaria Lari writes: > I'm trying to put the score functionality inside a function (consider it a > test). Here it is the code: > > \version "2.19.80" > myScore = > #(define (music) (ly:music?) #{ > \score { > $music > \layout{} > \midi{} >} #} ) > > \myScore {a b c'} > > > Th

Volta Alternatives (music theory)

2017-11-24 Thread Joe Davenport
Hello, Another basic question to fill the vaults... I like to work with alternative endings for repeats, i.e. \repeat volta 2 \alternative { } where alternative is two endings matched with the repeat number (i'll explain why): \alternatives { {do re do me do } { mi re do } } I want "volta 2,"

Re: Volta Alternatives (music theory)

2017-11-24 Thread Jacques Menu Muzhic
Hello Joe, You talk of a third repetition, but show 1, 2, and 5... Sorry, no idea what you’re after! JM > Le 24 nov. 2017 à 21:14, Joe Davenport a écrit : > > Hello, > > Another basic question to fill the vaults... I like to work with alternative > endings for repeats, i.e. > > \repeat vol

Re: Volta Alternatives (music theory)

2017-11-24 Thread David Kastrup
Joe Davenport writes: > Hello, > > Another basic question to fill the vaults... I like to work with > alternative endings for repeats, i.e. > > \repeat volta 2 > > \alternative { } > > where alternative is two endings matched with the repeat number (i'll > explain why): > > \alternatives { > {do

Re: Volta Alternatives (music theory)

2017-11-24 Thread Noeck
Hi Joseph, I don't understand where your endings 3 and 4 go. But perhaps this could help you: { \repeat volta 5 { a1 } \alternative {{ b1 } { c'1 } } } { a1 \set Score.repeatCommands = #'((volta "1.")) b1 \set Score.repeatCommands = #'((volta "2. + 5.") end-repeat) c'1 \set Score.r

RE: Volta Alternatives (music theory)

2017-11-24 Thread Mark Stephen Mrotek
Joe, My sense is that you want. A 1st ending A 2nd ending B A 3rd ending as the end of the piece. This would be accomplished with a “Da Capo al fine” at the end of the third A. The 3rd ending would be noted as “fine.” Mark From: lilypond-user [mailto:lilypond-user-bounces+c