using \pushToTag and \removeWithTag consecutively

2018-04-14 Thread Gianmaria Lari
I don't understand the behaviour of this code: \version "2.19.81" var = {a \tag #'here {b} a} {\var} %Result: a b a {\removeWithTag #'here \var} %Result: a a {\pushToTag #'here b! \removeWithTag #'here \var} %Result: a a ; Expected: a b! a The result is: a b a - ok! a a - ok! a a - not ok; sh

Re: note duration without note name

2018-04-14 Thread Gianmaria Lari
On 13 April 2018 at 09:47, David Kastrup wrote: > Gianmaria Lari writes: > > > On 13 April 2018 at 09:15, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > I would expect the two scores generated by the following code were

Re: using \pushToTag and \removeWithTag consecutively

2018-04-14 Thread Gianmaria Lari
On 14 April 2018 at 15:15, David Kastrup wrote: > Gianmaria Lari writes: > > > I don't understand the behaviour of this code: > > > > \version "2.19.81" > > var = {a \tag #'here {b} a} > > {\var} %Result: a b a > > {\rem

Re: using \pushToTag and \removeWithTag consecutively

2018-04-14 Thread Gianmaria Lari
On 14 April 2018 at 15:34, Gianmaria Lari wrote: > > > On 14 April 2018 at 15:15, David Kastrup wrote: > >> Gianmaria Lari writes: >> >> > I don't understand the behaviour of this code: >> > >> > \version "2.19.81

Re: using \pushToTag and \removeWithTag consecutively

2018-04-14 Thread Gianmaria Lari
On 14 April 2018 at 15:46, David Kastrup wrote: > Gianmaria Lari writes: > > > I found a not nice solution but something that work: > > > > \version "2.19.81" > > var = {a \tag #'herea {} \tag #'hereb {b} a} > > {\pushToTag #'her

frescobaldi destination temp folder

2018-04-20 Thread Gianmaria Lari
When I want to try a lilypond snippet using Frescobaldi, I normally create a new file and I compile it without save it explicitly. Frescobaldi saves it for me in a temporary folder (in my Frescobaldi settings I have "Save the document if possibile" checked). For example if I do it now, in the lily

Re: frescobaldi destination temp folder

2018-04-21 Thread Gianmaria Lari
On 21 April 2018 at 08:39, Urs Liska wrote: > > > Am 20.04.2018 um 23:06 schrieb Gianmaria Lari: > > When I want to try a lilypond snippet using Frescobaldi, I normally create > a new file and I compile it without save it explicitly. Frescobaldi saves > it for me in a te

Re: frescobaldi destination temp folder

2018-04-21 Thread Gianmaria Lari
On 21 April 2018 at 09:44, Gianmaria Lari wrote: > On 21 April 2018 at 08:39, Urs Liska wrote: > >> >> >> Am 20.04.2018 um 23:06 schrieb Gianmaria Lari: >> >> When I want to try a lilypond snippet using Frescobaldi, I normally >> create a new file a

Re: frescobaldi destination temp folder

2018-04-22 Thread Gianmaria Lari
On 22 April 2018 at 00:48, Urs Liska wrote: > > > Am 21.04.2018 um 14:54 schrieb Gianmaria Lari: > > > > On 21 April 2018 at 09:44, Gianmaria Lari wrote: > >> On 21 April 2018 at 08:39, Urs Liska wrote: >> >>> >>> >>> Am 20.04.201

Re: frescobaldi destination temp folder

2018-04-22 Thread Gianmaria Lari
On 22 April 2018 at 04:55, Andrew Bernard wrote: > Hi Kieran, > > Using F 3.0.0, if you don't save the file a temp filename is generated. > The output goes to a file in /tmp (Linux) which is a randomly generated > name different each time. So how are you even looking at that? > I will avoid to h

frescobaldi clipboard file name

2018-04-23 Thread Gianmaria Lari
The following frescobaldi snippet call the "more.com" program with the parameter "\\readme" -*- python; from subprocess import call call(["more.com", "\\readme"]) This other one-line snippet pastes, in the frescobaldi editor window at the cursor position, the lilypond file name (including pa

Re: frescobaldi clipboard file name

2018-04-23 Thread Gianmaria Lari
On 23 April 2018 at 15:48, David Wright wrote: > On Mon 23 Apr 2018 at 09:43:01 (+0200), Gianmaria Lari wrote: > > The following frescobaldi snippet call the "more.com" program with the > > parameter "\\readme" > > > > -*- python; > > from s

Off topic - SITT 20 Studies in Double Stops

2018-04-24 Thread Gianmaria Lari
My question is off topic. I hope it will not be a problem. The following is one excerpt from the Sitt book, 20 studies in Double Stops. Why in the first three measures the G, D and A are written as g4~4~4~4 d 4~4~4~4 a4~4~4~4 instead of g1 d1 a1? Any idea? Ciao, g. ___

spacer rest *

2018-04-25 Thread Gianmaria Lari
I don't understand the difference between s8 8 8 and s8*3. For example have a look to the following code that engrave two scores: \version "2.19.81" rh = \fixed c'{g8 8 8 8} dyn = { s8 \> 8 8 8 \!} { << \rh \new Dynamics \dyn >> } dyn = { s8 \> 8*3 \!} { << \rh \new Dynamics \dyn >> } These a

Re: spacer rest *

2018-04-25 Thread Gianmaria Lari
ll might remember from > their childhood. Every block has a single slot to attach stuff to. > > s8 8 8 are 3 distinct cubes of edge length 1. > s8*3 is a single block measuring 1x1x3. > > Cheers, Robert > > > On 25 Apr 2018, at 10:09, Gianmaria Lari wrote: > > I don'

Re: Off topic - SITT 20 Studies in Double Stops

2018-04-26 Thread Gianmaria Lari
On 24 April 2018 at 21:13, Trevor Bača wrote: > > > On Tue, Apr 24, 2018 at 2:06 AM, Gianmaria Lari > wrote: > >> My question is off topic. I hope it will not be a problem. >> >> The following is one excerpt from the Sitt book, 20 studies in Double >>

Re: spacer rest *

2018-04-27 Thread Gianmaria Lari
On 25 April 2018 at 10:09, Gianmaria Lari wrote: > I don't understand the difference between s8 8 8 and s8*3. > > For example have a look to the following code that engrave two scores: > > \version "2.19.81" > rh = \fixed c'{g8 8 8 8} > > dyn = { s

Re: spacer rest *

2018-04-27 Thread Gianmaria Lari
On 27 April 2018 at 11:56, Andrew Bernard wrote: > Hi Gianmaria, > > The shorthand of using a duration number only applies to notes, not rests. > > As per the NR: > > Isolated durations – durations without a pitch – that occur within a music > sequence will take their pitch from the preceding not

Re: spacer rest *

2018-04-27 Thread Gianmaria Lari
On 27 April 2018 at 14:58, David Kastrup wrote: > David Wright writes: > > > On Fri 27 Apr 2018 at 13:49:24 (+0200), Gianmaria Lari wrote: > >> On 27 April 2018 at 11:56, Andrew Bernard > wrote: > >> > >> > Hi Gianmaria, > >> > > &

Re: frescobaldi clipboard file name

2018-04-27 Thread Gianmaria Lari
On 24 April 2018 at 16:30, David Wright wrote: > On Tue 24 Apr 2018 at 08:53:01 (+0200), Gianmaria Lari wrote: > > On 23 April 2018 at 15:48, David Wright > wrote: > > > > > On Mon 23 Apr 2018 at 09:43:01 (+0200), Gianmaria Lari wrote: > > > > The

Re: spacer rest *

2018-04-27 Thread Gianmaria Lari
On 27 April 2018 at 15:44, David Wright wrote: > [...] > Well, I don't know how the decision was arrived at, but my own view is > that it's the correct one. The duration-only notation is aimed at > people writing rhythms, and they write them for instruments that play > notes (and pseudonotes like

Re: spacer rest *

2018-04-27 Thread Gianmaria Lari
On 27 April 2018 at 15:45, Simon Albrecht wrote: > On 27.04.2018 10:53, Gianmaria Lari wrote: > >> To fix it I found two different ways. >> First one: >> >> \version "2.19.81" >> \score { >> \new Voice << >>

Re: spacer rest *

2018-05-01 Thread Gianmaria Lari
On 1 May 2018 at 00:09, David Wright wrote: > On Fri 27 Apr 2018 at 22:56:31 (+0200), Gianmaria Lari wrote: > > On 27 April 2018 at 15:44, David Wright > wrote: > > > > > [...] > > > Well, I don't know how the decision was arrived at, but my own vie

Re: spacer rest *

2018-05-01 Thread Gianmaria Lari
On 1 May 2018 at 05:32, David Wright wrote: > On Tue 01 May 2018 at 00:15:24 (+0200), David Kastrup wrote: > > David Wright writes: > > > > > AFAICT the important exception that was introduced with naked > > > durations was that c 4 notates a single note whereas c4 4 notates two. > > > > There w

Re: spacer rest *

2018-05-01 Thread Gianmaria Lari
On 1 May 2018 at 09:39, David Kastrup wrote: > Gianmaria Lari writes: > > > --- Exceptions --- > > Making "s8 8 8" acting differently than "c8 8 8" introduce an > > exception. > > Not "introduces" but "constitutes" since ther

slur and percent

2018-05-01 Thread Gianmaria Lari
Is there any way to write this \version "2.19.81" {a( b c' a a b c' a)} with a repeat percent? Something similar to this: \version "2.19.81" {\repeat percent 2 {a( b c' a} ) } Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org https:/

Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 08:56, David Kastrup wrote: > Federico Bruni writes: > > > Hi all > > > > How can I create custom fingerings which are made of a number and a > > letter? > > I want to display 3t, 2t, etc. > > > > I found this snippet in the LSR: > > http://lsr.di.unimi.it/LSR/Item?id=83 > > > >

Re: tenuto fingering: 3t, 2t, 4t, etc.

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 09:25, David Kastrup wrote: > Gianmaria Lari writes: > > > On 2 May 2018 at 08:56, David Kastrup wrote: > >> > >> Something like this? > >> > >> \version "2.19.81" > >> > >> t = > >

Re: slur and percent

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 14:50, Simon Albrecht wrote: > On 02.05.2018 08:19, Gianmaria Lari wrote: > >> Is there any way to write this >> >> \version "2.19.81" >> {a( b c' a a b c' a)} >> >> >> with a repeat percent? Something s

Re: Shortcut for Frescobaldi

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 16:31, Tim Slattery wrote: > I installed Frescobaldi on my new Win10 PC. Everything's good, except > that the installation process didn't create a shortcut on the desktop. > I tried to look at the properties of the entry in the Start menu, but > apparently you can't do that on Wi

Re: slur and percent

2018-05-02 Thread Gianmaria Lari
On 2 May 2018 at 08:19, Gianmaria Lari wrote: > Is there any way to write this > > \version "2.19.81" > {a( b c' a a b c' a)} > > > with a repeat percent? Something similar to this: > > \version "2.19.81" > {\repeat percent 2 {a( b c&#x

fingering and addfingering

2018-05-03 Thread Gianmaria Lari
I have short music exercises (for accordion) that I would like to engrave with alternate fingering like in the following example: \version "2.19.81" \fixed c' {c-2 d-3 e-2 f-3 g-2 a-3 b-4 c'-5} \fixed c' {c-1 d-2 e-3 f-4 g-2 a-3 b-4 c'-5} \fixed c' {c-1 d-2 e-3 f-4 g-2 a\3 b-4 c'\5} and this is

Re: slur and percent

2018-05-03 Thread Gianmaria Lari
On 3 May 2018 at 01:27, Aaron Hill wrote: > Is there any way to write this >>> >>> \version "2.19.81" >>> {a( b c' a a b c' a)} >>> >>> with a repeat percent? Something similar to this: >>> >>> \version "2.19.81" >>> {\repeat percent 2 {a( b c' a} ) } >>> >>> Thank you, g. >>> >> >> I found in th

alternative and slur

2018-05-04 Thread Gianmaria Lari
Have a look to this code and the resulting engraving: \version "2.19.81" { \repeat volta 2 {a( a a a} \alternative { {b1)} {c'1}} } Is there any way to indicate that the second alternative should be slurred like the first one - "a( a a a c1)" ? Maybe an half slur? It's just a curiosity. T

fingering notation alternative

2018-05-05 Thread Gianmaria Lari
This is more a notation question than a lilypond question. Does exist a standard fingering notation to indicate that a note can be played for example with 2 or 3? I normally write \finger "2(3)" or \finger "2/3" but I'm not sure this is correct. Thank you, g.

Re: fingering notation alternative

2018-05-05 Thread Gianmaria Lari
On 5 May 2018 at 17:18, Malte Meyn wrote: > > > Am 05.05.2018 um 16:33 schrieb Gianmaria Lari: > >> This is more a notation question than a lilypond question. >> >> Does exist a standard fingering notation to indicate that a note can be >> played for exam

Re: fingering notation alternative

2018-05-07 Thread Gianmaria Lari
On 5 May 2018 at 22:37, Gianmaria Lari wrote: > > On 5 May 2018 at 17:18, Malte Meyn wrote: > >> >> >> Am 05.05.2018 um 16:33 schrieb Gianmaria Lari: >> >>> This is more a notation question than a lilypond question. >>> >>> Does exist

Re: fingering notation alternative

2018-05-07 Thread Gianmaria Lari
On 7 May 2018 at 23:59, Thomas Morley wrote: > 2018-05-07 23:35 GMT+02:00 Gianmaria Lari : > > > > > I tried to write alternative fingering putting fingering numbers on a > > column. This is what I did: > > > > { c' \finger \markup \center-column {2 3}}

Apply legato to music

2018-05-08 Thread Gianmaria Lari
This code generate a midi file where the first and last measure are played "legato" because of the slur. \version "2.19.81" \include "articulate.ly" music = { b( b b b) | d' d' d' d' | c'( c' c' c') } \score { \articulate \music \midi{} } Now I would like to rewrite the previous code separat

Re: variable and tie

2018-05-09 Thread Gianmaria Lari
On 13 April 2018 at 09:13, David Kastrup wrote: > Gianmaria Lari writes: > > > I would like to tie the last note contained in a variable like this > > > > \version "2.19.81" > > var = {a b a} > > {\var ~ a} > > > > but this generates

Re: variable and tie

2018-05-09 Thread Gianmaria Lari
On 9 May 2018 at 10:45, David Kastrup wrote: > Gianmaria Lari writes: > > > On 13 April 2018 at 09:13, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > > >> > At the moment I do this > >> > > >> > \ve

simple scheme function #{ $note #}

2018-05-11 Thread Gianmaria Lari
Sorry to bother with a simple question. Why this does not work? \version "2.19.81" pit = #(define-music-function (p) (ly:pitch?) #{ $p #} ) { \pit c' } Changing the body to #{ $p $p #} or #{ $pit 4 #} or #{ $p a' #} it works g. __

Re: simple scheme function #{ $note #}

2018-05-11 Thread Gianmaria Lari
On 11 May 2018 at 17:58, Aaron Hill wrote: > On 2018-05-11 08:46, David Kastrup wrote: > >> Aaron Hill writes: >> >> On 2018-05-11 06:53, Gianmaria Lari wrote: >>> >>>> Sorry to bother with a simple question. Why this does not work? >>&

Re: concatenating notes with a music expression

2018-05-15 Thread Gianmaria Lari
On 15 May 2018 at 00:40, Gilles Thibault wrote: > Le 2018-05-12 00:16, Sirius Barras a écrit : > >> I have a sequence of notes and a music expression. >> How could be done a function concatenating each element of the sequence >> with the music expression? >> >> For instance, if the sequence is {c

Re: concatenating notes with a music expression

2018-05-15 Thread Gianmaria Lari
On 15 May 2018 at 11:40, Lukas-Fabian Moser wrote: > > Thank you Gilles I have yet a problem, how can engrave the foo > generated list in a score? > > Thank you Lukas & Malte. I tried your solutions and they works! Thanks!!! ___ lilypond-user mailin

Re: concatenating notes with a music expression

2018-05-15 Thread Gianmaria Lari
On 15 May 2018 at 12:10, David Kastrup wrote: > Malte Meyn writes: > > > Am 15.05.2018 um 10:27 schrieb Gianmaria Lari: > >> Thank you Gilles I have yet a problem, how can engrave the foo > >> generated list in a score? > > > > You should make a

Re: concatenating notes with a music expression

2018-05-15 Thread Gianmaria Lari
On 15 May 2018 at 15:45, David Kastrup wrote: > Gianmaria Lari writes: > > > On 15 May 2018 at 12:10, David Kastrup wrote: > > > >> Malte Meyn writes: > >> > >> > Am 15.05.2018 um 10:27 schrieb Gianmaria Lari: > >> >> Tha

split { {a b} {c' d'} {e' f'} } in multiple expression

2018-05-15 Thread Gianmaria Lari
I have a musical expression made of several musical expression like the following: { {a b} {c' d'} {e' f'} } I would like to loop on it and generate a different score with each sub-expression. Something like this: { foreach x in X \myScore \x } How can I do it? Thank you. P.S. The follow

Re: split { {a b} {c' d'} {e' f'} } in multiple expression

2018-05-16 Thread Gianmaria Lari
On 16 May 2018 at 02:23, Andrew Bernard wrote: > Hi Gianmaria, > > From your posts I suspect you may find a use for Abjad. Have you looked > into it? > > Just a suggestion. > > Andrew > > Ciao Andrew, your suggestion is welcome! I had a look to Abjad when I discovered Lilypond, maybe a couple ye

Re: split { {a b} {c' d'} {e' f'} } in multiple expression

2018-05-16 Thread Gianmaria Lari
On 16 May 2018 at 09:04, Gianmaria Lari wrote: > > > On 16 May 2018 at 02:23, Andrew Bernard wrote: > >> Hi Gianmaria, >> >> From your posts I suspect you may find a use for Abjad. Have you looked >> into it? >> >> Just a suggestion. >>

check undefined variable scheme

2018-05-24 Thread Gianmaria Lari
The following function increase a counter by 1 and return it as string #(define count 0) #(define (nextcount) (begin (set! count (+ 1 count)) (number->string count) ) ) Is my code ok, or I should write it in a different way? Is

Re: check undefined variable scheme

2018-05-24 Thread Gianmaria Lari
Thank you David, Urs and Andrew for the code, the link to the documentation and the study suggestion! On Thu, 24 May 2018 at 11:00, Andrew Bernard wrote: > Hi Gianmaria, > > The others have beat me to it, but I just wanted to say you should read up > on closures in Scheme. This will give you are

changing file name of midi output

2018-06-13 Thread Gianmaria Lari
If I compile the following code in Frescobaldi \version "2.19.81" \score { {a b } \midi{}} \score { {a b } \midi{}} \score { {a b } \midi{}} lilypond generates the following midi files: document.mid document-1.mid document-2.mid Is there any way to change the numeration like this: documen

Re: changing file name of midi output

2018-06-13 Thread Gianmaria Lari
On Wed, 13 Jun 2018 at 16:29, Karlin High wrote: > On 6/13/2018 9:03 AM, Gianmaria Lari wrote: > > > > Is there any way to change the numeration like this: > > > > document-01.mid > > document-02.mid > > document-03.mid > > I asked The Goo

Numbers as easy note heads with RhythmicStaff

2018-06-15 Thread Gianmaria Lari
This code \version "2.19.81" \new RhythmicStaff { \easyHeadsOn a4 b8 a } generate this score: [image: image.png] That's great. Now instead of the note name, I would like to write the numbers representing the scale-degree inside the note head. So I tried adding to the previous code the snippet

Re: Numbers as easy note heads with RhythmicStaff

2018-06-15 Thread Gianmaria Lari
On Fri, 15 Jun 2018 at 15:00, Aaron Hill wrote: > On 2018-06-15 05:27, Gianmaria Lari wrote: > > \version "2.19.81" > > #(define Ez_numbers_engraver > >(make-engraver > > (acknowledgers > > ((note-head-interface engraver grob source-engrave

output some string

2018-06-15 Thread Gianmaria Lari
I'm trying to write some code in scheme. At the moment I do it using frescobaldi and I need some help for the output. The following code \version "2.19.81" #(define (f w) w) $(f "Hello") generates a pdf file containing "Hello". If my function f is called passing something that is not a string l

Re: output some string

2018-06-15 Thread Gianmaria Lari
On Fri, 15 Jun 2018 at 20:12, Aaron Hill wrote: > On 2018-06-15 09:40, Gianmaria Lari wrote: > > I'm trying to write some code in scheme. At the moment I do it using > > frescobaldi and I need some help for the output. > > The following code > > > > \

Re: output some string

2018-06-15 Thread Gianmaria Lari
On Fri, 15 Jun 2018 at 19:33, Simon Albrecht wrote: > On 15.06.2018 18:40, Gianmaria Lari wrote: > > I'm trying to write some code in scheme. At the moment I do it using > > frescobaldi and I need some help for the output. > > The following code > > > >

Re: output some string

2018-06-16 Thread Gianmaria Lari
On Fri, 15 Jun 2018 at 22:47, Thomas Morley wrote: > 2018-06-15 20:11 GMT+02:00 Aaron Hill : > > On 2018-06-15 09:40, Gianmaria Lari wrote: > >> > >> I'm trying to write some code in scheme. At the moment I do it using > >> frescobaldi and I need some hel

Re: output some string

2018-06-17 Thread Gianmaria Lari
On Sat, 16 Jun 2018 at 21:49, Thomas Morley wrote: > > > 2018-06-16 16:56 GMT+02:00 Gianmaria Lari : > >> >> >> On Fri, 15 Jun 2018 at 22:47, Thomas Morley >> wrote: >> >>> 2018-06-15 20:11 GMT+02:00 Aaron Hill : >>> > On 2018-06-15

omit fingering

2018-06-19 Thread Gianmaria Lari
On the accordion scores to indicate that the button to press is on the counter bass we put a small dash under the finger number. This is how David Kastrup suggest me to do it: \version "2.19.81" {a_\markup \underline \finger 3} This is perfect. But, is there any way to make it removed when I sp

Re: omit fingering

2018-06-19 Thread Gianmaria Lari
On Tue, 19 Jun 2018 at 19:01, David Kastrup wrote: > Gianmaria Lari writes: > > > On the accordion scores to indicate that the button to press is on the > > counter bass we put a small dash under the finger number. This is how > David > > Kastrup suggest me to do it

avoid orphan

2018-06-20 Thread Gianmaria Lari
I have a code similar to this \version "2.19.81" \markup "Etude" {a b c' d'} \markup "Etude" {a b c' d'} [.] Is there any way to keep the markup and score together? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/

Re: avoid orphan

2018-06-20 Thread Gianmaria Lari
eBreak > {a b c' d'} > > > HTH > Jan-Peter > > Am 20.06.2018 um 10:15 schrieb Gianmaria Lari: > > I have a code similar to this > > > > \version "2.19.81" > > \markup "Etude" &g

scheme function returning #beats and beat duration

2018-06-22 Thread Gianmaria Lari
Is there any scheme function returning the number of beats and the duration of each beat of the mesure where the function is invoked? For instance, I would like this code.. \version "2.19.81" { \time 3/4 \writeBeats \writeBeatDuration a4 b a %just some music \time 4/4 \writeBeats \writeBeatD

variable of type finger

2018-06-25 Thread Gianmaria Lari
This code define a variable containing a duration and the use it: \version "2.19.81" #(define myDuration (ly:make-duration 4 0)) { a\myDuration} I can do something similar wit fingering: \version "2.19.81" myFinger = \finger "3" { a\myFinger} How can I rewrite the previous myFinger = \finger

Re: variable of type finger

2018-06-25 Thread Gianmaria Lari
On Mon, 25 Jun 2018 at 15:49, David Kastrup wrote: > Gianmaria Lari writes: > > > This code define a variable containing a duration and the use it: > > > > \version "2.19.81" > > #(define myDuration (ly:make-duration 4 0)) > > { a\myDuration} > &

Re: variable of type finger

2018-06-25 Thread Gianmaria Lari
On Mon, 25 Jun 2018 at 22:44, David Kastrup wrote: > Gianmaria Lari writes: > > > On Mon, 25 Jun 2018 at 15:49, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > This code define a variable containing a duration and the use it:

scheme variable name in lilypond

2018-06-25 Thread Gianmaria Lari
Is there any way to refer a scheme variable containing numbers in the name, in lilypond? For example, if I write: #(define duration32 (ly:make-duration (ly:intlog2 32))) duration32 is a valid scheme variable name. But this is not a valid lilypond variable name. Is there any way to access it anyw

Re: scheme variable name in lilypond

2018-06-25 Thread Gianmaria Lari
On Mon, 25 Jun 2018 at 23:37, Thomas Morley wrote: > 2018-06-25 23:31 GMT+02:00 Gianmaria Lari : > > Is there any way to refer a scheme variable containing numbers in the > name, > > in lilypond? > > > > For example, if I write: > > > > #(define d

add a ticktock measure to the beginning of a score

2018-06-26 Thread Gianmaria Lari
Few days ago I asked how to get the number of beats and the duration of each beat of a measure. The reason was that I wanted to try to write some facilities to add a ticktock measure at the beginning of a score: My idea was to transform a score like this \version "2.19.81" music = {\time 3/4 a b

Re: add a ticktock measure to the beginning of a score

2018-06-26 Thread Gianmaria Lari
On Tue, 26 Jun 2018 at 10:47, David Kastrup wrote: > Gianmaria Lari writes: > > > For this I thought to write a substitution function etc. Something like > > this (it doesn't compile): > > > > \version "2.19.81" > > myScore = > > #(defi

Re: add a ticktock measure to the beginning of a score

2018-06-26 Thread Gianmaria Lari
On Tue, 26 Jun 2018 at 12:03, David Kastrup wrote: > Gianmaria Lari writes: > > > On Tue, 26 Jun 2018 at 10:47, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > For this I thought to write a substitution function etc.

fingering position

2018-08-09 Thread Gianmaria Lari
This code \version "2.19.82" \fixed c' { a8\3( b d'-5 c'\4 b a) r4} generate this [image: image.png] I don't like having some fingering above the slur (3) and some below it (5 & 4). How can I change this? Thank you, g. ___ lilypond-user mailing lis

Re: fingering position

2018-08-09 Thread Gianmaria Lari
Thank you David and Noeck, your solutions work. I will also check the documentation about staff-padding and avoid-slur as soon as the lilypond site will work again. Thanks, g. On Fri, 10 Aug 2018 at 00:22, Noeck wrote: > Dear Gianmaria, > > here are two more options: > > > \fixed c' { > \once

frescobaldi print music

2018-08-10 Thread Gianmaria Lari
To avoid having one or two staves on last page, I use often page-count. Unfortunately this often cuts the bottom of the page (the tagline or some notes). Today I tried to understand better the problem, checking the printable area of the printer, playing with annotate-spacing, margin etc,. And I di

Re: frescobaldi print music

2018-08-10 Thread Gianmaria Lari
Thank you Ben and Michael. Good to know! g. On Fri, 10 Aug 2018 at 21:03, Michael Rivers wrote: > I have always had formatting problems printing from Frescobaldi too. The > built-in PDF printer in Windows 10 works just fine for me. > > > > -- > Sent from: http://lilypond.1069038.n5.nabble.com/Us

changing fingering position

2018-09-22 Thread Gianmaria Lari
This code write some fingering on "b" pitch. \version "2.19.82" {b4\finger\markup {2 \circle 3 2} \prall} .. and here it is the result: [image: image.png] This is ok except the fact that the elements 2 (3) 2 are written not enough close each other. How can I make them more close like in the fo

Re: changing fingering position

2018-09-22 Thread Gianmaria Lari
On Sat, 22 Sep 2018 at 17:44, Thomas Morley wrote: > > > 2018-09-22 17:29 GMT+02:00 Gianmaria Lari : > >> This code write some fingering on "b" pitch. >> >> \version "2.19.82" >> {b4\finger\markup {2 \circle 3 2} \prall} >> >>

fingering footnote

2018-09-22 Thread Gianmaria Lari
I would like to create a footnote attached to a fingering. Ideally something like this \version "2.19.82" {b\finger "2*"} [image: image.png] ... and then in the footnote I would like to give some indication about the fingering. I saw the footnote examples but I have not been able to attach the

Re: changing fingering position

2018-09-22 Thread Gianmaria Lari
On Sat, 22 Sep 2018 at 19:27, Abraham Lee wrote: > Hi, Gianmaria! > > On Sat, Sep 22, 2018 at 10:42 AM Gianmaria Lari > wrote: > >> >> On Sat, 22 Sep 2018 at 17:44, Thomas Morley >> wrote: >> >>> >>> >>> 2018-09-22 17:29 GMT+02

Re: fingering footnote

2018-09-23 Thread Gianmaria Lari
On Sun, 23 Sep 2018 at 02:55, Aaron Hill wrote: > On 2018-09-22 10:17 am, Gianmaria Lari wrote: > > I would like to create a footnote attached to a fingering. Ideally > > something like this > > > > \version "2.19.82" > > {b\finger "2*"} >

Re: Is there a short way of forcing a particular octave?

2016-12-20 Thread Gianmaria Lari
Ciao Peter, I know this is a totally different story but I suggest also to give a try to avoid the "\relative" and to use absolute octave entry. It takes some weeks to get used but in my opinion it is more easy to manage code in this way. IMHO "\relative" is too much prone to annoying mistakes and

\fixed absolute octave entry without brackets

2016-12-20 Thread Gianmaria Lari
Few months ago I switched from relative to absolute octave entry. In the rare cases I need to write very high or very low octave notes and consequently I need to write too much single quote ( ' ) or comma ( , ) I use the "\fixed" function that I just discovered (before I was using "\transpose") \

Re: Is there a short way of forcing a particular octave?

2016-12-21 Thread Gianmaria Lari
On 21 December 2016 at 20:47, David Wright wrote: > > I don't understand "annoying"/"unannoying" mistakes, I'm not an expert user. I have used relative and absolute entry and with relative I makes mistakes more frequently and spend much time fixing it. I personally consider these mistakes annoy

Re: Is there a short way of forcing a particular octave?

2016-12-21 Thread Gianmaria Lari
On 21 December 2016 at 23:22, Nathan Ho wrote: > [...] > I also stopped using \relative a few years ago (I think it was in response to one of your posts here). No regrets here. > > It's alright for simple monophonic melodies, but it gets in the way when engraving anything with chords or polyphony.

Re: Is there a short way of forcing a particular octave?

2016-12-23 Thread Gianmaria Lari
On 23 December 2016 at 09:59, Shevek wrote: > I compose in \relative mode, and my practice is to use \resetRelativeOctave > at the beginning of every new phrase. It is a lot of characters to type, > but > I've found that creating unnecessary aliases makes code harder to read and > libraries harde

Re: Is there a short way of forcing a particular octave?

2016-12-23 Thread Gianmaria Lari
On 23 December 2016 at 10:39, ptoye wrote: > [...] I really didn't mean to start a theological discussion about how one > should > type in music, but obviously some people feel much stronger about it than I > do. There are three ways of telling LilyPond what the pitch of a particular > note shoul

addFingering

2017-01-13 Thread Gianmaria Lari
I have a problem with (the fantastic) addFingering snippet. Here it is my simple code. \version "2.19.54" \include "addFingering.ly" { \addFingering {a b a b} #"12" } { \addFingering {\repeat unfold 2 {a b}} #"12" } I expected that the two generated score would be exactly the same that i

Re: addFingering

2017-01-13 Thread Gianmaria Lari
I probably figured out the reason of this behavior. The function "addFingering" is evaluated before evaluating the repeat. So lilypond evaluate this \addFingering {\repeat unfold 2 {a b}} #"12" as \repeat unfold 2 {a-1 b-2} instead of \addFingering {a b a b} #"12" But why? Is it possibl

Re: addFingering

2017-01-14 Thread Gianmaria Lari
Thank you David Kastrup and Nalesnik and Gilles for you answer your help and your explication! I don't like the idea to use a custom repeat instead of the standard. But I will make some test and see. Thank you again! ___ lilypond-user mailing list lilyp

beams in treble and bass staff

2017-01-14 Thread Gianmaria Lari
Novice question. Attached it's a small music fragment from an harpe score. How can I write it using lilypond? Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: addFingering

2017-01-14 Thread Gianmaria Lari
> \repeat unfold is not evaluated at all. It stays a repeat expression > until it gets interpreted. One reason it is implemented that way is in > order to keep the repeats in > > \relative c' { \repeat unfold 4 { c e g } } > > in the same octave rather than get > > \relative c' { c e g c e g c e

Re: beams in treble and bass staff

2017-01-14 Thread Gianmaria Lari
Thanks to all for the very quick and fantastic help. g. On 14 January 2017 at 11:36, Noeck wrote: > Hi Andrew, > > Am 14.01.2017 um 11:26 schrieb Andrew Bernard: > > 'Change staff' is perfectly fine in English. > > Thanks, Andrew. Reading the German translation for the two words (the > closest w

Re: addFingering

2017-01-14 Thread Gianmaria Lari
> \repeat { } > > generates a repeat expression. Whether that is "unfold" or not. > And relativity works "linearly" across the expression even when > alternatives are involved where having to write \relative each time > would be a royal pita. > -- > David Kastrup Yes that's clear. But

Re: addFingering

2017-01-16 Thread Gianmaria Lari
I'm sorry, clearly there is a misunderstanding and it is probably from my side, my apologies. Let's me try to explain what I mean. Try to have a look to this code and the related output (it is attached). \version "2.19.54" \include "addFingering.ly" fragment = {c' d' e' f'} \markup "Plain" {\fr

Re: addFingering

2017-01-17 Thread Gianmaria Lari
David Wright wrote: > But your response here addresses a second point, the > interpretation of \repeat unfold. Looking at my attached > example, it seems to me that you want "\repeat unfold 2 { foo }" > to behave like "foo foo" (B and C). Yes, that's exact! > But, if that's what you want, > wh

Re: Back in the Pond

2017-01-19 Thread Gianmaria Lari
Trevor wrote: > I'll definitely turn on my financial contribution again. > what's the better way to give a financial contribution? g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: \removing the time signature

2017-01-24 Thread Gianmaria Lari
On 25 January 2017 at 00:31, Sam Frybyte wrote: > I know it's possible but I need someone to direct me to the snippet or > place in the manuals so I can invisiblize it for a cadenza piece, just the > link. > http://lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#metronome-marks

<    1   2   3   4   5   6   >