Re: Variables, tags, filtering, conditions

2024-05-19 Thread Timothy Lanfear
On 19/05/2024 12:11, Giles Boardman wrote: Hello Timothy, Looks about perfect to me. Thank you very much. I can see how it's working and there are obviously a lot of other programming possibilities hinted at that I haven't found the documentation for. Where do I read about #( if (string=?

Re: Variables, tags, filtering, conditions

2024-05-19 Thread Giles Boardman
From: Timothy Lanfear Sent: 19 May 2024 12:03 To: Giles Boardman ; lilypond-user@gnu.org Subject: Re: Variables, tags, filtering, conditions On 19/05/2024 11:36, Giles Boardman wrote: Hello, I am an occasional Bb clarinetist and very bad at transposing on the fly. I would like

Re: Variables, tags, filtering, conditions

2024-05-19 Thread Timothy Lanfear
On 19/05/2024 11:36, Giles Boardman wrote: Hello, I am an occasional Bb clarinetist and very bad at transposing on the fly. I would like to create alternative versions of a score based on the value of a parameter. How about this as a solution? \version "2.24.0" instrument = "clarinet"

Variables, tags, filtering, conditions

2024-05-19 Thread Giles Boardman
controlling and filtering using tags and I have seen #(if in the SATB template and read about \if and \unless, but I can't put it all together and do something like (in a pseudo-code example) ... Set a variable "myInstrument" to be "Clarinet" Subsequently if "

Re: Defining variables mid-stream in a music expression using tags.

2023-05-20 Thread dfro
Valentin, Thank you, for the detailed explanation and the links.  Jean's website-book is a wonderful resource. Peace, David

Re: Defining variables mid-stream in a music expression using tags.

2023-05-20 Thread Valentin Petzel
Hello David, > I do have a difference in the the output of the code below, which does > not use \new Staff. > > Without \textLengthOn, it makes two staves. With \textLenthOn, it > combines the two music expressions into one stave. Why is that happening? That is one of the many pitfalls with

Re: Defining variables mid-stream in a music expression using tags.

2023-05-19 Thread dfro
tags is the only way I have found to do that. I am glad that I have a method that works. Thank you for clearly conveying to me that I should keep global variables static! There is nothing that speaks against using tags for this, but you can do this totally fine using music function

Re: Defining variables mid-stream in a music expression using tags.

2023-05-19 Thread Valentin Petzel
Hello David, > My conundrum is that I want to call the same music expression (that is > declared as a variable) from different staves, but also cause markup > functions inside the music expression to behave differently from outside > the music expression. Using tags is the only way

Re: Defining variables mid-stream in a music expression using tags.

2023-05-18 Thread dfro
(but anytime the function is called!). So using functions allows you to control when things are evaluated. To be more specific: It allows us to evaluate the same thing in different manners. Using tags will first evaluate an expression and then modify the resulting object as you like. But instead we can

Re: Defining variables mid-stream in a music expression using tags.

2023-05-18 Thread Valentin Petzel
using functions allows you to control when things are evaluated. To be more specific: It allows us to evaluate the same thing in different manners. Using tags will first evaluate an expression and then modify the resulting object as you like. But instead we can use a function to actually directly

Re: Defining variables mid-stream in a music expression using tags.

2023-05-18 Thread dfro
the markup/music functions within that staff and not other staves. I hope that I am not belaboring the point. The method with the static global variables, tags, music function, and markup function works. I am just wondering if there is a simpler way. Peace, David

Re: Defining variables mid-stream in a music expression using tags.

2023-05-18 Thread Valentin Petzel
Am Donnerstag, 18. Mai 2023, 05:32:28 CEST schrieb dfro: > \version "2.24.1" > > #(define-markup-command >(symbol > layout props > var staff-variable) >(markup? markup?) >(interpret-markup > layout props > #{ \markup \concat { "Symbol " #var #staff-variable } #} >

Re: Defining variables mid-stream in a music expression using tags.

2023-05-17 Thread dfro
here it is necessary to first create the global binding using #(define ...) and then use (set! ...) to change that binding. Cheers, Valentin Am Mittwoch, 17. Mai 2023, 21:58:49 CEST schrieb dfro: I want to define and change variables mid-stream in a music expression, while also using tags. Below is an

Re: Defining variables mid-stream in a music expression using tags.

2023-05-17 Thread dfro
here it is necessary to first create the global binding using #(define ...) and then use (set! ...) to change that binding. Cheers, Valentin Am Mittwoch, 17. Mai 2023, 21:58:49 CEST schrieb dfro: I want to define and change variables mid-stream in a music expression, while also using tags. Below is an

Re: Defining variables mid-stream in a music expression using tags.

2023-05-17 Thread Valentin Petzel
g 'textII) (set! l "D")) > c''1^\markup\l >#}) > > \musicfn textI > \musicfn textII > > Note that here it is necessary to first create the global binding using > #(define ...) and then use (set! ...) to change that binding. > > Cheers, > Valen

Re: Defining variables mid-stream in a music expression using tags.

2023-05-17 Thread Valentin Petzel
#(define ...) and then use (set! ...) to change that binding. Cheers, Valentin Am Mittwoch, 17. Mai 2023, 21:58:49 CEST schrieb dfro: > I want to define and change variables mid-stream in a music expression, > while also using tags. Below is an example of what I am trying; but, it > doe

Defining variables mid-stream in a music expression using tags.

2023-05-17 Thread dfro
I want to define and change variables mid-stream in a music expression, while also using tags. Below is an example of what I am trying; but, it does not work. \version "2.24.1" \keepWithTag #'textI %\keepWithTag #'textII {   \tag #'textI { #(define l "A") }   \tag #'te

Re: Tags and ossias

2023-05-09 Thread Federico Sarudiansky
Wow, what an adorable solution! Merci beaucoup, Jean! You have a gift! F. El mar, 9 may 2023 a las 11:35, Jean Abou Samra () escribió: > Le mardi 09 mai 2023 à 11:10 -0300, Federico Sarudiansky a écrit : > > Hi everyone! Please consider the following problem: a work for a soloist > and

Re: Tags and ossias

2023-05-09 Thread Jean Abou Samra
Le mardi 09 mai 2023 à 11:10 -0300, Federico Sarudiansky a écrit : > Hi everyone!  > Please consider the following problem: a work for a soloist and accompaniment > in which there is an «alternative» part. For instance, a work for flute and > guitar which the composer allows to be played on

Tags and ossias

2023-05-09 Thread Federico Sarudiansky
Hi everyone! Please consider the following problem: a work for a soloist and accompaniment in which there is an «alternative» part. For instance, a work for flute and guitar which the composer allows to be played on violin. The solo parts are almost identical, and differ only in isolated places.

Re: Tags for contexts without duration

2022-04-15 Thread Jean Abou Samra
Le 15/04/2022 à 14:12, Kieren MacMillan a écrit : Hi Dimitris, If you get into more numerous and complex tweaks, I highly recommend using the edition-engraver — keeping presentation tweaks (e.g., moving a RehearsalMark) out of the note code is my primary use-case for the EE. Hope that helps!

Re: Tags for contexts without duration

2022-04-15 Thread Kieren MacMillan
Hi Dimitris, If you get into more numerous and complex tweaks, I highly recommend using the edition-engraver — keeping presentation tweaks (e.g., moving a RehearsalMark) out of the note code is my primary use-case for the EE. Hope that helps! Kieren.

Re: Tags for contexts without duration

2022-04-15 Thread Valentin Petzel
Chaire Demetrios! tags work by assigning a special tag attribute to a music event and can therefore be applied to any music event by the syntax \tag tag music. But in my opinion tags are not always the best method to achieve such things, especially should you ever want to have something like

Re: Tags for contexts without duration

2022-04-15 Thread Dimitris Marinakis
Oh wow I can't believe I missed this use of tags. I was trying to use the bracket syntax. Thanks Jean! On Fri, Apr 15, 2022 at 12:43 AM Jean Abou Samra wrote: > Le 14/04/2022 à 22:44, Dimitris Marinakis a écrit : > > I often find myself in need of offsetting some tempo or rehearsal

Re: Tags for contexts without duration

2022-04-14 Thread Jean Abou Samra
Le 14/04/2022 à 22:44, Dimitris Marinakis a écrit : I often find myself in need of offsetting some tempo or rehearsal marks for certain parts but not the full score but tags won't work in this case since I can't have two marks at the same location on a single context. Not sure I understand

Tags for contexts without duration

2022-04-14 Thread Dimitris Marinakis
I often find myself in need of offsetting some tempo or rehearsal marks for certain parts but not the full score but tags won't work in this case since I can't have two marks at the same location on a single context. It is a lot of work to duplicate the whole context just to differentiate a few

Re: tags

2021-04-28 Thread Gianmaria Lari
Hello David, I've submitted a merge request > that will at > least make the following work for your purpose: > > \version "2.23.3" > music = {\tag#'here a a} > {\pushToTag #'here ~ \music } > [] > I don't like the sample code in the

Re: tags

2021-04-28 Thread David Kastrup
Gianmaria Lari writes: > Be patient with me. > > I expect this to generate {a~a} but it generates {a a} . Why? > > \version "2.23.2" > music = {a \tag#'here a} > {\pushToTag #'here ~ \music } I've submitted a merge request that will at

Re: tags

2021-04-26 Thread David Kastrup
Gianmaria Lari writes: > Ciao David, > > [] > >> At any rate, \pushToTag's documentation states: >> >>Sometimes you want to splice some music at a particular place in an >> existing music expression. You can use ‘\pushToTag’ and ‘\appendToTag’ >> for adding material at the

Re: tags

2021-04-26 Thread David Kastrup
Gianmaria Lari writes: >> How is { ~ } correct? ~ is not standalone music. >> >> > Maybe it would be nice to get an error message when you try to use a wrong > object with \pushToTag etc. At the current point of time, \pushToTag is more of a low-level hack not looking at what it is working

Re: tags

2021-04-26 Thread Gianmaria Lari
> How is { ~ } correct? ~ is not standalone music. > > Maybe it would be nice to get an error message when you try to use a wrong object with \pushToTag etc.

Re: tags

2021-04-26 Thread Gianmaria Lari
Ciao David, [] > At any rate, \pushToTag's documentation states: > >Sometimes you want to splice some music at a particular place in an > existing music expression. You can use ‘\pushToTag’ and ‘\appendToTag’ > for adding material at the front or end of the ‘elements’ of an

Re: tags

2021-04-26 Thread David Kastrup
David Kastrup writes: > Gianmaria Lari writes: > >> Be patient with me. >> >> I expect this to generate {a~a} but it generates {a a} . Why? >> >> \version "2.23.2" >> music = {a \tag#'here a} >> {\pushToTag #'here ~ \music } >> >> The \displayLilyMusic output looks "correct". >> >> >> { { a4

Re: tags

2021-04-26 Thread David Kastrup
Gianmaria Lari writes: > Be patient with me. > > I expect this to generate {a~a} but it generates {a a} . Why? > > \version "2.23.2" > music = {a \tag#'here a} > {\pushToTag #'here ~ \music } > > The \displayLilyMusic output looks "correct". > > > { { a4 \tag #'here { ~ } a4 } } How is { ~ }

tags

2021-04-26 Thread Gianmaria Lari
Be patient with me. I expect this to generate {a~a} but it generates {a a} . Why? \version "2.23.2" music = {a \tag#'here a} {\pushToTag #'here ~ \music } The \displayLilyMusic output looks "correct". { { a4 \tag #'here { ~ } a4 } } * * * I also tried this \version "2.23.2" music = {a

Idea: Use tags for unfolded repeats

2021-02-26 Thread Valentin Petzel
Hello! Sometimes you get a repeated section where only some repeats are somehow annotated – let’s say a dynamic marking, some sort of markup or whatever. So I suggest: \repeat unfold should take tags like let’s say #_repeat_1, #_repeat_2, ... (maybe with an option for some sort of ”namespace

Interaction between Tags and partCombine

2020-11-21 Thread Marc Shepherd
Tags are used to conditionally include music expressions in multiple scores prepared from the same source text. partCombine is used to merge separate parts onto a single staff. These two features interact in ways I found surprising. There are musical expressions that I want printed only

Re: partCombine confused by tags

2020-08-20 Thread David Sumbler
ecause \partCombine seems only > > partially to understand tags. > > That is a misstatement. \partCombine does not use tags in any > manner. > It plays the music it is given and records the results. Then it > combines the played results. I am surprised that \keepWithTag should >

Re: partCombine confused by tags

2020-08-20 Thread David Kastrup
David Sumbler writes: > I have just spent half a day trying to work out why one staff in my > orchestral score extends beyond the final barline. > > Eventually I found out that it is because \partCombine seems only > partially to understand tags. That is a misstatement. \p

partCombine confused by tags

2020-08-20 Thread David Sumbler
I have just spent half a day trying to work out why one staff in my orchestral score extends beyond the final barline. Eventually I found out that it is because \partCombine seems only partially to understand tags. The following example illustrates this: % \version

Re: Libraries (was: Re: Read git tags using Scheme)

2020-04-19 Thread Valentin Villenave
On 4/18/20, Noeck wrote: > It could not adapt this to my situation: > https://stackoverflow.com/questions/11961400/getting-rid-of-git-usr-local-lib-libz-so-1-no-version-information-available > Any idea about this? Well, the easiest solution I found was to compile LilyPond myself. Not, however,

Libraries (was: Re: Read git tags using Scheme)

2020-04-18 Thread Noeck
Hi Am 17.04.20 um 00:40 schrieb Noeck: > Parsing...git: /…path/to…/lilypond-2.20.0-1/lilypond/usr/lib/libz.so.1: > no version information available (required by git) It seems to be a library issue. The shared library exists. It is a symlink to libz.so.1.2.3 It could not adapt this to my

Read git tags using Scheme

2020-04-16 Thread Noeck
Hi, I am using the function below which is adapted from http://lilypondblog.org/2014/01/why-use-version-control-for-engraving-scores/#more-2151 While it works and the .ly files compile successfully, the function issues a warning (?) I’d like to get rid of. 1) If the document is in a git

Re: Tags with multiple bookparts

2019-11-22 Thread Peter Toye
%% n.ily %%% > \layout { >\context { > \Score > \override NoteHead.color = #green >} > } > %% main.ly % > \include "m.ily" >\music > >> > \include "n.ily" >} > } > %

Re: Tags with multiple bookparts

2019-11-21 Thread Simon Albrecht
>>     \include "n.ily"   } } %%% or even more weird stuff. HTH, Simon On 21.11.19 16:56, Peter Toye wrote: Tags with multiple bookparts I want to produce two different outputs from the same music which has several bookparts. Tagging would seem ideal for this

Tags with multiple bookparts

2019-11-21 Thread Peter Toye
I want to produce two different outputs from the same music which has several bookparts. Tagging would seem ideal for this, but it seems that \keepWithTag is only valid within \score {}. Oddly, Frescobaldi's auto-complete allows me to type it both before the \book block and before the first

Re: Tags template, for markup?

2018-06-26 Thread Ben
On 6/26/2018 4:42 PM, David Kastrup wrote: Ben writes: On 6/26/2018 4:15 PM, David Kastrup wrote: Ben writes: Hello everyone, I'm learning very quickly just how incredibly powerful the tags system can be, but today my brain just can't get past one hurdle. I am hoping someone can help me

Re: Tags template, for markup?

2018-06-26 Thread David Kastrup
Ben writes: > On 6/26/2018 4:15 PM, David Kastrup wrote: >> Ben writes: >> >>> Hello everyone, >>> >>> I'm learning very quickly just how incredibly powerful the tags system >>> can be, but today my brain just can't get past one hurdl

Re: Tags template, for markup?

2018-06-26 Thread Ben
On 6/26/2018 4:15 PM, David Kastrup wrote: Ben writes: Hello everyone, I'm learning very quickly just how incredibly powerful the tags system can be, but today my brain just can't get past one hurdle. I am hoping someone can help me to grasp this: suppose I would like to setup a tag

Re: Tags template, for markup?

2018-06-26 Thread David Kastrup
Ben writes: > Hello everyone, > > I'm learning very quickly just how incredibly powerful the tags system > can be, but today my brain just can't get past one hurdle. > > I am hoping someone can help me to grasp this: suppose I would like to > setup a tag template (for my vis

Tags template, for markup?

2018-06-26 Thread Ben
Hello everyone, I'm learning very quickly just how incredibly powerful the tags system can be, but today my brain just can't get past one hurdle. I am hoping someone can help me to grasp this: suppose I would like to setup a tag template (for my visualizing and learning) so I can add some

Re: Interesting glitch when using tags ...

2018-02-04 Thread Simon Albrecht
On 04.02.2018 21:27, Wols Lists wrote: The problem here is that your two melody passages are all in the same voice, and that means that f4 is_not_ the next note after f4. ~ but rather the d8 in the previous line of entry is. Oh ... so lily is being its usual rather non-intuitive self :-)

Re: Interesting glitch when using tags ...

2018-02-04 Thread David Kastrup
lable example, was why I included the > context in my first post :-) Doesn't show which tags are left in, and when preceding it with something like \new ChoirStaff puts the lines in different contexts. Also is missing the language and isn't compilable so that people have to either not compile at a

Re: Interesting glitch when using tags ...

2018-02-04 Thread Wols Lists
lt;< ... >> looks better > (but I have no idea whether the voice crossing then in the first half is > intentional, or even whether you wanted the original in which case you'd > like be better off with two staves). The original is a part with two instruments, so no, two staves is very defi

Re: Interesting glitch when using tags ...

2018-02-04 Thread David Kastrup
Wol's lists writes: > Okay. You wanted a minimal example ... > > But surely, "f4. ~ f4" is clearly something wrong if it's complaining > about an unterminated tie? Yes you might need a bit more information > to debug it, but on the face of it it's a blatant bug ... And

Re: Interesting glitch when using tags ...

2018-02-04 Thread Wol's lists
Whoops - I've just spotted a genuine unterminated tie at the end of the first line of notes - but removing it does not get rid of the warning... So this minimal example demonstrates both a genuine unterminated tie that doesn't warn, and a terminated tie that warns when it shouldn't...

Re: Interesting glitch when using tags ...

2018-02-04 Thread Wol's lists
Okay. You wanted a minimal example ... But surely, "f4. ~ f4" is clearly something wrong if it's complaining about an unterminated tie? Yes you might need a bit more information to debug it, but on the face of it it's a blatant bug ... Cheers, Wol On 04/02/18 00:59, David Kastrup wrote:

Re: Interesting glitch when using tags ...

2018-02-03 Thread Thomas Morley
2018-02-04 1:54 GMT+01:00 Wols Lists : > On 04/02/18 00:33, David Kastrup wrote: >> Wol's lists writes: >> >>> I suspect the cause is that I'm mixing slurs and ties, but I'm getting >>> the following error ... >>> >>> voiceTrombone.ily:30:59:

Re: Interesting glitch when using tags ...

2018-02-03 Thread David Kastrup
Wols Lists writes: > On 04/02/18 00:33, David Kastrup wrote: >> Wol's lists writes: >> >>> I suspect the cause is that I'm mixing slurs and ties, but I'm getting >>> the following error ... >>> >>> voiceTrombone.ily:30:59: warning:

Re: Interesting glitch when using tags ...

2018-02-03 Thread Wols Lists
On 04/02/18 00:33, David Kastrup wrote: > Wol's lists writes: > >> I suspect the cause is that I'm mixing slurs and ties, but I'm getting >> the following error ... >> >> voiceTrombone.ily:30:59: warning: unterminated tie >> \repeat percent 4 { f,8[ r f] f[ r f] } |

Re: Interesting glitch when using tags ...

2018-02-03 Thread David Kastrup
Wol's lists writes: > I suspect the cause is that I'm mixing slurs and ties, but I'm getting > the following error ... > > voiceTrombone.ily:30:59: warning: unterminated tie > \repeat percent 4 { f,8[ r f] f[ r f] } | f4. >

Interesting glitch when using tags ...

2018-02-03 Thread Wol's lists
I suspect the cause is that I'm mixing slurs and ties, but I'm getting the following error ... voiceTrombone.ily:30:59: warning: unterminated tie \repeat percent 4 { f,8[ r f] f[ r f] } | f4. ~ f4 r8 | a8-> r4 a8-> r4 | a2. | bf2.( but as

Re: Tags and chord repetition

2016-09-14 Thread David Kastrup
Peter Crighton writes: > Hello all, > > I came upon some unexpected behaviour when using a tag on, for example, a > markup that is attached to a chord repetition symbol (see below). > How can I fix this, so only the markup and not also the chord repetition > symbol gets

Re: Tags and chord repetition

2016-09-14 Thread Peter Crighton
Alright, I wrote to the Bug list. -- Peter Crighton | Musician & Music Engraver based in Mainz, Germany http://www.petercrighton.de 2016-09-10 21:32 GMT+02:00 Simon Albrecht : > On 10.09.2016 20:38, Peter Crighton wrote: > >> I came upon some unexpected behaviour when

Re: Tags and chord repetition

2016-09-10 Thread Simon Albrecht
On 10.09.2016 20:38, Peter Crighton wrote: I came upon some unexpected behaviour when using a tag on, for example, a markup that is attached to a chord repetition symbol (see below). How can I fix this, so only the markup and not also the chord repetition symbol gets tagged? Sorry, no idea.

Tags and chord repetition

2016-09-10 Thread Peter Crighton
Hello all, I came upon some unexpected behaviour when using a tag on, for example, a markup that is attached to a chord repetition symbol (see below). How can I fix this, so only the markup and not also the chord repetition symbol gets tagged? \version "2.19.47" x = \tag #'tabstaff ^x music =

Using multiple tags

2015-03-18 Thread Anton Curl
Hi everyone! I like using tags in my scores but it becomes complicated: I want to use tags for: - layout or midi - score or part - first / second / third / fourth time a variable is used I could always use removeWithTag, but - for the third case it's not handy, because I would have to add all

Re: Using multiple tags

2015-03-18 Thread Simon Albrecht
Am 18.03.2015 um 14:42 schrieb Anton Curl: Hi everyone! I like using tags in my scores but it becomes complicated: I want to use tags for: - layout or midi - score or part - first / second / third / fourth time a variable is used I could always use removeWithTag, but - for the third case it's

Re: Using multiple tags

2015-03-18 Thread Anton Curl
On 18/03/2015 15:06, Simon Albrecht wrote: Indeed: only recently, David Kastrup introduced the tagGroup command, which serves for exactly this purpose. See http://lilypond.org/doc/v2.19/Documentation/notation/available-music-functions#index-tagGroup-1 and

Re: How to remove tags from music returned by \keepWithTag ?

2015-03-10 Thread Thomas Morley
is: musicA = \relative c'' { a a a a } In other words, I'd like to find a function similar to \keepWithTag, except that the returned music expression would be entirely free of all tags. Perhaps even better would be a general function which simply strips \tag attributes from a music

Re - How to remove tags from music returned by \keepWithTag ?

2015-03-10 Thread Peter Gentry
Jim Why do you want to remove tags? I must be missing something - AFAIA tags are not engraved. regards Peter Gentry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: How to remove tags from music returned by \keepWithTag ?

2015-03-10 Thread Keith OHara
Jim Long lilypond at umpquanet.com writes: On Tue, Mar 10, 2015 at 10:49:05AM +0100, Thomas Morley wrote: Something in http://lsr.di.unimi.it/LSR/Item?id=871 which matches your needs? (didn't test myself) \taggedRep looks especially interesting. I often use the 'extractMusic'

Re: How to remove tags from music returned by \keepWithTag ?

2015-03-10 Thread Jim Long
On Tue, Mar 10, 2015 at 10:49:05AM +0100, Thomas Morley wrote: Something in http://lsr.di.unimi.it/LSR/Item?id=871 which matches your needs? (didn't test myself) Cheers, Harm Thank you, Harm! That looks very promising. I must train myself to remember the snippet repository when I'm

How to remove tags from music returned by \keepWithTag ?

2015-03-09 Thread Jim Long
to find a function similar to \keepWithTag, except that the returned music expression would be entirely free of all tags. Perhaps even better would be a general function which simply strips \tag attributes from a music expression, but leaves the tagged music itself. Is this possible? Jim music

Re: Tags in Lyrics

2014-10-31 Thread Noeck
Hi Harm, Am 26.10.2014 um 13:38 schrieb Joram: Thanks for all your responses. I will try the \ext functions as soon as I have a recent version of LP available. Perfect, thanks! ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Tags in Lyrics

2014-10-26 Thread Joram
Thanks for all your responses. I will try the \ext functions as soon as I have a recent version of LP available. In the current piece I ended up having separate lyrics for each voice as there are too many polyphonic parts with different lyrics. But this functions seem helpful for other

Re: Tags in Lyrics

2014-10-26 Thread Simon Albrecht
Thanks Harm, that does what I wanted to: The voice named in the function argument gets an extender line, a tag is computed for all other voices and these don’t get an extender line, but only the syllable which serves as a second argument to the function. Kudos, Simon Am 26.10.2014 um 01:10

Re: Tags in Lyrics

2014-10-25 Thread Simon Albrecht
Am 24.10.2014 um 21:48 schrieb Thomas Morley: 2014-10-24 21:19 GMT+02:00 Simon Albrecht simon.albre...@mail.de: [...] I tried to, but somehow an extender line inside a music function body gives a syntax error and I’ve got no clue how to circumvent that. You’ll find the current function

Re: Tags in Lyrics

2014-10-25 Thread Thomas Morley
2014-10-25 14:46 GMT+02:00 Simon Albrecht simon.albre...@mail.de: Am 24.10.2014 um 21:48 schrieb Thomas Morley: 2014-10-24 21:19 GMT+02:00 Simon Albrecht simon.albre...@mail.de: [...] I tried to, but somehow an extender line inside a music function body gives a syntax error and I’ve got

Tags in Lyrics

2014-10-24 Thread Noeck
Hi, when I write choir pieces I like to have one song text for all voices and to use tags. Often, the differences are only whether there is an extender line or not \tag A Where __ \tag S \tag T \tag B Where bla bla ... (S, A, T, B stand for the voices.) Is there a more concise way of writing

Re: Tags in Lyrics

2014-10-24 Thread Simon Albrecht
Hello Noeck, hello everybody, at least you can save a lot of typing from v2.18 on: Am 24.10.2014 um 09:25 schrieb Noeck: Hi, when I write choir pieces I like to have one song text for all voices and to use tags. Often, the differences are only whether there is an extender line or not \tag

Re: Tags in Lyrics

2014-10-24 Thread Thomas Morley
2014-10-24 21:19 GMT+02:00 Simon Albrecht simon.albre...@mail.de: [...] I tried to, but somehow an extender line inside a music function body gives a syntax error and I’ve got no clue how to circumvent that. You’ll find the current function attached. Can anyone help, please? No attachment ;)

Re: Nifty trick with tags and \shape

2014-06-24 Thread tisimst
Very cool! Thanks for sharing! I didn't realize you could do such a thing. I can see this coming in handy. -Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Nifty-trick-with-tags-and-shape-tp163576p163599.html Sent from the User mailing list archive at Nabble.com

Re: Nifty trick with tags and \shape

2014-06-24 Thread SoundsFromSound
(for beginners) -- http://bit.ly/bcl-lilypond -- View this message in context: http://lilypond.1069038.n5.nabble.com/Nifty-trick-with-tags-and-shape-tp163576p163602.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list

Nifty trick with tags and \shape

2014-06-23 Thread James Harkins
If you ever need the score and a transposed part to have a different slur shape in places... this does it :) Just had to share -- actually I wasn't entirely sure this would work, but it's perfect! hjh \version 2.18.2 \language english music = \relative c' { \tupletSpan 1*6/8 \tuplet 4/3

tags on tweaks

2014-06-15 Thread Orm Finnendahl
be left at the default position. It would be nice if just the tweak could get tagged in order to avoid the verbosity of explicitely repeating the musical expression with different tags applied. This works: - begin snippet \version 2.19.5 music = { \clef G r4

Re: tags on tweaks

2014-06-15 Thread Pierre Perol-Schneider
2014-06-15 12:29 GMT+02:00 Orm Finnendahl orm.finnend...@hfmdk-frankfurt.de : \version 2.19.5 music = { \clef G r4 \tag #'score { fis'''8 -\tweak X-offset #-2.5 \f [ } \tag #'part { fis'''8 \f [ } ees'' c' a''' ] r4 } { \keepWithTag #'score \music

Re: tags on tweaks

2014-06-15 Thread Simon Albrecht
Am 15.06.2014 12:29, schrieb Orm Finnendahl: Hi, just to verify: I assume it is always necessary to tag a complete music expression, or can just tweaks themselves get tagged? You may insert the tag itself as a post-event using -\tag before the tweak, yet the tag will then apply both to the

Re: multiple tags

2012-04-23 Thread Gilles
Is is possible to have simultaneous multiple tags? What makes you think that? As i had difficulties managing multiple tags, i have made for me some little functions to simplify it. With the joined file, your code would become, with the \keepWithTags : %% \include tagUtil.ly control

multiple tags

2012-04-22 Thread James
Is is possible to have simultaneous multiple tags? I'm trying: \version 2.14.2 control = { s1*2 \tag #'threes { \time 3/4 s2. } \tag #'twos { \time 2/4 s2 } } tset = \relative c' { c4 d e f \tag #'up {g4 a b c } \tag #'down { g4 f e d } \tag

Re: multiple tags

2012-04-22 Thread David Kastrup
James derhindem...@gmail.com writes: Is is possible to have simultaneous multiple tags? I'm trying: \version 2.14.2 control = { s1*2 \tag #'threes { \time 3/4 s2. } \tag #'twos { \time 2/4 s2 } } tset = \relative c' { c4 d e f \tag #'up {g4 a b c

Problem with Tags

2011-11-13 Thread Patrick Karl
I'm having a problem trying to learn how to use tags. The following snippet: \version 2.14.2 music = \relative c' { \tag #' low {c} \tag #' high {c'} d e f g a b c } \score {\new Staff { \keepWithTag #'low \music } \layout { } } \score {\new Staff

Re: Problem with Tags

2011-11-13 Thread David Kastrup
Patrick Karl pck...@mac.com writes: I'm having a problem trying to learn how to use tags. The following snippet: \version 2.14.2 music = \relative c' { \tag #' low {c} \tag #' high {c'} d e f g a b c } \score {\new Staff { \keepWithTag #'low \music

Re: removing tags

2007-05-08 Thread Graham Percival
Bernard, if this helps you, could you please add it to LSR so that other people can easily find this answer? http://lsr.dsi.unimi.it/ Cheers, - Graham Michael Lauer wrote: Bernard Hurley bernard at fong-hurley.org.uk writes: Hi all, Is there any way of removing tags from music? You can

Re: removing tags

2007-04-30 Thread Michael Lauer
Bernard Hurley bernard at fong-hurley.org.uk writes: Hi all, Is there any way of removing tags from music? You can write a music function to do it: stripTags = #(define-music-function (parser loc m) (ly:music?) (music-map (lambda (x) (ly:music-set-property! x 'tags '()) x) m

Re: removing tags

2007-04-30 Thread Bernard Hurley
Thanks, /Bernard On Mon, 2007-04-30 at 13:44 +, Michael Lauer wrote: Hi all, Is there any way of removing tags from music? You can write a music function to do it: ___ lilypond-user mailing list lilypond-user@gnu.org http

removing tags

2007-04-29 Thread Bernard Hurley
Hi all, Is there any way of removing tags from music? For instance naively one might expect: = one= {a'' \tag #'A b'' c'' \tag #'C f''} two = {\keepWithTag #'A \one } three = { \tag #'B \two \tag #'E a'' } { d'' \keepWithTag #'B \three } === to display

Re: removing tags

2007-04-29 Thread Bernard Hurley
of removing tags from music? For instance naively one might expect: = one= {a'' \tag #'A b'' c'' \tag #'C f''} two = {\keepWithTag #'A \one } three = { \tag #'B \two \tag #'E a'' } { d'' \keepWithTag #'B \three } === to display the same as: {d

Re: Combining multiple \tags?

2007-01-27 Thread Nicolas Sceaux
Panteck [EMAIL PROTECTED] writes: I've got three sets of tags ( letter/a4/bigprint, part/score, and original/edit ). What I want to do is something like \keepWithTag #'letter #'part #'edit, but \keepWithTag doesn't take multiple values, and \keepWithTag #'value1{ \keepWithTag #'value2

Combining multiple \tags?

2007-01-23 Thread Panteck
I've got three sets of tags ( letter/a4/bigprint, part/score, and original/edit ). What I want to do is something like \keepWithTag #'letter #'part #'edit, but \keepWithTag doesn't take multiple values, and \keepWithTag #'value1{ \keepWithTag #'value2 } doesn't work, because the inner \keep

  1   2   >