Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
On 26 February 2018 at 00:07, Simon Albrecht wrote: > On 25.02.2018 22:55, Gianmaria Lari wrote: > >> (I have never reported a bug before. Please let me know if this is not >> the correct procedure). >> > > > > Best, Simon > That's exactly what I was follo

Re: Multiple staffs

2018-02-25 Thread David Wright
On Sun 25 Feb 2018 at 23:27:31 (+), J Martin Rushton wrote: > The only slight niggle is whether I can persuade Lily to > use the full instrument names at the start of the main section rather > than the short names. You can use \set to change shortInstrumentName on the fly at any time. Whatever

Re: Multiple staffs

2018-02-25 Thread J Martin Rushton
On 25/02/18 21:07, pe...@chubb.wattle.id.au wrote: >> "J" == J Martin Rushton writes: > > J> to set a composition which starts with a single instrument before > J> bringing in the whole ensemble. I don't want to break it up into > J> multiple scores because I want the midi to play through as

Re: scheme function returning two scores

2018-02-25 Thread Simon Albrecht
On 25.02.2018 22:55, Gianmaria Lari wrote: (I have never reported a bug before. Please let me know if this is not  the correct procedure). Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https:

Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
On 25 February 2018 at 14:50, David Kastrup wrote: > Gianmaria Lari writes: > > > Yes, I tried it but didn't work did I made a mistake? > > > > \version "2.19.81" > > > > myScore = #(define-scheme-function (music) (ly:music?) #{ > > \bookpart { > > \score { $music \layout{} } > > \

Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
On 25 February 2018 at 22:41, Caagr98 wrote: > > > On 02/25/18 22:24, Gianmaria Lari wrote: > > > > > > On 25 February 2018 at 15:05, Caagr98 caag...@gmail.com>> wrote: > > > > > > > > On 02/25/18 14:50, David Kastrup wrote: > > > In the mean time, you could define a void function and le

Re: scheme function returning two scores

2018-02-25 Thread Caagr98
On 02/25/18 22:24, Gianmaria Lari wrote: > > > On 25 February 2018 at 15:05, Caagr98 > wrote: > > > > On 02/25/18 14:50, David Kastrup wrote: > > In the mean time, you could define a void function and let it just call > > toplevel-score-handler on your

Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
On 25 February 2018 at 15:05, Caagr98 wrote: > > > On 02/25/18 14:50, David Kastrup wrote: > > In the mean time, you could define a void function and let it just call > > toplevel-score-handler on your scores. Of course, this would no longer > > allow you to place those scores in a book or bookp

Re: Multiple staffs

2018-02-25 Thread peter
> "J" == J Martin Rushton writes: J> to set a composition which starts with a single instrument before J> bringing in the whole ensemble. I don't want to break it up into J> multiple scores because I want the midi to play through as a single J> performance. Something like this? I think it

Re:Error in a very short snippet

2018-02-25 Thread Flaming Hakama by Elaine
> > -- Forwarded message -- > From: Paolo Prete > To: Lilypond-User Mailing List > Cc: > Bcc: > Date: Fri, 23 Feb 2018 21:56:52 + (UTC) > Subject: Error in a very short snippet > Hi, > what's wrong in the snippet below and how can I fix it? > It compiles if I remove the tie ~

Re: List of articulations into a scheme variable

2018-02-25 Thread Paolo Prete
Hello Simon, my goal is to create a set of functions for manipulating a single note passed as a parameter, in many ways.This is the basic of music variation. For example: (function 1)c'4 >  r8 c'8 (function 2)c'4 >  c'16 c'16 c'16 c'16 (function 3)c'4 >  r4 \grace c'8 etc. Il Dom

Re: List of articulations into a scheme variable

2018-02-25 Thread Simon Albrecht
Hi Paolo, as more questions like these pour in, it would indeed be interesting to know what you are trying to achieve/why you need this function. :-) Best, Simon On 25.02.2018 18:44, Paolo Prete wrote: I'm sorry if I re-post a previous question, but I try to be more precise. How can I extra

Re: List of articulations into a scheme variable

2018-02-25 Thread David Kastrup
Paolo Prete writes: > I'm sorry if I re-post a previous question, but I try to be more > precise.How can I extract and print the list of articulations, keeping > them into a new variable, from an argument passed as ly:music to a > scheme function?I tried with the snippet below: it compiles but th

List of articulations into a scheme variable

2018-02-25 Thread Paolo Prete
I'm sorry if I re-post a previous question, but I try to be more precise.How can I extract and print the list of articulations, keeping them into a new variable, from an argument passed as ly:music to a scheme function?I tried with the snippet below: it compiles but the articulations are not sho

Re: scheme function returning two scores

2018-02-25 Thread Caagr98
On 02/25/18 14:50, David Kastrup wrote: > In the mean time, you could define a void function and let it just call > toplevel-score-handler on your scores. Of course, this would no longer > allow you to place those scores in a book or bookpart. Why not call add-score (defined in scm/lily-library

Re: scheme function returning two scores

2018-02-25 Thread David Kastrup
Gianmaria Lari writes: > Yes, I tried it but didn't work did I made a mistake? > > \version "2.19.81" > > myScore = #(define-scheme-function (music) (ly:music?) #{ > \bookpart { > \score { $music \layout{} } > \score { \unfoldRepeats $music \midi{}} > } #} ) > > \myScore {\repeat

Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
On 25 February 2018 at 14:15, David Kastrup wrote: > Gianmaria Lari writes: > > > On 25 February 2018 at 13:15, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > Because lilypond "doesn't expect" to return more than one score I > tried > >> to > >> > put the call to my function

Re: scheme function returning two scores

2018-02-25 Thread David Kastrup
Gianmaria Lari writes: > On 25 February 2018 at 13:15, David Kastrup wrote: > >> Gianmaria Lari writes: >> >> > Because lilypond "doesn't expect" to return more than one score I tried >> to >> > put the call to my function returning the score inside a \book. But this >> > also does not work and

Re: Multiple staffs

2018-02-25 Thread J Martin Rushton
On 24/02/18 23:17, David Kastrup wrote: > J Martin Rushton writes: > >> I'm trying to set a composition which starts with a single instrument >> before bringing in the whole ensemble. I don't want to break it up into >> multiple scores because I want the midi to play through as a single >> perfo

Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
On 25 February 2018 at 13:15, David Kastrup wrote: > Gianmaria Lari writes: > > > Because lilypond "doesn't expect" to return more than one score I tried > to > > put the call to my function returning the score inside a \book. But this > > also does not work and I get this error: > > > > This is

Re: scheme function returning two scores

2018-02-25 Thread David Kastrup
Gianmaria Lari writes: > Because lilypond "doesn't expect" to return more than one score I tried to > put the call to my function returning the score inside a \book. But this > also does not work and I get this error: > > This is my code: > > \version "2.19.81" > myScore = #(define-scheme-functio

Re: scheme function returning two scores

2018-02-25 Thread Gianmaria Lari
Because lilypond "doesn't expect" to return more than one score I tried to put the call to my function returning the score inside a \book. But this also does not work and I get this error: Starting lilypond-windows.exe 2.19.81 [Untitled (2)]... Processing `C:/Users/GIANMA~1/AppData/Local/Temp/fre