Re: substitution function variable name

2023-01-28 Thread Jean Abou Samra
On 22/01/2023 18:31, Jean Abou Samra wrote: > Le 22/01/2023 à 18:22, Darren Ng a écrit : >> Thanks. The following works: >> >>    accOne = >>    #(define-music-function >>    (x    ) >>    (ly:pitch?) >> #{ >>    $x 8 $x 8 >> #}) >> >> My ultimate goal is a function which

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 18:22, Darren Ng a écrit : Thanks. The following works: accOne = #(define-music-function (x) (ly:pitch?) #{ $x 8 $x 8 #}) My ultimate goal is a function which does the following accTwo = #(define-music-function (x

Re: substitution function variable name

2023-01-22 Thread Darren Ng
2:36 AM Jean Abou Samra wrote: > > > > Le 22/01/2023 à 17:33, Jean Abou Samra a écrit : > > > > > > Le 22/01/2023 à 17:20, Darren Ng a écrit : > >> Define substitution function accOne() as: > >> > >> accOne = > >

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 17:33, Jean Abou Samra a écrit : Le 22/01/2023 à 17:20, Darren Ng a écrit : Define substitution function accOne() as: accOne = #(define-music-function (x    ) (ly:music?)    #{ $x8 $x8 $x8 $x8 $x8    #}) Call accOne() with

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 17:20, Darren Ng a écrit : Define substitution function accOne() as: accOne = #(define-music-function (x) (ly:music?) #{ $x8 $x8 $x8 $x8 $x8 #}) Call accOne() with: \accOne f Expected output is: f8 f8 f8

substitution function variable name

2023-01-22 Thread Darren Ng
Define substitution function accOne() as: accOne = #(define-music-function (x) (ly:music?) #{ $x8 $x8 $x8 $x8 $x8 #}) Call accOne() with: \accOne f Expected output is: f8 f8 f8 f8 f8 However, lilypond reports error as follows

Re: Notehead substitution and Slur overrides

2022-03-09 Thread Matthew Fong
Hello Jean, Many thanks for the help -- that works beautifully. It seems besides global settings, I will need to have some per-score settings. It appears controlling slurs are more complicated than I thought. Per your advice, will play with the \vshape feature in 2.23 if I need anything more cust

Re: Notehead substitution and Slur overrides

2022-03-09 Thread Jean Abou Samra
Le 09/03/2022 à 17:13, Matthew Fong a écrit : Dear Jean and LilyPond friends, My apologies for not initially including this, and it took time to get this reduction; At the same time, producing this example code raised additional observations about how the slur overrides work with other variab

Re: Notehead substitution and Slur overrides

2022-03-07 Thread Matthew Fong
> > I am having trouble understanding why a notehead substitution function > > would interfere with some slur overrides. Any insight or help would be > > deeply appreciated. > > > Could you please provide complete code showing the problem? > It is currently not pos

Re: Notehead substitution and Slur overrides

2022-03-06 Thread Jean Abou Samra
Le 04/03/2022 à 05:17, Matthew Fong a écrit : Hello everyone, I am having trouble understanding why a notehead substitution function would interfere with some slur overrides. Any insight or help would be deeply appreciated. Could you please provide complete code showing the problem? It is

how to avoid font substitution

2022-01-21 Thread Flaming Hakama by Elaine
Now that I am setting up a new environment on a new machine, I am running into a problem again, and I don't recall how I solved it last time. When I compile a pdf locally, it looks fine. But when I upload it to a site, then download it on an iPad, it shows different fonts. Is there a way to eith

Re: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Carl Sorensen
Cc: Mark Stephen Mrotek ; lilypond-user@gnu.org Subject: Re: Putting finger substitution in the LilyPond manual On Sun, Oct 24, 2021 at 10:22 AM Carl Sorensen wrote: > > I think this should be a snippet, rather than text in a section. Rather than > telling, just show (and one can s

Re: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Knute Snortum
On Sun, Oct 24, 2021 at 10:22 AM Carl Sorensen wrote: > > I think this should be a snippet, rather than text in a section. Rather than > telling, just show (and one can show three different methods in one snippet). > > The snippet could be as simple as: > > \version "2.21" > > \header { > lsrt

Re: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Carl Sorensen
On 10/24/21, 10:33 AM, "lilypond-user on behalf of Knute Snortum" wrote: On Sun, Oct 24, 2021 at 8:46 AM Mark Stephen Mrotek wrote: > > Knute, > > Some instructions are here > https://lilypond.org/doc/v2.22/Documentation/notation/inside-the-staff#fingering-instruc

Re: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Valentin Petzel
Actually the discussed solutions here are arguably better than the documentation example, because that one simply uses a markup event instead of a fingering event, which will cause problems in positioning. Cheers, Valentin 24.10.2021 18:32:32 Knute Snortum : > On Sun, Oct 24, 2021 at 8:46 AM M

Re: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Knute Snortum
On Sun, Oct 24, 2021 at 8:46 AM Mark Stephen Mrotek wrote: > > Knute, > > Some instructions are here > https://lilypond.org/doc/v2.22/Documentation/notation/inside-the-staff#fingering-instructions > although it refers mainly to stringed instrument. Thank you Mark. So no need for a new section, b

RE: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Mark Stephen Mrotek
Behalf Of Knute Snortum Sent: Sunday, October 24, 2021 7:36 AM To: lilypond-user@gnu.org Subject: Putting finger substitution in the LilyPond manual In this thread (1) we discussed how to notate the piano technique of holding down one note and changing fingers without releasing the note. Wikipedia

Re: Putting finger substitution in the LilyPond manual

2021-10-24 Thread Jean Abou Samra
> Any thoughts on this? Just provide a patch on the development repository at this point. It is easier to discuss specifics with concrete material. The contributor's guide has all you need to know, and feel free to ask for assistance with Git, Texinfo or anything. Thanks in advance. Jean

Putting finger substitution in the LilyPond manual

2021-10-24 Thread Knute Snortum
In this thread (1) we discussed how to notate the piano technique of holding down one note and changing fingers without releasing the note. Wikipedia calls this "substitution." (2) I would like to put a section in the manual that explains how to notate this. It seems to be a fairly co

Fwd: 5.6.1 Substitution function syntax

2021-08-11 Thread Kees van den Doel
Forgot mailinglist, sorry. -- Forwarded message - From: Kees van den Doel Date: Wed, Aug 11, 2021 at 12:03 PM Subject: Re: 5.6.1 Substitution function syntax To: Jean Abou Samra Thanks Jean, David, That clarifies it, subtle stuff! Kees On Wed, Aug 11, 2021 at 11:45 AM Jean

Re: 5.6.1 Substitution function syntax

2021-08-11 Thread Jean Abou Samra
Le 11/08/2021 à 20:24, David Kastrup a écrit : Kees van den Doel writes: Referring to https://lilypond.org/doc/v2.22/Documentation/notation/substitution-function-syntax I don't understand this sentence explanating "...music...": normal LilyPond input, using $ (in pl

Re: 5.6.1 Substitution function syntax

2021-08-11 Thread David Kastrup
Kees van den Doel writes: > Referring to > https://lilypond.org/doc/v2.22/Documentation/notation/substitution-function-syntax > > I don't understand this sentence explanating "...music...": > >>normal LilyPond input, using $ (in places where only LilyPond co

5.6.1 Substitution function syntax

2021-08-11 Thread Kees van den Doel
Referring to https://lilypond.org/doc/v2.22/Documentation/notation/substitution-function-syntax I don't understand this sentence explanating "...music...": >normal LilyPond input, using $ (in places where only LilyPond constructs are allowed) or # (to use it as a Scheme value

Re: Lilypond Substitution Function

2021-02-27 Thread Ken Ledeen
wrote: > Le 27/02/2021 à 02:16, Ken Ledeen a écrit : > > > I am struggling to understand the restrictions on substitution functions. > > > > For example: > > > > 1) can a function include "\score { ...}" or can it only be invoked > > INSIDE a

Re: Lilypond Substitution Function

2021-02-27 Thread Jean Abou Samra
Le 27/02/2021 à 02:16, Ken Ledeen a écrit : I am struggling to understand the restrictions on substitution functions. For example: 1) can a function include "\score { ...}"  or can it only be invoked INSIDE a \score? 2) is it possible to include \header { ...}  inside a su

Lilypond Substitution Function

2021-02-27 Thread Ken Ledeen
I am struggling to understand the restrictions on substitution functions. For example: 1) can a function include "\score { ...}" or can it only be invoked INSIDE a \score? 2) is it possible to include \header { ...} inside a substitution function? It fails when I try, but I don&#x

Re: Global colour substitution for specific characters in lyrics

2020-05-20 Thread David Nalesnik
Hi, On Wed, May 20, 2020 at 8:35 AM Fr. Samuel Springuel wrote: > > > On 20 May, 2020, at 2:41 AM, Witold Uchman wrote: > > > > Hello! > > > > I am looking for a way to simplify input in a book of psalms, namely to be > > able to simply put an * in lyrics and make the character in red. > > > W

Re: Global colour substitution for specific characters in lyrics

2020-05-20 Thread Fr. Samuel Springuel
> On 20 May, 2020, at 2:41 AM, Witold Uchman wrote: > > Hello! > > I am looking for a way to simplify input in a book of psalms, namely to be > able to simply put an * in lyrics and make the character in red. > I define a special function for this: #(define aster #{ \set stanza = \markup \wi

Global colour substitution for specific characters in lyrics

2020-05-19 Thread Witold Uchman
Hello! I am looking for a way to simplify input in a book of psalms, namely to be able to simply put an |*| in lyrics and make the character in red. I tried with |#(add-text-replacements!|, but it only performs simple character substitution, and I am afraid I am not fluent enough in

Re: Organ pedal foot substitution

2016-02-25 Thread tisimst
Joseph, On Wed, Feb 24, 2016 at 5:46 PM, Joseph N. Srednicki-2 [via Lilypond] < ml-node+s1069038n18770...@n5.nabble.com> wrote: > Could someone possibly tell me how to code alternate foot organ pedal > substitution as shown in the attached image file *attach_a.png*? > > >

Re: Organ pedal foot substitution

2016-02-25 Thread Joseph N. Srednicki
-user@gnu.org' Subject: Organ pedal foot substitution Could someone possibly tell me how to code alternate foot organ pedal substitution as shown in the attached image file attach_a.png? This image is from Dickinson, Clarence. The Technique and Art of Organ Playing. London: H. W. Gray, 19

Organ pedal foot substitution

2016-02-24 Thread Joseph N. Srednicki
Could someone possibly tell me how to code alternate foot organ pedal substitution as shown in the attached image file attach_a.png? This image is from Dickinson, Clarence. The Technique and Art of Organ Playing. London: H. W. Gray, 1922, p. 117. (Note this book is available from the IMSLP

Re: Naming Substitution Functions - Numbers and Special Characters

2015-08-22 Thread tone
g <http://lilypond.1069038.n5.nabble.com/file/n179961/numbers_and_characters.png> -- View this message in context: http://lilypond.1069038.n5.nabble.com/Naming-Substitution-Functions-Numbers-and-Special-Characters-tp179806p179961.html Sent from the User mailing li

Re: Naming Substitution Functions - Numbers and Special Characters

2015-08-20 Thread Thomas Morley
2015-08-19 19:46 GMT+02:00 tone : > Does anyone have a list of characters that are allowed in substitution > functions. I would like to make a list of chord names including fret > position. For example, the following name is allowed: > > g_dom_seven-three = \markup{ \overrid

Naming Substitution Functions - Numbers and Special Characters

2015-08-19 Thread tone
Does anyone have a list of characters that are allowed in substitution functions. I would like to make a list of chord names including fret position. For example, the following name is allowed: g_dom_seven-three = \markup{ \override #'(size . 1.3) \fret-diagram-terse #"x;x;3;4;3;x;&q

Re: Defining substitution functions

2015-03-29 Thread Simon Albrecht
Hi Timmy, the Lilypond Snippets Repository at lsr.di.unimi.it/ is where to search for such functions. In this case, e.g. or . If you need help on customizing this, please ask the list again. HTH, Simon PS. Alt

Re: Defining substitution functions

2015-03-28 Thread Noeck
Hi Timmy, I know that this is not what you asked for, but for your information: Frescobaldi can copy the rhythm to other notes: Tools > Rhythm > Copy rhythm/Paste rhythm … That saves typing but it is no function like you asked for. Cheers, Joram ___ li

Defining substitution functions

2015-03-28 Thread Timmy Burch
I think is probably a painfully simple question, but I am really struggling to get started with Lilypond, so please take pity! I often have many measures with the same rhythm but different pitches, and I want to write a function that takes as arguments the pitches, and returns the formatted meas

Re: lilypond music notation programs as a substitution for Finale.

2012-07-26 Thread Frédéric Bron
> I am trying to find a free solfware of music notation of Church Music as a > substitution for Finale with which I cannot write a particular latin script > extended unicode. Why writing to bug-lilypond list? I reply to lilypond-user list. The documentation is pretty good. You can s

Re: substitution for numerator

2011-09-20 Thread Gilles
music = \relative c' { \times 2/3 {c8 d e } \times 4/5 {c16 a g f e } } slurs = { \tripletquintupletslur #2 #5 % the slur lasts 2 triplet and 5 quintuplet notes } \new Staff { \context Voice << { \music} {\slurs }>>} %% You can attach slur to invisible rests and "melt" them together

Re: substitution for numerator

2011-09-20 Thread Wilbert Berendsen
Op Mon, 19 Sep 2011 20:42:21 +0200 Stefan Thomas schreef: > Dear Jan-Peter, > I would like to create a music function which allows You to build a > slur lasting some eigth-triplet and some sixtheenth-quintuplet notes. > I dream of something like: > > music = \relative c' { > \times 2/3 {c8 d e

Re: substitution for numerator

2011-09-19 Thread Jan-Peter Voigt
Hello Stefan, you probably have to code the scaled note in scheme: --snip-- numerator = #(define-music-function (parser location x) (integer?) (make-music 'EventChord 'elements (list (make-music 'NoteEvent 'duration (ly:make-duration 0 0 3 x) 'pitch (ly:make-pitch

substitution for numerator

2011-09-18 Thread Stefan Thomas
Dear community, I've tried to make a substitution for the numerator in scaled durations, but without sucess. I've tried it with: numerator = #(define-music-function (parser location x) (number?) #{ % in der folgenden Zeile Lilypondcode eingeben c1*$x/3 #}) themusic = { \numerat

Re: substitution for context

2010-03-06 Thread Carl Sorensen
On 3/6/10 9:11 AM, "Stefan Thomas" wrote: > Dear community, > I wanted to create a substitution-function with Scheme, where one could freely > choose the context. > I don't know which kind of variable is necessesary for the context. You have a couple of problems,

substitution for context

2010-03-06 Thread Stefan Thomas
Dear community, I wanted to create a substitution-function with Scheme, where one could freely choose the context. I don't know which kind of variable is necessesary for the context. Unfortunately I failed with: \version "2.12.2" %% hiermit kann man unterschiedliche TextSpanners

Re: Variable substitution in postscript?

2009-05-25 Thread Eric Knapp
Thanks, Mark. This works and will really help with the custom things I want to do. -Eric On Monday, May 25, 2009, Mark Polesky wrote: > > Eric Knapp wrote: >> What I want to do is have the value of the "thickness" variable >> replace the "0.25" in the postscript. > > Eric, > the "ly:format" func

Re: Variable substitution in postscript?

2009-05-25 Thread Mark Polesky
Eric Knapp wrote: > What I want to do is have the value of the "thickness" variable > replace the "0.25" in the postscript. Eric, the "ly:format" function http://lilypond.org/doc/v2.13/Documentation/user/lilypond-internals/Scheme-functions.html#index-ly_003aformat is loosely based on the guile "f

Variable substitution in postscript?

2009-05-25 Thread Eric Knapp
Hi, all. I'm attempting to create some music functions that have some postscript commands in them. Is there a way to pass an argument from the Scheme music function into the embedded postscript? Here's a simplified example that makes a hollow square notehead: The function: sample = #(define-musi

Re: Chord substitution mystery

2009-05-05 Thread Stan Mulder
Kieren MacMillan sympatico.ca> writes: > You've got an errant ' in your chord definition -- you actually want > > 1-\markup { +\super "7" } > > Hope this helps! That does help. I guess the quote mark put that particular note in a different octave??? __

Re: Chord substitution mystery

2009-05-05 Thread Kieren MacMillan
Hi Stan, I was using a chord substitution scheme submitted here by Kieren MacMillan. Aw, shucks... ;) It works well and I enhanced it for augmented chords. However, I'm trying to display a plus sign as the augmented symbol and in the case of the C augmented7 chord it displays

Chord substitution mystery

2009-05-05 Thread Stan Mulder
I was using a chord substitution scheme submitted here by Kieren MacMillan. It works well and I enhanced it for augmented chords. However, I'm trying to display a plus sign as the augmented symbol and in the case of the C augmented7 chord it displays C7/#5 instead of C+7. Whereas the C aug

Re: substitution in layout-block

2009-03-02 Thread Tao Cumplido
ond-user > Betreff: substitution in layout-block > Dear lilypond-users, > I tried to make a substitution in the layout-block, but without > success. I don't know what could be wrong. > Here is the short snippet: > \version "2.12.0" > keineTaktart = \layout {

Re: substitution in layout-block

2009-03-02 Thread -Eluze
remove "Key_engraver" \remove "Clef_engraver" \remove "Time_signature_engraver" } \context { \Voice bla bla bla … } } -- View this message in context: http://www.nabble.com/substitution

substitution in layout-block

2009-03-02 Thread Stefan Thomas
Dear lilypond-users, I tried to make a substitution in the layout-block, but without success. I don't know what could be wrong. Here is the short snippet: \version "2.12.0" keineTaktart = \layout { \context { \Staff \remove "Time_signature_engraver"} } keineTaktzahl = \

Re: problem with substitution

2008-12-23 Thread Stefan Thomas
t. > > The problem occurred in rhythmustest.ly. > > You had the following: > zackigschnell = #(define-music-function (parser location music) (ly:music?) > #{ \makeRhythm $music "16. 32" #}) > APZ = { \zackigschnell } > > The way LilyPond substitution works,

Re: problem with substitution

2008-12-22 Thread Carl D. Sorensen
; \include "rhythmustest.ly" > \new Staff { \APZ { c' d' e' f' } } There's nothing wrong with the snippet. The problem occurred in rhythmustest.ly. You had the following: zackigschnell = #(define-music-function (parser location music) (ly:music?) #{ \makeRhythm $music

problem with substitution

2008-12-22 Thread Stefan Thomas
Dear Lilypond-users, I trie to substitute the variable "zackigschnell' with "APZ', but without sucess. What is wrong with the following snippet? \version "2.11.60" \include "rhythmustest.ly" \new Staff { \APZ { c' d' e' f' } } rhythmustest.ly Description: Binary data

Re: substitution for stem length

2008-06-16 Thread Mats Bengtsson
Try Langhals = #(define-music-function (parser location length) (number?) #{ \once \override Stem #'length = $length #}) /Mats Stefan Thomas wrote: Dear Lilypond-users, I would like to make a varibable substitution for stems over two systems. Before I

substitution for stem length

2008-06-16 Thread Stefan Thomas
Dear Lilypond-users, I would like to make a varibable substitution for stems over two systems. Before I used (thanks to Wilbert Berendsen) noFlag = \override Stem #'flag-style = #'no-flag stemExtend = { \noFlag \autoBeamOff \override TupletNumber #'transparent = ##t \overrid

Re: substitution with \movement

2008-06-12 Thread Trevor Daniels
Graham Percival wrote Thu, 12 Jun 2008 08:48:12 +0200 Arjan Bos <[EMAIL PROTECTED]> wrote: If it were only for `#' denoted strings, I agree with you, but there are plenty of other inconsistencies in the LilyPond syntax that are fully understandable from the viewpoint of the program, but mak

Re: substitution with \movement

2008-06-12 Thread Graham Percival
On Thu, 12 Jun 2008 08:48:12 +0200 Arjan Bos <[EMAIL PROTECTED]> wrote: > If it were only for `#' denoted strings, I agree with you, but there > are plenty of other inconsistencies in the LilyPond syntax that are > fully understandable from the viewpoint of the program, but make > almost no

Re: substitution with \movement

2008-06-11 Thread Arjan Bos
On 11 jun 2008, at 23:48, Graham Percival wrote: Rewriting the parser for such a trivial thing would be a waste of resources. Just get used to typing #, just like {} or ,' or any other piece of lilypond input. The docs are supposed to use #"" all the time, to reinforce this point. If it we

Re: substitution with \movement

2008-06-11 Thread Frédéric Moinard
I Wrote: (...) Va falloir ajouter les doigtés dans les traductions de la doc, alors, et (...) Shame on me! Wrong addresses...(and Snippet?id=435) -- Sorry, FM ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/lis

Re: substitution with \movement

2008-06-11 Thread Frédéric Moinard
Bonjour, Valentin Villenave a écrit : Yes, French keyboard layout is much more annoying (it requires twisting your right hand to have the thumb on AltGr and the middle finger on the alpha-num "3" key). Va falloir ajouter les doigtés dans les traductions de la doc, alors, et prévoir des sous-p

Re: String syntax, Was: substitution with \movement

2008-06-11 Thread Graham Percival
On Thu, 12 Jun 2008 00:10:56 +0200 Mats Bengtsson <[EMAIL PROTECTED]> wrote: > Graham Percival wrote: > > >All the time that it's getting passed as a scheme value, for > >example > > \set instrumentName = #"cello" > > > >Not for things like > > \markup { this "is some quoted text" } > > > Whi

Re: String syntax, Was: substitution with \movement

2008-06-11 Thread Mats Bengtsson
Graham Percival wrote: On Wed, 11 Jun 2008 23:57:00 +0200 Mats Bengtsson <[EMAIL PROTECTED]> wrote: Graham Percival wrote: Rewriting the parser for such a trivial thing would be a waste of resources. Just get used to typing #, just like {} or ,' or any other piece of lilypond input.

Re: String syntax, Was: substitution with \movement

2008-06-11 Thread Graham Percival
On Wed, 11 Jun 2008 23:57:00 +0200 Mats Bengtsson <[EMAIL PROTECTED]> wrote: > Graham Percival wrote: > > >Rewriting the parser for such a trivial thing would be a waste of > >resources. Just get used to typing #, just like {} or ,' or any > >other piece of lilypond input. The docs are supposed

Re: substitution with \movement

2008-06-11 Thread Valentin Villenave
2008/6/11 Graham Percival <[EMAIL PROTECTED]>: > Oh, come on! What is so hard about typing #? On an English > keyboard, you already need to be pressing the shift key to get the > " that you'll type for your string anyway. Yes, French keyboard layout is much more annoying (it requires twisting yo

String syntax, Was: substitution with \movement

2008-06-11 Thread Mats Bengtsson
Graham Percival wrote: Oh, come on! What is so hard about typing #? On an English keyboard, you already need to be pressing the shift key to get the " that you'll type for your string anyway. Rewriting the parser for such a trivial thing would be a waste of resources. Just get used to typing

Re: substitution with \movement

2008-06-11 Thread Graham Percival
On Wed, 11 Jun 2008 23:28:00 +0200 "Valentin Villenave" <[EMAIL PROTECTED]> wrote: > 2008/6/11 Nicolas Sceaux <[EMAIL PROTECTED]>: > > Tis its extensibility that make LilyPond more likely to be able to > > fit the more users needs, and its extensibility is made possible > > because LilyPond is pro

Re: substitution with \movement

2008-06-11 Thread Valentin Villenave
2008/6/11 Nicolas Sceaux <[EMAIL PROTECTED]>: > Bullshit. There may be one point on which I tend to agree with Arjan: it's not always handy to constantly put a hash character before text strings. If I remember correctly (but I may have been hallucinating), you have some functions in your framewor

Re: substitution with \movement

2008-06-11 Thread Nicolas Sceaux
Le 11 juin 08 à 13:21, Arjan Bos a écrit : May I chime in a bit here? This prodding of the scheme interpreter is one of the few things I do not like in the lilypond syntax. I do love LilyPond and as a programmer at heart, I adore its syntax. However, as a programmer, it is my duty to let th

Re: substitution with \movement

2008-06-11 Thread Arjan Bos
May I chime in a bit here? This prodding of the scheme interpreter is one of the few things I do not like in the lilypond syntax. I do love LilyPond and as a programmer at heart, I adore its syntax. However, as a programmer, it is my duty to let the computer do the work instead of the user.

Re: substitution with \movement

2008-06-11 Thread Valentin Villenave
2008/6/11 Stefan Thomas <[EMAIL PROTECTED]>: > But unfortunately this doesn't work: > langsamer = { \movement "subito meno mosso" "4" #69 } You have to add a # before each quoted string: langsamer = { \movement #"subito meno mosso" #"4" #69 } It's in order to tell the Scheme interpreter: "hey

substitution with \movement

2008-06-11 Thread Stefan Thomas
Dear Lilypond-users, I want to make a substitution with the \movement-command ( look at: http://lsr.dsi.unimi.it/LSR/Item?id=444). But unfortunately this doesn't work: langsamer = { \movement "subito meno mosso" "4" #69 } How can I change it? I had another strange exp

Re: Organ pedal marks and substitution

2007-12-28 Thread Reilly
Stig, On Dec 26, 2007, at 9:07 AM, [EMAIL PROTECTED] wrote: Does anyone have a suggestion as how to show substitution of feet in an organ pedal voice? It could be when shifting from right toe to right heel on the same note, or it could be substituting the left toe with the right toe

Re: Organ pedal marks and substitution

2007-12-27 Thread Kieren MacMillan
Hello, Does anyone have a suggestion as how to show substitution of feet in an organ pedal voice? It could be when shifting from right toe to right heel on the same note, or it could be substituting the left toe with the right toe, still on the same note. How about something like

Organ pedal marks and substitution

2007-12-25 Thread Stig Junge
Does anyone have a suggestion as how to show substitution of feet in an organ pedal voice? It could be when shifting from right toe to right heel on the same note, or it could be substituting the left toe with the right toe, still on the same note. Regards Stig Junge

Re: Substitution

2007-07-26 Thread Palmer, Ralph
+0200 From: Martial <[EMAIL PROTECTED]> Subject: Re: Substitution To: lilypond-user@gnu.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi ! > In the following code, why doesn't my substition work? just put in bracket "{ blabla

Re: Substitution

2007-07-26 Thread Martial
Hi ! In the following code, why doesn't my substition work? just put in bracket "{ blabla }" breath = { \once\override BreathingSign #'extra-offset = #'(0.0 . 1.0)\breathe } %%+++ begin snippet \version "2.11.23" \include "english.ly" breath = \once\override Breathi

Substitution

2007-07-26 Thread Palmer, Ralph
Greetings - I'm running LilyPond 2.11.27 (although the files, after running convert-ly, say 2.11.23) under Windows XP2000, SP2. Great program! I just wish I knew everything about it. I'm gaining on it, though. In the following code, why doesn't my substition work? Thank you for your help and fo

Re: stupid substitution

2006-12-26 Thread Graham Percival
Nicolas Sceaux wrote: Mats is right. But just for the record: music functions with no argument still have their use, for instance: displayBarNum = #(define-music-function (parser location) () (if (eq? #t (ly:get-option display-bar-numbers)) #{ \once \override Score.BarNumber #'break-vi

Re: Scheme question on strict substitution

2006-12-03 Thread stk
Hello, As regards the issue of context-free equivalence -- > > I can say > > > >foo = \markup { \bold "Zanzibar" } > >bar = \markup { "Stand on" \foo } > > > > but I can't say > > > >bar = \markup { "Stand on" \markup { \bold "Zanzibar" } } > > > > [so] > > > >\foo is not equiv

Re: Scheme question on strict substitution

2006-12-03 Thread Erik Sandberg
On Thursday 30 November 2006 21:32, [EMAIL PROTECTED] wrote: > Hello, > > > . . . one problem is that this [giving the syntax of each keyword] would > > still just tell a small part of the full syntax. > > I think it would give a big part of the full syntax, even if not the whole > picture. It wou

Re: Scheme question on strict substitution

2006-12-01 Thread Nicolas Sceaux
Han-Wen Nienhuys <[EMAIL PROTECTED]> writes: > Mats Bengtsson escreveu: > >> As already said, this is not available in the current manual and one >> problem is that >> this would still just tell a small part of the full syntax. Another > > This should be rather easy to add to the manual. I believe

Re: Scheme question on strict substitution

2006-11-30 Thread Han-Wen Nienhuys
Mats Bengtsson escreveu: >> OK, thank you, that's very clear. That fact, for any given keyword, >> would tell a user immediately whether (s)he could just write a macro or >> would be forced to define a function for some expression involving the >> keyword. >> >> Is the information >>(1) numbe

Re: Scheme question on strict substitution

2006-11-30 Thread stk
Hello, > . . . one problem is that this [giving the syntax of each keyword] would > still just tell a small part of the full syntax. I think it would give a big part of the full syntax, even if not the whole picture. It would enable a user to know (1) what type of "arguments" have to follow

Re: Scheme question on strict substitution

2006-11-30 Thread Mats Bengtsson
[EMAIL PROTECTED] wrote: Hello, It may help your understanding to know that \tweak itself is implemented as a music function taking 3 arguments. The syntax of \tweak is \tweak symbol value music_expression OK, thank you, that's very clear. That fact, for any given keywor

Re: Scheme question on strict substitution

2006-11-30 Thread Mats Bengtsson
In my understanding, the difference between \override and \tweak is that with \override, you can only specify the "time" at which the setting should be active, i.e. if you have several notes or whatever that appear simultaneous within the same context, then you can not affect them individually, j

Re: Scheme question on strict substitution

2006-11-30 Thread stk
Hello, > It may help your understanding to know > that \tweak itself is implemented as a music function taking 3 arguments. > The syntax of \tweak is > \tweak symbol value music_expression OK, thank you, that's very clear. That fact, for any given keyword, would tell a user immediately whether

Re: Scheme question on strict substitution

2006-11-29 Thread Mats Bengtsson
[EMAIL PROTECTED] wrote: Hello, Does it work just to define this macro at the top level fraction = \tweak #'text #tuplet-number::calc-fraction-text No, this doesn't work. OK, but I have a question. It is common to write such things as push = \once \over

Re: Scheme question on strict substitution

2006-11-29 Thread stk
Hello, > > Does it work just to define this macro at the top level > > > > fraction = \tweak #'text #tuplet-number::calc-fraction-text > No, this doesn't work. OK, but I have a question. It is common to write such things as push = \once \override NoteColumn #'extra-X-extent = #'

Re: Scheme question on strict substitution

2006-11-29 Thread Trevor Bača
On 11/29/06, Mats Bengtsson <[EMAIL PROTECTED]> wrote: No, this doesn't work. What does work is \version "2.10.0" fraction = #(define-music-function (parser location music) (ly:music?) #{ \tweak #'text #tuplet-number::calc-fraction-text $music #}) This is exactly what I was

Re: Scheme question on strict substitution

2006-11-28 Thread Mats Bengtsson
Mats Bengtsson wrote: However, what is the reason to use \tweak at all? Why not simply do an ordinary \once \override: \version "2.10.0" fraction = \override TupletNumber #'text = #tuplet-number::calc-fraction-text Sorry, this should of course be fraction = \once \override TupletNumber #'te

Re: Scheme question on strict substitution

2006-11-28 Thread Mats Bengtsson
No, this doesn't work. What does work is \version "2.10.0" fraction = #(define-music-function (parser location music) (ly:music?) #{ \tweak #'text #tuplet-number::calc-fraction-text $music #}) \relative c'{ \fraction \times 2/3 { c'8 c'8 c'8 } } Howeve

Re: Scheme question on strict substitution

2006-11-28 Thread Mats Bengtsson
Werner LEMBERG wrote: Does it work just to define this macro at the top level fraction = \tweak #'text #tuplet-number::calc-fraction-text [...] Are you sure that you want to overwrite LilyPond's `\fraction' function? ??? Are you thinking of the \fraction markup command? In

Re: Scheme question on strict substitution

2006-11-28 Thread Werner LEMBERG
> Does it work just to define this macro at the top level > > fraction = \tweak #'text #tuplet-number::calc-fraction-text > > [...] Are you sure that you want to overwrite LilyPond's `\fraction' function? Werner ___ lilypond-user mailing

Re: Scheme question on strict substitution

2006-11-28 Thread stk
Hello, Does it work just to define this macro at the top level fraction = \tweak #'text #tuplet-number::calc-fraction-text and then later in the music to write \fraction \times 2/3 { c'8 c'8 c'8 } Does LilyPond swallow that? -- Tom ---

Scheme question on strict substitution

2006-11-28 Thread Trevor Bača
Hi, I frequently write \tweak #'text #tuplet-number::calc-fraction-text before tuplets, like this: \tweak #'text #tuplet-number::calc-fraction-text \times 2/3 { c'8 c'8 c'8 } What's the best way to abbreviate to something like this? \fraction

Substitution function for setting stemLeftBeamCount and stemRightBeamCount at the same time

2006-11-27 Thread Trevor Bača
t stemRightBeamCount = #4 c'64 c'64] } %%% END EX 1 %%% I've often wondered why there isn't some setting like \set stemBeamCount = #'(4 . 2) to set both stemLeftCount and stemRightBeamCount together. However, following the third example in section 12.1.2 "

  1   2   >