Re: tag issue

2019-04-13 Thread Gianmaria Lari
Sorry, a slightly more clear example: \version "2.18.2" \tagGroup #'(testOne testTwo) music = { \tag #'testOne a \tag #'testTwo b } \keepWithTag #'testOne {\music~\music} \keepWithTag #'testTwo {\music~\music} I would expect a~a and b~b but I obtain a a and b~b g.

tag issue

2019-04-13 Thread Gianmaria Lari
I don't understand the following behaviour: \version "2.18.2" \tagGroup #'(testOne testTwo) music = { \tag #'testOne b \tag #'testTwo b^"M " } \keepWithTag #'testOne {\music~\music} \keepWithTag #'testTwo {\music~\music} I would expect this would generate two pretty similar scores: the

Re: scheme memory address

2019-04-10 Thread Gianmaria Lari
On Wed, 10 Apr 2019 at 00:44, Andrew Bernard wrote: > Hi Gianmaria, > > > > It’s time to stop and take stock here. > Thank you Andrew for your message with your suggestions (and also for the other one with the code). Give me some time to go through it. I sincerely appreciate your help. Best

Re: scheme memory address

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 17:07, David Kastrup wrote: > Gianmaria Lari writes: > > > On Tue, 9 Apr 2019 at 11:13, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > >> >

Re: scheme memory address

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 11:13, David Kastrup wrote: > Gianmaria Lari writes: > > > On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > Suppose I write > >> > > >> > > >>

Re: scheme memory address

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 10:45, David Kastrup wrote: > Gianmaria Lari writes: > > > Suppose I write > > > > > > #(define x '(1 2 3)) > > > > > > is there any way in scheme to print the memory address where x is > pointing > > to? (where is

Re: scheme set list function

2019-04-09 Thread Gianmaria Lari
On Tue, 9 Apr 2019 at 10:29, David Kastrup wrote: > Gianmaria Lari writes: > > > Ciao Harm, Andrew, Aaron and David, > > > > this is what I have been able to do adapting Harm code: > > > > \version "2.21.0" > > foo = > > #

scheme memory address

2019-04-09 Thread Gianmaria Lari
Suppose I write #(define x '(1 2 3)) is there any way in scheme to print the memory address where x is pointing to? (where is allocated the first element of the list) Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: scheme set list function

2019-04-09 Thread Gianmaria Lari
Ciao Harm, Andrew, Aaron and David, this is what I have been able to do adapting Harm code: \version "2.21.0" foo = #(let ((x '(1))) (define-scheme-function (arg)(symbol?) (case arg ((incNumber) (set! x (append (drop-right x 1) (list (1+ (last x)) ((unindent) (drop-right! x

Re: scheme set list function

2019-04-08 Thread Gianmaria Lari
On Mon, 8 Apr 2019 at 11:49, Thomas Morley wrote: > Am Mo., 8. Apr. 2019 um 10:07 Uhr schrieb Gianmaria Lari > : > > > > I try to explain what I'm trying to do. > > > > I want some functions helping me to numbering exercise like this: > > > > 1 > &g

Re: scheme set list function

2019-04-08 Thread Gianmaria Lari
I try to explain what I'm trying to do. I want some functions helping me to numbering exercise like this: 1 2 3 3.1 3.2 3.3 4 4.1 4.2 etc. For that I thought to use the following three functions: #(define (incNumber l) (append (drop-right l 1) (list (1+ (last l) #(define (unindent l)

Re: scheme set list function

2019-04-06 Thread Gianmaria Lari
Thank you Harm and Aaron! I tested your solutions;they both work and I think there are pretty clear!! But I think, next days I will try to explain what I'm doing. Thanks a lot!!! g. On Sat, 6 Apr 2019 at 19:09, Aaron Hill wrote: > On 2019-04-06 9:50 am, Thomas Morley wrote: > > Though, I'd

Re: scheme set list function

2019-04-06 Thread Gianmaria Lari
On Sat, 6 Apr 2019 at 16:30, Thomas Morley wrote: > Am Sa., 6. Apr. 2019 um 16:11 Uhr schrieb Gianmaria Lari > : > > > > I wrote this function > > > > #(define (resetList l) (set! l '())) > > > > > > that I would like to set a list to an empty lis

scheme set list function

2019-04-06 Thread Gianmaria Lari
I wrote this function #(define (resetList l) (set! l '())) that I would like to set a list to an empty list. This is an example of use: \version "2.21.0" #(define mylist '(1 2 3)) \markup #(object->string mylist) %this prints (1 2 3) #(define (resetList l) (set! l '())) #(resetList mylist)

Re: lilypond function aliases

2019-04-04 Thread Gianmaria Lari
On Thu, 4 Apr 2019 at 13:28, David Kastrup wrote: > Gianmaria Lari writes: > > > Is this the correct way to create a function alias in lilypond or there > is > > a shorter/better way? > > > > \version "2.21.0" > > extremelyLongNameFunction

Re: lilypond function aliases

2019-04-04 Thread Gianmaria Lari
On Thu, 4 Apr 2019 at 13:07, Andrew Bernard wrote: > Hi Gianmaria, > > Would this do? > > \version "2.19.83" > extremelyLongNameFunction = > #(define-music-function (music) (ly:music?) >(let ((varOne #{ a b b a #})) > #{ >$varOne $music $varOne > #})) > > > #(define

Re: lilypond function aliases

2019-04-04 Thread Gianmaria Lari
On Thu, 4 Apr 2019 at 11:28, Gianmaria Lari wrote: > Is this the correct way to create a function alias in lilypond or there is > a shorter/better way? > > \version "2.21.0" > extremelyLongNameFunction = > #(define-music-function (music) (ly:music?)

lilypond function aliases

2019-04-04 Thread Gianmaria Lari
Is this the correct way to create a function alias in lilypond or there is a shorter/better way? \version "2.21.0" extremelyLongNameFunction = #(define-music-function (music) (ly:music?) (let ((varOne #{ a b b a #})) #{ $varOne $music $varOne #})) alias =

Re: partCombine and direction of stems

2019-04-04 Thread Gianmaria Lari
Great explication Malte! Consider to add it somewhere in the manual in case it is not already there (if it is, I didn't find it). Thank you, Gianmaria On Thu, 4 Apr 2019 at 10:43, Malte Meyn wrote: > > > Am 04.04.19 um 10:23 schrieb Gianmaria Lari: > > I don't understand how l

partCombine and direction of stems

2019-04-04 Thread Gianmaria Lari
I don't understand how lilypond manages the stem direction in the following code. Why the difference in the two scores? \version "2.21.0" \partCombine {c' d' e' f'} {a b c' d'} \partCombine {a b c' d'} {c' d' e' f'} Thank you, g. ___ lilypond-user

Re: Adding parallel thirds to the notes of a melody

2019-04-04 Thread Gianmaria Lari
Thank you to everybody for your code !! ... and especially to Valentin for the comments about my code. g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Adding parallel thirds to the notes of a melody

2019-04-03 Thread Gianmaria Lari
The following "test" function adds parallel thirds to the notes of a melody: \version "2.21.0" scale = {c d e f g a b} test = #(define-music-function (music) (ly:music?) #{ \partCombine $music \modalTranspose c e \scale $music #}) \test {\voiceOne a b c'} I don't have lilypond

Re: glissando

2019-04-02 Thread Gianmaria Lari
Thank you Aaron for you reply! In the meantime I'm trying the other approch you proposed: %% Glissando in second voice. Ciao, g. On Tue, 2 Apr 2019 at 08:44, Aaron Hill wrote: > On 2019-04-01 11:32 pm, Gianmaria Lari wrote: > > ... and it is possible to apply bendafter to a chor

Re: glissando

2019-04-02 Thread Gianmaria Lari
... and it is possible to apply bendafter to a chord instead of a single note? I tried \bendAfter #-6 .. but it doesn't work. g. > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: glissando

2019-04-02 Thread Gianmaria Lari
AAron, is there any way to move the bend code outside the score part? Thank you, g. > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: glissando

2019-04-02 Thread Gianmaria Lari
On Tue, 2 Apr 2019 at 03:21, Aaron Hill wrote: > On 2019-04-01 5:15 pm, Colin Campbell wrote: > > On 2019-04-01 5:28 p.m., Gianmaria Lari wrote: > >> Attached to this email a screenshot of the result of this code > >> > >> \version "2.21.0&qu

glissando

2019-04-01 Thread Gianmaria Lari
Attached to this email a screenshot of the result of this code \version "2.21.0" \fixed c'' { \override Glissando.style = #'zigzag c \glissando \hideNotes c, \unHideNotes d e f } I would like that c is the first quarter, d the second quarter, e the third quarter and so on but because of the

lilypond 2.21 & scheme unbound variable

2019-04-01 Thread Gianmaria Lari
The following function has been written by David Kastrup few years ago but it does not compile on lilypond 2.21 \version "2.21.0" newFinger = #(define-event-function (arg) (number-or-markup?) #{ -\markup \underline \finger #(if (number? arg) (number->string arg) arg) #}) The error I

Re: lilypond 2.21

2019-03-30 Thread Gianmaria Lari
On Sat, 30 Mar 2019 at 13:50, Partitura Organum wrote: > > > On 30-3-2019 10:21, Malte Meyn wrote: > > > > > > Am 30.03.19 um 08:17 schrieb Gianmaria Lari: > >> Are there any istructions available to try to compile lilypond 2.21 > >> on windo

lilypond 2.21

2019-03-30 Thread Gianmaria Lari
Are there any istructions available to try to compile lilypond 2.21 on windows? Thanks, g. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: force a line break in the middle of a measure

2019-03-25 Thread Gianmaria Lari
On Mon, 25 Mar 2019 at 15:39, Lukas-Fabian Moser wrote: > > Am 25.03.19 um 15:17 schrieb Leo Correia de Verdier: > > [Line break in mid-measure and mid-note] > > If exact midi playback isn’t a main concern I would do it like: > > > > \version "2.19.82" > > \new PianoStaff > > << > >\new

Re: force a line break in the middle of a measure

2019-03-25 Thread Gianmaria Lari
On Mon, 25 Mar 2019 at 15:17, Leo Correia de Verdier < leo.correia.de.verd...@gmail.com> wrote: > If exact midi playback isn’t a main concern I would do it like: > > \version "2.19.82" > \new PianoStaff > << > \new Staff {\partial 4 r4 b1 1 1 1*3/4 s4 } > \new Staff {\partial 4 g4 g1 1 1 2.

force a line break in the middle of a measure

2019-03-25 Thread Gianmaria Lari
In the following code I force a line break in the middle of a measure \version "2.19.82" \new PianoStaff << \new Staff {\partial 4 r4 b1 1 1 2.~4 } \new Staff {\partial 4 g4 g1 1 1 2. \bar"" \break \partial 4 4} >> (see image a1) This is ok. Now, I know it's musically wrong but I would

Re: The Guide to getting Point and Click going with Gvim under Ubuntu 18

2019-02-28 Thread Gianmaria Lari
Ciao Andrew, if I remember correctly you decided to use gvim instead of frescobaldi because of some performance problem, isn't it? Anyway, in case you didn't yet do it, could you mention the pros and cons of both choice? Thank you Andrew! g. On Mon, 25 Feb 2019 at 08:57, Andrew Bernard wrote:

Re: aligning variables with upbeats

2019-02-07 Thread Gianmaria Lari
On Thu, 7 Feb 2019 at 15:24, 智樂喬 wrote: > I'm sure I'm not the first person to ask this, but I'm looking for a > clean, way to align music variables which begin with partial measures. For > example, > > \version "2.19.82" > partA = { c'2 b | R1*3 } > partB = { \partial 4 g4 | \bar "||" c'1 } >

Re: snippet to automatically elaborate a bass line

2019-02-01 Thread Gianmaria Lari
On Sat, 2 Feb 2019 at 07:11, Valentin Villenave wrote: > On 1/30/19, Gianmaria Lari wrote: > > Is there any snippet that automatically convert the chord accompaniment > at > > the bass in something a bit more elaborate for the midi? > > Greetings, > something lik

snippet to automatically elaborate a bass line

2019-01-30 Thread Gianmaria Lari
Is there any snippet that automatically convert the chord accompaniment at the bass in something a bit more elaborate for the midi? For example, I write this \version "2.19.82" lh = \chordmode { c4 a:m d:m g } rh = \fixed c' { e8-. e-. g-. e-. f16 g f e~ e8 d-. } \score { << \new Staff

Re: print bass staff not always

2019-01-24 Thread Gianmaria Lari
> > From David K. > AFAIR, \PianoStaff \remove "Keep_alive_together_engraver" is the same as > \GrandStaff . And \RemoveEmptyStaves \override > VerticalAxisGroup.remove-first = ##t is the same as > \RemoveAllEmptyStaves . > > So it's more like you want > > \score > { > \new GrandStaff << >

Re: print bass staff not always

2019-01-24 Thread Gianmaria Lari
On Wed, 23 Jan 2019 at 16:31, Simon Albrecht wrote: > On 22.01.19 09:56, Gianmaria Lari wrote: > > > > I found an issue with \RemoveEmptyStaves. It also remove \Dynamics. > > Just write a layout block like this: > \layout { >\context { >

Re: print bass staff not always

2019-01-24 Thread Gianmaria Lari
On Wed, 23 Jan 2019 at 14:53, David Kastrup wrote: > Gianmaria Lari writes: > [...] > To make lilypond print anyway a staff only containing rests [] > > That does not look simpler than > > \new Staff \with { > keepAliveInterfaces = #'( > rest-interface &

Re: print bass staff not always

2019-01-22 Thread Gianmaria Lari
I found an issue with \RemoveEmptyStaves. It also remove \Dynamics. So, if I write something like this \version "2.19.82" \score { \new PianoStaff { << \new Staff {a4 b c' d'} \new Dynamics {s4\pp} >> } \layout { \context { \PianoStaff \RemoveEmptyStaves

Re: print bass staff not always

2019-01-21 Thread Gianmaria Lari
On Mon, 21 Jan 2019 at 22:33, David Kastrup wrote: > Gianmaria Lari writes: > > > On Mon, 21 Jan 2019 at 14:57, Gianmaria Lari > > wrote: > > > >> > >> > >> On Mon, 21 Jan 2019 at 13:02, Valentin Villenave < > valen...@villenave.net&

Re: print bass staff not always

2019-01-21 Thread Gianmaria Lari
On Mon, 21 Jan 2019 at 14:57, Gianmaria Lari wrote: > > > On Mon, 21 Jan 2019 at 13:02, Valentin Villenave > wrote: > >> On 1/21/19, Andrew Bernard wrote: >> > Not sure how to do it with PianoStaff. >> >> That’s because of the Keep_alive_together engra

Re: fingering

2019-01-21 Thread Gianmaria Lari
On Fri, 23 Feb 2018 at 08:43, Gianmaria Lari wrote: > > On 23 February 2018 at 00:53, Thomas Morley > wrote: > >> 2018-02-22 11:03 GMT+01:00 Thomas Morley : >> > 2018-02-22 10:58 GMT+01:00 Gianmaria Lari : >> >> Dear Harm, >> >> >> >

print bass staff not always

2019-01-21 Thread Gianmaria Lari
The following code prints three "lines" of music. The first and second lines are two staff system (treble and bass) and the third line just one staff (treble). \version "2.19.82" rh = { \clef treble \repeat unfold 3 {a1 b1 c'1 d'1 \break}} lh = { \clef bass s1*4 a1 1 11} \score { \new

tie

2019-01-21 Thread Gianmaria Lari
Is there any simple way to tie the last note contained in a variable? Here it is an example (that doesn't work). \version "2.19.82" test = {a1} {\test ~ a4} Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: fingering color

2019-01-16 Thread Gianmaria Lari
Perfect! Thank you David and Urs!! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

fingering color

2019-01-15 Thread Gianmaria Lari
First time I try to change color of lilypond elements. This is what I did to change fingering color: \version "2.19.82" { c' \finger \markup { \with-color #red 1 }} Is there a better way? Thank you, g. ___ lilypond-user mailing list

Re: include directory for scheme load command

2019-01-11 Thread Gianmaria Lari
Thank you Urs, I'm checking! g. On Fri, 11 Jan 2019 at 08:59, Urs Liska wrote: > Hi Gianmaria, > Am 11.01.19 um 08:50 schrieb Gianmaria Lari: > > I'm trying to use the #(load "filename") command[*]. > It works correctly when the file to load is in the same direct

include directory for scheme load command

2019-01-10 Thread Gianmaria Lari
I'm trying to use the #(load "filename") command[*]. It works correctly when the file to load is in the same directory as my lilypond file. Is there any way to make lilypond be able to load the file from my "include" folder? Thank you, g. [*] The file is "swing.scm"

Re: align "etc." with chordnames

2019-01-10 Thread Gianmaria Lari
On Thu, 10 Jan 2019 at 10:28, Aaron Hill wrote: > On 2019-01-10 12:59 am, Gianmaria Lari wrote: > > How I can align "etc." with chords in this code? > > > > \version "2.19.82" > > \score { > > \new PianoStaff << > > \

align "etc." with chordnames

2019-01-10 Thread Gianmaria Lari
How I can align "etc." with chords in this code? \version "2.19.82" \score { \new PianoStaff << \new ChordNames \chordmode {d2:m a2:m \mark"etc"} \new Staff {b2 c'2 b2 c'2} >> } Thank you, g. ___ lilypond-user mailing list

Re: <>

2019-01-04 Thread Gianmaria Lari
[...] > Anyway, the output from the original code could possibly be improved by > instantiating the voices explicitly instead of using \\: > > \version "2.19.82" > \new Staff { > \time 3/4 \clef bass \key aes \major > << > { aes,2. } > \new Voice { \voiceTwo s4 ees2 } > \new Voice

Re: <>

2019-01-04 Thread Gianmaria Lari
> > > Yes it's wrong but I think it is used because it better complies with > the need to be easy to write it and to be less "dense" (and then someway > easier to read) than traditional/correct way. Maybe the composer could add > a small footnote but in my (not expert) opinion it is a very good

Re: <>

2019-01-04 Thread Gianmaria Lari
On Fri, 4 Jan 2019 at 11:56, Thomas Morley wrote: > Am Fr., 4. Jan. 2019 um 11:17 Uhr schrieb Gianmaria Lari > : > > > > My apologies, I didn't specify the fact that it is 3/4 time. > > > > Thomas solution is graphically perfect > > Well, my

Re: <>

2019-01-04 Thread Gianmaria Lari
My apologies, I didn't specify the fact that it is 3/4 time. Thomas solution is graphically perfect but I have to manage the midi output "manually ". Budanov solution is ok for midi but graphically it's not perfect (slur position is not ok). Here it is the budanov solution: \version

Re: Jianpu

2018-12-27 Thread Gianmaria Lari
On Thu, 27 Dec 2018 at 23:19, Gianmaria Lari wrote: > > > On Thu, 27 Dec 2018 at 21:03, MING TSANG wrote: > >> Dear Paul and David >> >> I don't know the code. Appreciate if either one of you can help to >> resolve the tie problem for jianpu. >> >&g

Re: Jianpu

2018-12-27 Thread Gianmaria Lari
On Thu, 27 Dec 2018 at 21:03, MING TSANG wrote: > Dear Paul and David > > I don't know the code. Appreciate if either one of you can help to resolve > the tie problem for jianpu. > > Thank you, > Ming > > [image: Inline image] > the lily code is > The screenshot shows a score in Tbon format (

Re: two markups

2018-12-21 Thread Gianmaria Lari
On Fri, 21 Dec 2018 at 09:51, Gianmaria Lari wrote: > This works perfectly and print ciccio: > > \version "2.19.82" > test = #(define-scheme-function () () #{ \markup "ciccio" #} ) > \test > > > but if i specify two markups instead of one like here.

two markups

2018-12-21 Thread Gianmaria Lari
This works perfectly and print ciccio: \version "2.19.82" test = #(define-scheme-function () () #{ \markup "ciccio" #} ) \test but if i specify two markups instead of one like here \version "2.19.82" test = #(define-scheme-function () () #{ \markup "ciccio" \markup "ciccio" #} ) \test

Re: scheme function

2018-12-20 Thread Gianmaria Lari
On Thu, 20 Dec 2018 at 13:35, David Kastrup wrote: > Gianmaria Lari writes: > > >> Uh, there is a difference between \markup and \mark . > > > > > > I put \mark just to make things more interesting. I'm joking. > > Shit! I made the usual stup

Re: scheme function

2018-12-20 Thread Gianmaria Lari
> Uh, there is a difference between \markup and \mark . I put \mark just to make things more interesting. I'm joking. Shit! I made the usual stupid mistake that's perfect to complicate things :( > Once you fixed > that, your counter will be reset to 0 for each invocation of the >

Re: scheme function

2018-12-20 Thread Gianmaria Lari
On Thu, 20 Dec 2018 at 13:12, Gianmaria Lari wrote: > > > On Thu, 20 Dec 2018 at 13:10, Urs Liska wrote: > >> >> >> Am 20. Dezember 2018 13:02:22 MEZ schrieb David Kastrup : >> >Gianmaria Lari writes: >> > >> >> %alternate vers

Re: scheme function

2018-12-20 Thread Gianmaria Lari
On Thu, 20 Dec 2018 at 13:10, Urs Liska wrote: > > > Am 20. Dezember 2018 13:02:22 MEZ schrieb David Kastrup : > >Gianmaria Lari writes: > > > >> %alternate version > >> \version "2.19.82" > >> nextcount = > >> #(let ((cou

scheme function

2018-12-20 Thread Gianmaria Lari
Periodically I spend some time on lilypond/scheme hoping to understand a bit more how use them together. This is what I these days. I tried to write in different way the function nextcount that return a number, as a string, increased by one each time you call it. %standard version \version

Re: scheme compile error

2018-12-20 Thread Gianmaria Lari
> > [] > > For me these are not enough clear to understand the problem. Is there any > way to get a more precise indication of the error I did? > > Yes, by reading the whole output ;-) Sorry for sounding harsh, I agree > that it is non-intuitive. But often the messages for "GUILE signaled an >

scheme compile error

2018-12-20 Thread Gianmaria Lari
This program does not compile because myvar is not defined. \version "2.19.82" test = #(cond ((= myvar 0) "zero") ((= myvar 1) "one") ) \markup \test And this is the fixed version \version "2.19.82" myvar = 1 test = #(cond ((= myvar 0) "zero") ((=

Re: \add-score and \bookOutputName

2018-12-18 Thread Gianmaria Lari
On Tue, 18 Dec 2018 at 16:23, David Kastrup wrote: > Gianmaria Lari writes: > > > This is just an example. > > I would like that my scheme function "test " generates a midi file with > the > > name I passed to it. > > This is what I have been a

\add-score and \bookOutputName

2018-12-18 Thread Gianmaria Lari
This is just an example. I would like that my scheme function "test " generates a midi file with the name I passed to it. This is what I have been able to do. It compiles but it does not work: \version "2.19.82" test = #(define-void-function (music filename) (ly:music? string?) #(add-score

Re: Score numbering

2018-12-02 Thread Gianmaria Lari
On Sun, 2 Dec 2018 at 11:32, Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com> wrote: > Hi Gianmaria, > I don't understand what (add-score #{ \score { {c} \midi{}} #} ) stands > for (copy/paste typo?) > Cheers, > Pierre > You're right Pierre. Copy and paste the following code that

Re: Score numbering

2018-12-01 Thread Gianmaria Lari
On Sat, 1 Dec 2018 at 16:55, wrote: > Hi, > > I'm creating a songbook using Lilypond the direct way, not via > lilypond-book, but entering several \score and \markup sections. > Is there an easy way to get automatic numbering of the scores in the > output? I actually create each song by calling

Re: simple scheme in lilypond

2018-11-28 Thread Gianmaria Lari
On Tue, 27 Nov 2018 at 12:12, David Kastrup wrote: > Gianmaria Lari writes: > > > Probably these are very trivial things. Sorry to ask them but would like > to > > understand. > > > > If I write (1): > > > > > > \version "2.19.82"

Re: simple scheme in lilypond

2018-11-27 Thread Gianmaria Lari
f a plain scheme-exression introduced > with # is simply ignored in root context. > > HTH > Jan-Peter > > > Am 27.11.18 um 09:14 schrieb Gianmaria Lari: > > Probably these are very trivial things. Sorry to ask them but would like > > to understand. > > > >

simple scheme in lilypond

2018-11-27 Thread Gianmaria Lari
Probably these are very trivial things. Sorry to ask them but would like to understand. If I write (1): \version "2.19.82" $(object->string (+ 3 2)) Lilypond is happy and compile to a pdf file showing "5". Even this simpler code works... (2) \version "2.19.82" $"Hello" and generate a pdf

Re: scheme function with string

2018-11-19 Thread Gianmaria Lari
On Mon, 19 Nov 2018 at 16:06, David Kastrup wrote: > Gianmaria Lari writes: > > > I have this simple scheme substitution function > > > > myFin = #(define-music-function (m) (ly:music?) > > #{ \addStringNumber \addFingering $m "1x2x" "x

scheme function with string

2018-11-19 Thread Gianmaria Lari
I have this simple scheme substitution function myFin = #(define-music-function (m) (ly:music?) #{ \addStringNumber \addFingering $m "1x2x" "x3x4" #} ) It simply adds some fingering and string numbers on the musical expression argument m. I use like this: \myFin {a b c' d'} I would like

Re: Attaching images to posts

2018-11-18 Thread Gianmaria Lari
On Sun, 18 Nov 2018 at 08:36, Andrew Bernard wrote: > What is the approved and recommend way to attach images for small examples > to posts in this list? > > In the past I have just made an attachment to the post, but it occurred to > me that may not be the best thing to do. > > Andrew > There

Re: Extract the first notes from a musical expression

2018-11-16 Thread Gianmaria Lari
Thank you Gilles! g. On Fri, 16 Nov 2018 at 15:22, Gilles Thibault wrote: > Le 2018-11-15 09:17, Gianmaria Lari a écrit : > > > http://lsr.di.unimi.it/LSR/Item?id=542 > > For Lilypond 2.19.XX, you'll need this updated version : > > http://gillesth.free.fr/Li

Re: Extract the first notes from a musical expression

2018-11-15 Thread Gianmaria Lari
> Strange that I didn't find this code in the LSR... No, that's not true. I didn't find it but it was there: http://lsr.di.unimi.it/LSR/Item?id=542 Thank again Mark! g. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Extract the first notes from a musical expression

2018-11-15 Thread Gianmaria Lari
Great Mark, thank you!!! Strange that I didn't find this code in the LSR... Ciao, g. On Thu, 15 Nov 2018 at 08:54, Mark Knoop wrote: > At 00:16 on 15 Nov 2018, Gianmaria Lari wrote: > >Consider a simple code similar to the following one: > > > >\version "2.19.82&qu

Re: Extract the first notes from a musical expression

2018-11-14 Thread Gianmaria Lari
? Something like: \extractMusic \myVar 4 that should generate { a4 b4 c'4 d'4 | } ? On Thu, 15 Nov 2018 at 00:16, Gianmaria Lari wrote: > Consider a simple code similar to the following one: > > \version "2.19.82" > myVar = \fixed c' { a4 b c' a | a4 4 b c | b4 a b c

Extract the first notes from a musical expression

2018-11-14 Thread Gianmaria Lari
Consider a simple code similar to the following one: \version "2.19.82" myVar = \fixed c' { a4 b c' a | a4 4 b c | b4 a b c' | {\myVar} This will generate a score containing *all* the notes specified in myVar. Now, suppose that I don't want to generate all the notes in myVar but only

Re: midi rhythm

2018-11-06 Thread Gianmaria Lari
On Wed, 7 Nov 2018 at 00:24, Ben wrote: > On 11/6/2018 5:28 PM, Gianmaria Lari wrote: > > I have a simple rhythm score like this: > > \version "2.19.82" > myr = { 4 8 16 16 4 4 } > \score {\new RhythmicStaff \myr } > > > How could I generate some form o

Re: midi rhythm

2018-11-06 Thread Gianmaria Lari
On Tue, 6 Nov 2018 at 23:28, Gianmaria Lari wrote: > I have a simple rhythm score like this: > > \version "2.19.82" > myr = { 4 8 16 16 4 4 } > \score {\new RhythmicStaff \myr } > > > How could I generate some form of midi file from it? It's for didactical

midi rhythm

2018-11-06 Thread Gianmaria Lari
I have a simple rhythm score like this: \version "2.19.82" myr = { 4 8 16 16 4 4 } \score {\new RhythmicStaff \myr } How could I generate some form of midi file from it? It's for didactical use. Thank you, g. ___ lilypond-user mailing list

Re: put footnote in a variable

2018-11-01 Thread Gianmaria Lari
On Thu, 1 Nov 2018 at 11:12, Aaron Hill wrote: > On 2018-11-01 2:59 am, Gianmaria Lari wrote: > > Ahem I found another issue Aaron. > > > > Suppose you have a variable containing the music and the reference to > > your > > footnote code. Something

Re: put footnote in a variable

2018-11-01 Thread Gianmaria Lari
Ahem I found another issue Aaron. Suppose you have a variable containing the music and the reference to your footnote code. Something like this: var = {a b c d \myfootnote e f g a} If you 'use' the variable multiple time in your score you probably don't want to display the footnote

Re: put footnote in a variable

2018-11-01 Thread Gianmaria Lari
On Thu, 1 Nov 2018 at 09:33, Aaron Hill wrote: > On 2018-11-01 1:04 am, Gianmaria Lari wrote: > > I have the following code: > > > > \version "2.19.81" > > \fixed c' { > > \time 3/4 > > c c c > > > > \once \override Score.Fo

put footnote in a variable

2018-11-01 Thread Gianmaria Lari
I have the following code: \version "2.19.81" \fixed c' { \time 3/4 c c c \once \override Score.FootnoteItem.annotation-line = ##f \footnote \markup\huge { * } #'(0 . 5) \markup {\lower #0.8 { \super { * } } "The second time play the measure as " \raise #0.5 \score { \new

Re: chord duration

2018-10-31 Thread Gianmaria Lari
On Wed, 31 Oct 2018 at 15:45, Torsten Hämmerle wrote: > Gianmaria Lari wrote > > But I was wondering why it should not work my > > obvious solution :) > > Ciao Gianmanria, > > Probably because your obvious solution isn't that obvious from a technical > point of

Re: chord duration

2018-10-31 Thread Gianmaria Lari
On Wed, 31 Oct 2018 at 09:21, David Kastrup wrote: > Gianmaria Lari writes: > > > The following code... > > > > \version "2.19.82" > > \new ChordNames \chordmode { c8~c2 } > > > > > > displays C C. How can I make it display a single

chord duration

2018-10-31 Thread Gianmaria Lari
The following code... \version "2.19.82" \new ChordNames \chordmode { c8~c2 } displays C C. How can I make it display a single C chord that last 8~2? Thank you, g. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: blank sheet

2018-10-23 Thread Gianmaria Lari
text { > \Score > \omit BarLine > \omit BarNumber > \omit TimeSignature > } > } > } > > \paper { > indent = 0 > ragged-last-bottom = ##f > tagline = "" > } > > Cheers, > Pierre > > Le mar. 23 oct

blank sheet

2018-10-23 Thread Gianmaria Lari
In the manual at http://lilypond.org/doc/v2.19/Documentation/snippets-big-page#staff-notation-creating-blank-staves there is a code similar to this to create a blank staves. \score { { \repeat unfold 12 { s1 \break }} \layout { indent = 0\in \context { \Staff \remove

Re: tie with manual repeat

2018-10-05 Thread Gianmaria Lari
It works! Thank you Aaron! g. On Fri, 5 Oct 2018 at 11:08, Aaron Hill wrote: > On 2018-10-05 2:03 am, Gianmaria Lari wrote: > > I have the following code > > > > \version "2.19.82" > > \fixed c' { > > a1~ > > \set Score.repeatCommands = #'

tie with manual repeat

2018-10-05 Thread Gianmaria Lari
I have the following code \version "2.19.82" \fixed c' { a1~ \set Score.repeatCommands = #'((volta "1")) a2 b2 \set Score.repeatCommands = #'((volta #f)) \set Score.repeatCommands = #'((volta "2")) a1^"Fine" \set Score.repeatCommands = #'((volta #f)) \bar "|." c1 _"Da capo al Fine" \bar

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

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

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

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} >&g

<    1   2   3   4   5   6   >