Re: make-music?

2024-04-16 Thread Pierre-Luc Gauthier
> Instead of > #(define (anAList) `((aVariable . ,aSymbol))) > you could write: > #(define anAList (lambda () `((aVariable . ,aSymbol Thanks Thomas. I love the simplicity of this example. > #(define anAList '((aVariable . aSymbol))) > aSymbol = { cis' } > { >#(module-ref (current-module)

Re: make-music?

2024-04-13 Thread Aaron Hill
On 2024-04-13 1:08 pm, Pierre-Luc Gauthier wrote: But what about the parenthesised alist -> (alist) ‽ Difference between a variable containing an alist versus a *procedure* that returns an alist. This defers the evaluation of aSymbol until such time as it is defined. Here is another

Re: make-music?

2024-04-13 Thread Thomas Morley
Am Sa., 13. Apr. 2024 um 22:09 Uhr schrieb Pierre-Luc Gauthier : > But what about the parenthesised alist -> (alist) ‽ > > I have not found documentation here : > https://extending-lilypond.gitlab.io/en/scheme/alists.html > nor here : >

Re: make-music?

2024-04-13 Thread Pierre-Luc Gauthier
o evaluate later. I thought that was > > what ly:make-music was for. > > > > \version "2.25.15" > > > > #(define anAList ((aVariable . aSymbol))) > > > > aSymbol = {cis'} > > > > { > > #(cdr (assoc 'aVariable anAList)) > >

Re: make-music?

2024-04-13 Thread Thomas Morley
Am Sa., 13. Apr. 2024 um 20:59 Uhr schrieb Pierre-Luc Gauthier : > > Hello there, > > Quite an easy one I'm sure but I tried many combinations to no avail. > > I have this symbol that I wish to evaluate later. I thought that was > what ly:make-music was for. > > \ver

make-music?

2024-04-13 Thread Pierre-Luc Gauthier
Hello there, Quite an easy one I'm sure but I tried many combinations to no avail. I have this symbol that I wish to evaluate later. I thought that was what ly:make-music was for. \version "2.25.15" #(define anAList ((aVariable . aSymbol))) aSymbol = {cis'} { #(cdr (assoc

Re: sheet music

2024-04-13 Thread Lukas-Fabian Moser
Hi Michael, Do you mean the keyboard ostinato motiv? Chords an lyrics you should easily find on the internet. Anyway, here's the keyboard motiv. Might have to be transposed. Thanks for transcribing the keyboard line! Just one suggestion: While avoiding ces and fes might seem to simplify the

Re: sheet music

2024-04-10 Thread Michael Gerdau
Hi Tyler, i’m no musician, but am trying to provide sheet music for the violinist to play at our wedding. is it possible to transcribe this song into sheet music with your software? Do you mean the keyboard ostinato motiv? Chords an lyrics you should easily find on the internet. Anyway

sheet music

2024-04-10 Thread Tyler Horn
hi, i’m no musician, but am trying to provide sheet music for the violinist to play at our wedding. is it possible to transcribe this song into sheet music with your software? if so, can you give a cost estimate? thanks! tyler https://www.youtube.com/watch?v=K65dRRa3GoM_channel=destr100

Re: Get name of music object

2024-04-02 Thread Lukas-Fabian Moser
Hi Morten, Am 02.04.24 um 10:56 schrieb Morten Lemvigh: Music objects are created with a name and some properties: make-music name music-properties I know how to get the properties from a music object - but how about the name? I cannot figure out how to get the name from a music object

Re: Get name of music object

2024-04-02 Thread Jean Abou Samra
> I know how to get the properties from a music object - but how about the name? > I cannot figure out how to get the name from a music object. (ly:music-property the-object 'name) HTH Jean signature.asc Description: This is a digitally signed message part

Get name of music object

2024-04-02 Thread Morten Lemvigh
Hi, Music objects are created with a name and some properties: make-music name music-properties I know how to get the properties from a music object - but how about the name? I cannot figure out how to get the name from a music object. It is difficult to search for since the word "name&quo

Re: Capturing out-of-music markup for music braille

2024-03-29 Thread Maurits Lamers via LilyPond user discussion
Thanks so much for thinking along. In the current setup that would still require users to change their Lilypond code. Your example did give me an idea though: if there would be something like $currentscore, the problem of getting access to the score header would be solved... cheers Maurits

Re: Capturing out-of-music markup for music braille

2024-03-28 Thread Timothy Lanfear
On 27/03/2024 22:03, Maurits Lamers wrote: Hi Timothy, Thanks so much for your answer! With $defaultheader I can indeed get the main/global header fields in the initialize stage of the engraver, which is already a very important step. I looked up where $defaultheader is defined, and tried

Re: Capturing out-of-music markup for music braille

2024-03-27 Thread Maurits Lamers via LilyPond user discussion
Op 27-03-2024 om 18:07 schreef Timothy Lanfear: On 26/03/2024 14:01, Maurits Lamers via LilyPond user discussion wrote: - is there a way to get a listener or callback of some kind to capture out-of-music markup? - is there a way to get access to the global headers and / or score headers

Re: Capturing out-of-music markup for music braille

2024-03-27 Thread Timothy Lanfear
On 26/03/2024 14:01, Maurits Lamers via LilyPond user discussion wrote: - is there a way to get a listener or callback of some kind to capture out-of-music markup? - is there a way to get access to the global headers and / or score headers (in case of score specific headers

Capturing out-of-music markup for music braille

2024-03-26 Thread Maurits Lamers via LilyPond user discussion
Hey all, It has been a while I posted on this mailing-list. As some of you might remember, I have been working on a music braille output system for Lilypond for quite some time now. The update on that front is that I do have a system now that can reliably output (a subset of) music braille

Re: multipart choral music - disable barlines between staves when using GrandStaff within ChoirStaff

2024-03-23 Thread Eby Mani
Thanks, i haven't been using lilypond for a while, and forgot even the basic things like these. On Saturday, 23 March, 2024 at 07:48:32 pm IST, David Wright wrote: On 2024-03-23 2:12 am, Eby Mani wrote: > Two questions. > 1, How do i set instrument names as per attached "example_1"

Re: multipart choral music - disable barlines between staves when using GrandStaff within ChoirStaff

2024-03-23 Thread David Wright
On 2024-03-23 2:12 am, Eby Mani wrote: > Two questions. > 1, How do i set instrument names as per attached "example_1" picture. > > 2, example_1 - How do i disable connecting barlines between staves when > using PianoStaff or GrandStaff within ChoirStaff. You could also replace r1 with R1 in

Re: multipart choral music - disable barlines between staves when using GrandStaff within ChoirStaff

2024-03-23 Thread Eby Mani
Many thanks, Aaron, exactly what i was looking for. Is this on LSR ?. On Saturday, 23 March, 2024 at 03:17:06 pm IST, Aaron Hill wrote: On 2024-03-23 2:12 am, Eby Mani wrote: > Two questions. > 1, How do i set instrument names as per attached "example_1" picture. > > 2, example_1 -

Re: multipart choral music - disable barlines between staves when using GrandStaff within ChoirStaff

2024-03-23 Thread Aaron Hill
On 2024-03-23 2:12 am, Eby Mani wrote: Two questions. 1, How do i set instrument names as per attached "example_1" picture. 2, example_1 - How do i disable connecting barlines between staves when using PianoStaff or GrandStaff within ChoirStaff. This is not the complete scenario with all

Re: How to use define-music-function?

2024-03-20 Thread Aaron Hill
On 2024-03-20 8:53 am, enejati--- via LilyPond user discussion wrote: Hello, I'm a new lilypond user. I want to create multiple scores in a single file. These scores have some values on common. So I want to use `define-music-function` in order to avoid repetition. [ . . . ] A few things

How to use define-music-function?

2024-03-20 Thread enejati--- via LilyPond user discussion
Hello, I'm a new lilypond user. I want to create multiple scores in a single file. These scores have some values on common. So I want to use `define-music-function` in order to avoid repetition. Here is my code now: \score { \new Staff \with { instrumentName = "۱" } \one

Re: Tall bars in two-line music

2024-03-06 Thread David Wells
Great! Thank you so much! On Wed, Mar 6, 2024, at 11:35 AM, Michael Werner wrote: > Hi David, > > On Wed, Mar 6, 2024 at 10:00 AM David Wells > wrote: >> __ >> Hi, >> >> I'm working on typesetting some chants with two lines per staff and the >> resulting barlines are too tall. Tiny example:

Re: Tall bars in two-line music

2024-03-06 Thread Michael Werner
Hi David, On Wed, Mar 6, 2024 at 10:00 AM David Wells < drwells.mailingl...@fastmail.com> wrote: > Hi, > > I'm working on typesetting some chants with two lines per staff and the > resulting barlines are too tall. Tiny example: > %< snip >% > Here, I expect the barlines to be the same height as

Tall bars in two-line music

2024-03-06 Thread David Wells
Hi, I'm working on typesetting some chants with two lines per staff and the resulting barlines are too tall. Tiny example: \version "2.24.3" \score { \relative c' { \time 9/4 \slurDown \override Staff.StaffSymbol.line-count = #2 f4(g) a f(g) a(g) g2 | f4(g) a f(g) a(g) g2 | \break

Re: define-music-function with afterGrace and {}

2024-02-25 Thread jcarll
/, shifting back all the following music. How can I correct this? Greetings, Jonathan Am 23.02.2024 um 14:27 schrieb David Kastrup: jca...@web.de writes: Good day, following snippet I need very frequently (with different notes instead of c4 and e4): \afterGrace c4 \glissando {\once \hide Stem

Re: Music generated by function confuses relative pitch

2024-02-23 Thread Morten Lemvigh
taking the time to help me understand and explain these details. Best regards, Morten On Thu, Feb 22, 2024 at 11:38 PM Jean Abou Samra wrote: > Hi Morten, > > Le jeudi 22 février 2024 à 23:00 +0100, Morten Lemvigh a écrit : > > \version "2.24.1" > > > > double

Re: define-music-function with afterGrace and {}

2024-02-23 Thread David Kastrup
jca...@web.de writes: > Good day, > > following snippet I need very frequently (with different notes instead > of c4 and e4): > >\afterGrace c4 \glissando {\once \hide Stem \parenthesize e4} > > > That's why I wanted to create a music function to shorten the > e

Re: define-music-function with afterGrace and {}

2024-02-23 Thread Aaron Hill
On 2024-02-23 4:46 am, jca...@web.de wrote: My previous attempt: graceGliss = #(define-music-function   (starttone endtone)   (ly:music? ly:music?)   #{     \afterGrace #starttone \glissando {\once \hide Stem \parenthesize #endtone}   #}) doesn't work, Return Code

define-music-function with afterGrace and {}

2024-02-23 Thread jcarll
Good day, following snippet I need very frequently (with different notes instead of c4 and e4): \afterGrace c4 \glissando {\once \hide Stem \parenthesize e4} That's why I wanted to create a music function to shorten the expression. My previous attempt: graceGliss = #(define-music

Re: Music generated by function confuses relative pitch

2024-02-22 Thread Jean Abou Samra
Hi Morten, Le jeudi 22 février 2024 à 23:00 +0100, Morten Lemvigh a écrit : > \version "2.24.1" > > double = > #(define-music-function (music)(ly:music?) >    (let ((notes (ly:music-property music 'elements))) >      (make-music 'SequentialMusic

Music generated by function confuses relative pitch

2024-02-22 Thread Morten Lemvigh
Hi, I am trying to create a set of functions to help me set up songs with divisi lyrics. When I generate a midi file with the unfolded music, I would like it to have the different rhythms in the different voltas. I get some unexpected results with regards to pitches. I have tried to create

Re: Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-14 Thread Knute Snortum
On Wed, Feb 14, 2024 at 7:59 AM Hajo Baess wrote: > I have (just completely accidentally, with a little help from the > Breeze theme color scheme) discovered a keyboard shortcut for switching > back and forth between the editor and the Music View. I think that it > is undocumented,

Re: Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-14 Thread Guy Stalnaker
ortcut for switching > back and forth between the editor and the Music View. I think that it > is undocumented, and strange it is, too. Here it is: > > * from editor to Music View: press CTRL+TAB 5 times or until the Music >View scroll bar is not greyed out any more. In Breeze for e

Re: Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-14 Thread Hajo Baess
I have (just completely accidentally, with a little help from the Breeze theme color scheme) discovered a keyboard shortcut for switching back and forth between the editor and the Music View. I think that it is undocumented, and strange it is, too. Here it is: * from editor to Music View: press

Re: Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-13 Thread Hajo Baess
to a different page of your doc in the music view, you always have to click into the Music View half of Frescobaldi's window in order to activate it, so you can use a keyboard shortcut there. And when you have done this and want to go back to the editor, you have to click again into the editor pane

Re: Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-13 Thread Guy Stalnaker
wrote: Hello all, Maybe I am missing it alltogether or it does not exist or it is to hard to find for me: I am looking for a keyboard shortcut in Frescobaldi enabling me to toggle between editor and music view, so I do not have to click with the mouse. I just can't find it. I have tried all kinds

Re: Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-13 Thread Knute Snortum
On Mon, Feb 12, 2024 at 1:37 PM Hajo Baess wrote: > Hello all, > > Maybe I am missing it alltogether or it does not exist or it is to hard > to find for me: > I am looking for a keyboard shortcut in Frescobaldi enabling me to > toggle between editor and music view, so I do

Frescobaldi: Keyboard shortcut for toggling between editor and music view?

2024-02-12 Thread Hajo Baess
Hello all, Maybe I am missing it alltogether or it does not exist or it is to hard to find for me: I am looking for a keyboard shortcut in Frescobaldi enabling me to toggle between editor and music view, so I do not have to click with the mouse. I just can't find it. I have tried all kinds

Re: Ancient vocal music lyrics extenders

2024-02-06 Thread Jakob Pedersen
extending the extender to (almost) end-of-measure by adding a (hidden) extra note towards the end of the measure. Using \scaleDurations you make  that the total length of the shown+hidden music still fit within the measure. You’ll need to add the additional extender in the lyrics as well, as the h

Re: Ancient vocal music lyrics extenders

2024-02-05 Thread Hans Aikema
the top line, even if it isn't actually a melisma? And if so, > is it possible to force to extend as far as the other three lyrics extender > lines re my first question. Jakob, You can trick lilypond into extending the extender to (almost) end-of-measure by adding a (hidden) extra note toward

Ancient vocal music lyrics extenders

2024-02-05 Thread Jakob Pedersen via LilyPond user discussion
Hello all, I've been trying to replicate a score from CPDL. The font is terrible, the notes are weirdly shaped. I really don't like it. I wonder what software made it. Also, why two hyphens in that short a space? (I'm wondering which software was used to make it in the first place.) I've

Re: Help with music function

2023-12-18 Thread Mark Probert
k Probert wrote: >> Hi. >> I'm struggling some with writing a music function for rests. Basically I >> want to be able to write something like >> \rel-rest( b', 1) > > Minor nit: Functions in LilyPond do not use parentheses and commas for > arguments in t

Re: Help with music function

2023-12-18 Thread William Rehwinkel via LilyPond user discussion
Dear Mark, I did this in a slightly different way...if you do \displayMusic c4\rest you can see how to represent a rest using the make-music procedure in scheme code. Modifying that a bit, I got % \version "2.25.6" %\displayMusic c4\rest = %(make-music %

Re: Help with music function

2023-12-18 Thread Aaron Hill via LilyPond user discussion
On 2023-12-17 9:33 pm, Mark Probert wrote: Hi. I'm struggling some with writing a music function for rests. Basically I want to be able to write something like \rel-rest( b', 1) Minor nit: Functions in LilyPond do not use parentheses and commas for arguments in this way. You need only

Help with music function

2023-12-17 Thread Mark Probert
Hi. I'm struggling some with writing a music function for rests. Basically I want to be able to write something like \rel-rest( b', 1) which would place a dotted quarter rest on the indicated pitch (the equivalent of b'1\rest I'm starting with rel-rest = #(define-music-function (pit dur

Re: Merging dynamics with music

2023-09-16 Thread mskala
On Sat, 16 Sep 2023, Knute Snortum wrote: > Try moving the Dynamic performer to the Staff level.  Cutting and pasting this code produces two pages of error messages because it's full of "non-breaking space" characters which LilyPond can't process, but I was able to get the desired results by

Re: Merging dynamics with music

2023-09-16 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > Thank you. That works for the given example. However, with more > complicated music that already contains multiple voices (as is typical of > the piano music where a between-staff Dynamics context would be used in > the first place), it

Re: Merging dynamics with music

2023-09-16 Thread Knute Snortum
On Sat, Sep 16, 2023 at 6:01 AM wrote: > On Sat, 16 Sep 2023, David Kastrup wrote: > > > Try > > > > \new Staff << \MyMusic \MyDynamics >> > > > > since otherwise the variables will end up in separate Staff contexts. > > With the following code, the notes in the MIDI file still are both at >

Re: Merging dynamics with music

2023-09-16 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > On Sat, 16 Sep 2023, David Kastrup wrote: > >> Try >> >> \new Staff << \MyMusic \MyDynamics >> >> >> since otherwise the variables will end up in separate Staff contexts. > > With the following code, the notes in the MIDI file still are both at > default

Re: Merging dynamics with music

2023-09-16 Thread mskala
ssue the dynamics on a level visible > to MIDI. Thank you. That works for the given example. However, with more complicated music that already contains multiple voices (as is typical of the piano music where a between-staff Dynamics context would be used in the first place), it doesn't work. For

Re: Merging dynamics with music

2023-09-16 Thread mskala
On Sat, 16 Sep 2023, David Kastrup wrote: > Try > > \new Staff << \MyMusic \MyDynamics >> > > since otherwise the variables will end up in separate Staff contexts. With the following code, the notes in the MIDI file still are both at default velocity. Explicitly instantiating the Staff does

Re: Merging dynamics with music

2023-09-16 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > I'm trying to use a Dynamics context to put dynamics between the staves of > a PianoStaff. As such, I've got my notes and my dynamics in two separate > variables. For MIDI output, I'd like to merge the contents of the music > variable and the dynam

Merging dynamics with music

2023-09-15 Thread mskala
I'm trying to use a Dynamics context to put dynamics between the staves of a PianoStaff. As such, I've got my notes and my dynamics in two separate variables. For MIDI output, I'd like to merge the contents of the music variable and the dynamics variable and generate MIDI from the result. But I

Re: Bar numbers on Dynamics staff above music

2023-08-28 Thread Richard Shann
On Mon, 2023-08-28 at 11:27 +0200, Xavier Scheuer wrote: > On Mon, 28 Aug 2023 at 10:17, Richard Shann > wrote: > > > > There are more problems than I thought with your solution- > > here is your example with some higher notes in it - the bar numbers > > leave the staff again: > > Hello, > >

Re: Bar numbers on Dynamics staff above music

2023-08-28 Thread Xavier Scheuer
On Mon, 28 Aug 2023 at 10:17, Richard Shann wrote: > > There are more problems than I thought with your solution- > here is your example with some higher notes in it - the bar numbers > leave the staff again: Hello, Removing "Bar_number_engraver" from the Score context and adding it to the

Re: Bar numbers on Dynamics staff above music

2023-08-28 Thread Richard Shann
testing further... On Sun, 2023-08-27 at 07:50 -0700, Knute Snortum wrote: > On Sun, Aug 27, 2023 at 7:31 AM Richard Shann > wrote: > > If I create a Dynamics staff above the music, the bar numbers are > > printed on it rather than on the staff with the music. At least > >

Re: Bar numbers on Dynamics staff above music

2023-08-27 Thread Richard Shann
On Sun, 2023-08-27 at 07:50 -0700, Knute Snortum wrote: > On Sun, Aug 27, 2023 at 7:31 AM Richard Shann > wrote: > > If I create a Dynamics staff above the music, the bar numbers are > > printed on it rather than on the staff with the music. At least > > this is > >

Re: Bar numbers on Dynamics staff above music

2023-08-27 Thread Knute Snortum
On Sun, Aug 27, 2023 at 7:31 AM Richard Shann wrote: > If I create a Dynamics staff above the music, the bar numbers are > printed on it rather than on the staff with the music. At least this is > why setting the outside-staff-priority doesn't have any effect. > Is there a way to get

Bar numbers on Dynamics staff above music

2023-08-27 Thread Richard Shann
If I create a Dynamics staff above the music, the bar numbers are printed on it rather than on the staff with the music. At least this is why setting the outside-staff-priority doesn't have any effect. Is there a way to get bar numbers onto the staff with the music? This is my MWE

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-03 Thread Volodymyr Prokopyuk
Hi Jean, It worked! I managed to move from a Nunjucks macro to a LilyPond music function for creating custom shaped slurs. Thank you very much for your substantial support! It would be much more difficult if ever possible for me without your help! Thank you, Vlad On Sun, Jul 2, 2023 at 9:44 PM

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Jean Abou Samra
Le dimanche 02 juillet 2023 à 18:47 +0200, Volodymyr Prokopyuk a écrit : > Thank you very much for multiple options! I've decided to try the first one. I > still have two difficulties > * How to create alist from the components ax, ay, ... (see comment in the code > below)? The control-points

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Volodymyr Prokopyuk
. 2.0)) ( d) I managed to created the below music function following your advice for the option 1 shapedSlur = #(define-music-function (dir prs mus) (symbol? alist? ly:music?) (let* ((bs (assoc-get 'bs pars 2.0)) (sh (assoc-get 'sh prs 0.5)) (wd (assoc-get 'wd prs 1.0

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Jean Abou Samra
Le dimanche 02 juillet 2023 à 14:28 +0200, Volodymyr Prokopyuk a écrit : > I wonder if there is a **way to define a music function with default > parameters** and be able to selectively specify some parameters using the > **parameters names** leaving all other parameters with thei

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Volodymyr Prokopyuk
Good afternoon, Jean and Valentin, Thank you very much for the up to the point explanation, working function, as well as alternatives syntax for object properties using Scheme metaprogramming! Lilypond is quite flexible, but with its own quirks as the handling of default parameters to a music

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread David Kastrup
its _meaning_. Staff.property did not have any inherent meaning. It was part of the hardwired syntax of \set and \override (in the form of, say, \override Staff.TimeSignature #'stencil = ##f ) but there was no user-accessible representation of it outside of the commands. Music functions like \ov

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Valentin Petzel
Am Samstag, 1. Juli 2023, 18:48:31 CEST schrieb David Kastrup: > The funny thing is that I suspect Han-Wen might still be surprised to > hear what Staff.property "actually means". > > It's been around for quite longer than its "actual meaning". But of > course I should be the last person to

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread David Kastrup
directly enter > #(list scope 'property) like this > > % > \version "2.24.1" > > momentBeat = > #(define-music-function (scope moment beat) ((symbol? 'Staff) fraction? list?) >#{ > \set #(list scope 'beamExceptions) = #'() > \set #(list scop

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Valentin Petzel
"2.24.1" momentBeat = #(define-music-function (scope moment beat) ((symbol? 'Staff) fraction? list?) #{ \set #(list scope 'beamExceptions) = #'() \set #(list scope 'baseMoment) = #(ly:make-moment (/ (car moment) (cdr moment))) \set #(list scope 'beatStructur

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Jean Abou Samra
Le samedi 01 juillet 2023 à 16:42 +0200, Volodymyr Prokopyuk a écrit : > I'm trying to define a music function as below, however I've faced > difficulties with parameter predicates, visibility of the Staff object, and > flexibility of the solution ideally without code duplication >

Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Volodymyr Prokopyuk
Hi, I'm trying to define a music function as below, however I've faced difficulties with parameter predicates, visibility of the Staff object, and flexibility of the solution ideally without code duplication *Desired music function* (the code is not working) momentBeat = #(define-music

Re: Lilypond 2.24.1 repeat sego with DC : music found after \fine

2023-05-30 Thread Jean Abou Samra
Le mardi 30 mai 2023 à 08:52 +0200, Hans Aikema a écrit : > Not sure whether that text would be easy to customise (could not find a > reference for it on a quick search, only for an alternative Fine text, not > for an alternative D.C. al Fine text) Here is an example: ``` \version "2.24.1"

Re: Lilypond 2.24.1 repeat sego with DC : music found after \fine

2023-05-30 Thread Jean Abou Samra
Le lundi 29 mai 2023 à 17:00 -0700, Kenneth Wolcott a écrit : > Hi; > >   Warning message from Lilypond 2.24.1 regarding a repeat segno > attempt with a DC: > > When_You_and_I_Were_Young_Maggie.ly:50:12: warning: found music after \fine >   \volta 2 >    \fine >

Re: Lilypond 2.24.1 repeat sego with DC : music found after \fine

2023-05-30 Thread Hans Aikema
> On 30 May 2023, at 02:00, Kenneth Wolcott wrote: > > Hi; > > Warning message from Lilypond 2.24.1 regarding a repeat segno > attempt with a DC: > > When_You_and_I_Were_Young_Maggie.ly:50:12: warning: found music after \fine > \volta 2 > \fine &g

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 th

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

2023-05-19 Thread dfro
On 5/19/23 05:38, Valentin Petzel wrote: 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

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
use a function to actually directly create the object you want. For example we can do a keepWithTag-like behaviour like this: myMusic = { \tag #'a c' \tag #'b d' \tag #'c e' } \keepWithTag #'a \myMusic \keepWithTag #'b \myMusic myMusicII = #(define-music-function (flags) (symbol-list

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

2023-05-18 Thread Valentin Petzel
create the object you want. For example we can do a keepWithTag-like behaviour like this: myMusic = { \tag #'a c' \tag #'b d' \tag #'c e' } \keepWithTag #'a \myMusic \keepWithTag #'b \myMusic myMusicII = #(define-music-function (flags) (symbol-list-or-symbol?) (if (symbol? flags) (set

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

2023-05-18 Thread dfro
Valentin, Thank you, for the  explanation! I see what you mean about controlling when evaluation happens by avoiding global variables that change during the flow of a music expression. I will avoid doing that. I see now that it is better to create two or more static global variables

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

2023-05-18 Thread Valentin Petzel
\concat { "Symbol " #var #staff-variable } #} > ) >) > > symbol = > #(define-music-function >() >() >#{ -\tag #'staff-one ^\markup \symbol #var "staff-one-var" > -\tag #'staff-two ^\markup \symbol #var "staff-two-var" >

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

2023-05-17 Thread dfro
, 17. Mai 2023, 22:24:54 CEST schrieb Valentin Petzel: Hello David, there is some confusing going on here about how certain things are evaluated. When you do { ... something ... } this is evaluated pretty much as it is parsed, returning some music object. So \keepWithTag #'textI \tag #'textII

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

2023-05-17 Thread dfro
, 17. Mai 2023, 22:24:54 CEST schrieb Valentin Petzel: Hello David, there is some confusing going on here about how certain things are evaluated. When you do { ... something ... } this is evaluated pretty much as it is parsed, returning some music object. So \keepWithTag #'textI \tag #'textII

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

2023-05-17 Thread Valentin Petzel
Valentin Petzel: > Hello David, > > there is some confusing going on here about how certain things are > evaluated. When you do > > { ... something ... } > > this is evaluated pretty much as it is parsed, returning some music object. > So > > \keepWithTag #'te

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

2023-05-17 Thread Valentin Petzel
Hello David, there is some confusing going on here about how certain things are evaluated. When you do { ... something ... } this is evaluated pretty much as it is parsed, returning some music object. So \keepWithTag #'textI \tag #'textII { #(define l "B") } this will firs

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: Function for turning music upside-down.

2023-03-28 Thread Jean Abou Samra
Le mardi 28 mars 2023 à 12:15 +0100, Mark Knoop a écrit : > Actually it does, see \modalInversion Thanks for correcting me! I didn't remember about it. signature.asc Description: This is a digitally signed message part

Re: Function for turning music upside-down.

2023-03-28 Thread Mark Knoop
At 13:10 on 28 Mar 2023, Jean Abou Samra wrote: > Le mardi 28 mars 2023 à 09:30 +0200, Silvain Dupertuis a écrit : >> How are enharmonic notes supposed to be treated in such a function? > Inversion in, e.g., a Bach fugue subject is a bit different, as it > inverts the diatonic steps but keeps

Re: Function for turning music upside-down.

2023-03-28 Thread Jean Abou Samra
Le mardi 28 mars 2023 à 09:30 +0200, Silvain Dupertuis a écrit : > How are enharmonic notes supposed to be treated in such a function? \version "2.24.1" m = \relative c' { c cis des d dis ees e fes } { \m } \inversion c' c' \m gives which looks fine to me. Essentially, both the diatonic step

Re: Function for turning music upside-down.

2023-03-28 Thread Silvain Dupertuis
How are enharmonic notes supposed to be treated in such a function? Le 28.03.23 à 00:08, Paul Hodges a écrit : I have been asked to take a piece of music (which I already have in LilyPond), and mirror it vertically.  That's to say, to take each note which is n semitones above middle c

Re: Function for turning music upside-down.

2023-03-27 Thread Jean Abou Samra
Le lundi 27 mars 2023 à 23:08 +0100, Paul Hodges a écrit : > I have been asked to take a piece of music (which I already have in > LilyPond), and mirror it vertically.  That's to say, to take each note which > is n semitones above middle c and replace it with the note n semitones below

Function for turning music upside-down.

2023-03-27 Thread Paul Hodges
I have been asked to take a piece of music (which I already have in LilyPond), and mirror it vertically.  That's to say, to take each note which is n semitones above middle c and replace it with the note n semitones below middle c, and vice versa. Before I start trying to write a function

Re: DynamicsStaff spacing itself too far from the music

2023-03-01 Thread Richard Shann
On Tue, 2023-02-28 at 20:16 +, Timothy Lanfear wrote: > On 28/02/2023 17:53, Richard Shann wrote: > In a complex score with a DynamicsStaff placed above the music for > markups and another below for the dynamics an unusually large space > opened up below the music and above the d

Re: DynamicsStaff spacing itself too far from the music

2023-02-28 Thread Timothy Lanfear
On 28/02/2023 17:53, Richard Shann wrote: In a complex score with a DynamicsStaff placed above the music for markups and another below for the dynamics an unusually large space opened up below the music and above the dynamics. I pared the complex score down to this MWE: A Dynamics context

Re: DynamicsStaff spacing itself too far from the music

2023-02-28 Thread Michael Werner
Hi Richard: On Tue, Feb 28, 2023 at 12:53 PM Richard Shann wrote: > In a complex score with a DynamicsStaff placed above the music for > markups and another below for the dynamics an unusually large space > opened up below the music and above the dynamics. > I pared the comple

DynamicsStaff spacing itself too far from the music

2023-02-28 Thread Richard Shann
In a complex score with a DynamicsStaff placed above the music for markups and another below for the dynamics an unusually large space opened up below the music and above the dynamics. I pared the complex score down to this MWE: 8><8><8><8><8><8><8><8

Re: Starting Piano music with acciaccatura on upper voice

2023-02-11 Thread Alberto Simões
Hi Thanks. I tried googling, but it looks like it didn't help much :-) Thank you On Sat, Feb 11, 2023 at 11:42 AM David Kastrup wrote: > Alberto Simões writes: > > > Hi > > > > I am starting a piano music this way: > > > > upper = \relative c'' { &g

Re: Starting Piano music with acciaccatura on upper voice

2023-02-11 Thread David Kastrup
Alberto Simões writes: > Hi > > I am starting a piano music this way: > > upper = \relative c'' { > \clef treble > \key g \major > \time 4/4 > > \acciaccatura ais8 b8. > } > > and the lower voice as > > lower = \relative c { > \cl

  1   2   3   4   5   6   7   8   9   10   >