Re: acciaccatura on lieder set

2024-05-28 Thread Robert Garrigos
thanks, Stephan, that fixes the problem

Robert

> El 28 maig 2024, a les 8:53, Stephan Schöll  va escriure:
> 
> Try adding a grace spacer in the melody at the moment of the
> acciaccaturas in the piano:
> 
> \new Voice \relative c' {
>   \global
>   \grace s8 g'2. |
> }
> 
> Am 28.05.2024 um 08:43 schrieb Robert Garrigos:
>> Could someone tell me what I am doing wrong with this lieder set? When using 
>> acciaccatura in the beginning, I’m getting wrong ouput:
>> 
>> this code:
>> 
>> global = {
>>   \key g \major
>>   \time 3/4
>> }
>> 
>> \score {
>>   <<
>> \new Voice \relative c' {
>>   \global
>>   g'2.
>> }
>> \new Lyrics \lyricmode{
>>   a
>> }
>> \new PianoStaff
>> <<
>>   \new Staff  \relative c' {
>> \global
>> % | \override Flag.stroke-style = #"grace" cs8(  2.
>> % | 2.
>> | \acciaccatura cs8  2.
>>   }
>>   \new Staff  \relative c' {
>> \global
>> % | \override Flag.stroke-style = #"grace" cs8(  2.
>> % | 2.
>> | \acciaccatura cs8  2.
>>   }
>> >>
>>   >>
>> }
>> 
>> gives me:
>> 
>> 
>> whenever I take the acciaccatura out or substitute it with the  \override 
>> Flag.stroke-style = #”grace”, the output is ok. Also, deleting the voice and 
>> lyric lines, the output is ok. What’s wrong with my first code?
>> 
>> thanks.
>> 
>> Robert




acciaccatura on lieder set

2024-05-28 Thread Robert Garrigos
Could someone tell me what I am doing wrong with this lieder set? When using 
acciaccatura in the beginning, I’m getting wrong ouput:

this code:

global = {
  \key g \major
  \time 3/4
}

\score {
  <<
\new Voice \relative c' {
  \global
  g'2.
}
\new Lyrics \lyricmode{
  a
}
\new PianoStaff 
<<
  \new Staff  \relative c' {
\global
% | \override Flag.stroke-style = #"grace" cs8(  2.
% | 2.
| \acciaccatura cs8  2.
  }
  \new Staff  \relative c' {
\global
% | \override Flag.stroke-style = #"grace" cs8(  2.
% | 2.
| \acciaccatura cs8  2.
  }
>>
  >>
}

gives me:


whenever I take the acciaccatura out or substitute it with the  \override 
Flag.stroke-style = #”grace”, the output is ok. Also, deleting the voice and 
lyric lines, the output is ok. What’s wrong with my first code?

thanks.

Robert

Re: Frescobaldi?

2024-05-10 Thread Robert Garrigos
I can confirm the same problem. Just installed macports and frescobaldi port 
and it launches only via terminal. Double clicking on the .app (inside the 
apps/macports folder) returns a general launch error with py2app. Once launched 
via terminal, frescobaldi works great, though.

> El 10 maig 2024, a les 17:48, Xavier Mayeur  va escriure:
> 
> yes, I am sure. This is the frescobaldi.app under the /Applications/MacPorts 
> folder. I've cleaned all older versions before installing with Mac Port
> 
> Xavier
> 
> Le 10/05/24 à 17:37, Jean Abou Samra a écrit :
>>> I've freshly installed Frescobaldi using mac port. When lauching the 
>>> frescobaldi.app,
>> Are you sure that this is the Frescobaldi that was installed by MacPorts?
>> It rather sounds like the (buggy) .app distributed in the Frescobaldi
>> releases. I think the MacPorts-installed Frescobaldi should be launched
>> by executing the `frescobaldi` command in a terminal — which was apparently
>> successful for you.
> -- 
> Cordialement,
> 
> Xavier MAYEUR
> 14 rue Thiernesse
> 1070 Bruxelles



\after positioning in voices

2024-05-07 Thread Robert Garrigos
I have this code which uses \after to position dynamic marks in the right place 
where I want them:

\version "2.25.14"
\language "english"

example = \relative c' {
  \clef treble
  \key c \major
  \time 5/4
  {
\after 2\< \after 8*7 \>
\repeat unfold 10 {e16 f} \!|
  }
}

\score {
  \new Staff \example
}

which prints:


Trying it with a two voices fragment, doesn’t work:

\version "2.25.14"
\language "english"

example = \relative c'' {
  \clef treble
  \key f \major
  \time 5/4
<<
\new Voice {
  \voiceOne
  \stemDown 2 \stemNeutral 4 2
}
\new Voice {
  \voiceTwo
  \after 2 \< \after 8*7 \!\> \after 2 \!
  s2 d8(c b2)
}
  >>
}

\score {
  \new Staff \example
}

which prints wrong music:


commenting out the \after line, prints the right music:

\version "2.25.14"
\language "english"

example = \relative c'' {
  \clef treble
  \key f \major
  \time 5/4
<<
\new Voice {
  \voiceOne
  \stemDown 2 \stemNeutral 4 2
}
\new Voice {
  \voiceTwo
  % \after 2 \< \after 8*7 \!\> \after 2 \!
  s2 d8(c b2)
}
  >>
}

\score {
  \new Staff \example
}


How can I have the dynamics in the same place as the first example in the two 
voices fragment?

Thanks.

Robert

Re: slurs problem with voices

2024-05-01 Thread Robert Garrigos
Oh this is a bit embarrassing, such a basic error….. sorry, I never realized 
that the parenthesis needs to be right after the first note.

Thanks all.

Robert

> El 2 maig 2024, a les 2:49, Mark Stephen Mrotek  va 
> escriure:
> 
> Timothy,
>  
> Perhaps this?
>  
> Mark
>  
> \version "2.24.3"
>  
> \relative c' {
> \time 3/4
>  
> <<{b'4 c2~ | 8 [q]} \\
>   {d4 d2 (| \stemUp e4)}>> r8  r  |
>  
> }
>  
> From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org 
>  On Behalf Of Timothy 
> Lanfear
> Sent: Wednesday, May 1, 2024 2:15 PM
> To: Robert Garrigos ; LilyPond Users 
> 
> Subject: Re: slurs problem with voices
>  
> On 01/05/2024 21:57, Robert Garrigos wrote: 
>>  
>> Why is not the first example working? I tried with explicit voicing with the 
>> same results.
>>  
>> Thanks.
>>  
>> Robert
> The slur starts at the d2 so must be placed with that note following the 
> pitch and duration, 
> { d4 d2( | \hideNotes ef8)} 
> -- 
> Timothy Lanfear, Bristol, UK.



slurs problem with voices

2024-05-01 Thread Robert Garrigos
I have this music to engrave, note the slur:



I tried different approaches but cannot get that slur. This is my code, with 
two examples:

\version "2.25.14"
\language "english"

global = {
  \key ef \minor
  \time 3/4
}

first_example = \relative c' {
\clef treble
  \global
  <<
{bf'4 \once \override Tie.staff-position = 5.1 cf2~ | 8 8 r8  r8 }
\\
{ d4 d2 |  \hideNotes (ef8)} % this slur doesn’t get printed
\\
{s4 \once \override NoteColumn.horizontal-shift = #1 f  gf8 af  | s2.}
  >>
}

second_example = \relative c' {
\clef treble
  \global
  <<
{bf'4 \once \override Tie.staff-position = 5.1 cf2~ | 8 8 r8  r8 }
\\
{ d4 (d2 |  \hideNotes ef8)} % this slur does get printed
\\
{s4 \once \override NoteColumn.horizontal-shift = #1 f  gf8 af  | s2.}
  >>
}

\score {
  \new Staff \first_example
}

\score {
  \new Staff \second_example
}


first example prints no slur:



second example prints a slur where it is supposed to be, according the code, 
although it is not what I want:



Why is not the first example working? I tried with explicit voicing with the 
same results.

Thanks.

Robert



Re: Fw: Frescobaldi ... panic alternatives?

2024-04-30 Thread Robert Garrigos
VS Code also provide point and click. Snippets and wizards are tipical features 
for any other programming language in VS Code. It should not be too difficult 
to write them for lilypond.

I understand that it can be difficult to find the developers and mantainers to 
keep Frescobaldi runnig, but not so difficult to implement such features in VS 
Code, I believe. That would be my case, for instamve, and provably other it 
could be the same fornother people: I develope with VS Code and participate in 
other communities and I might help on developing the lilypond plugins, but I 
don't have enough knowledge to develope Frescobaldi.

⁣Robert

On 30 d’abr. de 2024, 8:11, at 8:11, Jean Abou Samra  wrote:
>
>> FYI, what I like the most about Frescobaldi are:
>>
>>  * Templates and wizards
>>  * Snippets
>>  * Point and Click selection
>>  * Syntax highlighting
>>
>> If Frescobaldi for Mac does indeed vanish, what are my alternatives
>for a
>> Lilypond editor?
>
>Syntax highlighting should be doable in Emacs, VS Code or such. Point
>and click
>can be arranged with various PDF viewers (see the LilyPond Usage
>manual).
>The other two only exist in Frescobaldi AFAIK.
>
>> Also, how can I help? (I'm not a programmer at all...) 
>
>
>Thanks, but you cannot really help in a way meaningful for the current
>issues without programming knowledge.
>
>Also, for the record, Frescobaldi needs developers, but perhaps
>even more importantly, it needs maintainers, i.e., people who will
>not just work on a technical problem because they were told
>it's important, but also proactively and autonomously respond
>to GitHub issues and support questions, update the website,
>figure out what parts of the code need regular maintenance like
>lists of LilyPond commands and maintain them, monitor the
>frescobaldi package in major Linux distros, and so on.
>Unfortunately, it can be really hard to find maintainers (even for
>projects that the entire world infrastructure relies on, cf. xz…).
>
>Best,
>Jean


Re: Frescobaldi?

2024-04-29 Thread Robert Garrigos
I cannot use Frescobaldi on Mac Sonoma (not working), so I went for Visual 
Studio Code, with some lilypond plugins, and I have to say that it offers 
everything I need

Robert

> El 28 abr. 2024, a les 13:57, Jean Abou Samra  va 
> escriure:
> 
>> Is Frescobaldi the most common tool on Linux, or what do the majority of 
>> Lilypond users use?
> 
> Frescobaldi is the most common LilyPond editor, on all OSes.
> 
> 




Re: slur cross staves

2024-04-27 Thread Robert Garrigos
Thanks, Knuite, this helped me a lot.

Robert.

> El 27 abr. 2024, a les 1:07, Knute Snortum  va escriure:
> 
> On Fri, Apr 26, 2024 at 2:57 PM Robert Garrigos  <mailto:rob...@garrigos.cat>> wrote:
>> This is the original music to copy:
>> 
>> 
>> 
>> I have this:
>> 
>> <<
>> {
>>   \change Staff = "upper" \set tieWaitForNote = ##t
>>   \grace {cs'4_~ fs_~ cs'~ s4}  1^\fermata
>> }
>> \\
>> {
>>   \set tieWaitForNote = ##t
>>   \grace { fs,,4~^\pp\sustainOn cs'~ as'^~ s4*4}  > as'>1_\fermata
>> }
>>   >>
> 
> Thanks for including some example code, however, what you posted doesn't 
> produce the output you show.  So I went back to my original code.  I put a 
> slur in the upper grace notes, then used the \shape command to manipulate the 
> slur.  I wasn't able to get the end of the slur to go into the lower staff, 
> but it's close.  Maybe someone else can improve on it.
> 
> \version "2.24.3"
> 
> rightHand = \relative {
>   \set tieWaitForNote = ##t
>   \shape #'((-5 . -7.5) (-4 . 0) (0 . 0) (0 . 0)) Slur
>   \grace { c'4~^( g'~ c~) } 1
> }
> 
> leftHand = \relative {
>   \clef bass
>   \set tieWaitForNote = ##t
>   \grace { f,4~ c'~ a'~ s4 * 3 } 1
> }
> 
> \score {
>   \new PianoStaff <<
> \new Staff = "upper" \rightHand
> \new Staff = "lower" \leftHand
>   >>
> }
> 
> 
> --
> Knute Snortum
> 
> 
> 



slur cross staves

2024-04-26 Thread Robert Garrigos
This is the original music to copy:



I have this:

<<
{
  \change Staff = "upper" \set tieWaitForNote = ##t
  \grace {cs'4_~ fs_~ cs'~ s4}  1^\fermata
}
\\
{
  \set tieWaitForNote = ##t
  \grace { fs,,4~^\pp\sustainOn cs'~ as'^~ s4*4}  1_\fermata
}
  >>

Which makes me this:



But I'm still missing the slur from cue low f to high c. Any ideas how to do it?

Thanks.

Robert

Re: explicit arpeggio

2024-04-26 Thread Robert Garrigos
Thanks, Nute. You are right, I should have said what I did. I actually tried 
the link that Robin send: 
https://lilypond.org/doc/v2.25/Documentation/snippets/rhythms_003a-using-ties-with-arpeggios

\set tieWaitForNote = ##t
\grace {fs,,4~^\pp\sustainOn cs'~ as'^~ s4*3}  1

> El 26 abr. 2024, a les 20:05, Knute Snortum  va escriure:
> 
> On Fri, Apr 26, 2024 at 7:07 AM Robert Garrigos  <mailto:rob...@garrigos.cat>> wrote:
>> How about moving the grace notes of the lower staff to the left? I’m trying 
>> with GraceSpacing but cannot make it work just for the lower staff. It is 
>> applied to the Score, not the Staff.
> 
> It's nice to show what you have tried, so people have a starting point on 
> which to proceed.  Here's what I did; there may be other ways to do it:
> 
> \version "2.24.3"
> 
> staffUp = \change Staff = "upper"
> staffDown = \change Staff = "lower"
> 
> rightHand = \relative {
>   \set tieWaitForNote = ##t
>   \grace { c'4~ g'~ c~ } 1
> }
> 
> leftHand = \relative {
>   \clef bass
>   \set tieWaitForNote = ##t
>   \grace { f,4~ c'~ a'~ \staffUp \hideNotes \shiftOff c g' c } 
>   \unHideNotes \staffDown 1
> }
> 
> \score {
>   \new PianoStaff <<
> \new Staff = "upper" \rightHand
> \new Staff = "lower" \leftHand
>   >>
> } 
> 
> 
> --
> Knute Snortum
> 
> 



Re: GraceSpacing on Staff

2024-04-26 Thread Robert Garrigos
Thanks, Leo, this is indeed the easiest solution.

> El 26 abr. 2024, a les 20:08, Knute Snortum  va escriure:
> 
> On Fri, Apr 26, 2024 at 10:02 AM Leo Correia de Verdier 
> mailto:leo.correia.de.verd...@gmail.com>> 
> wrote:
>> s4*3 after the grace notes (within the grace group) in the lower staff.
> 
> This is probably better than what I posted. 
> 
> 
> --
> Knute Snortum
> 
> 



GraceSpacing on Staff

2024-04-26 Thread Robert Garrigos
I have this music to replicate:


I managed to get this:


Still, I need to move the lower grace notes to the left. I can only apply 
GraceSpacing on the whole Score, which doesn’t help. Can I apply it on just one 
Staff?
Also, I need the slur across the Staves but cannot find how to do so.

Thanks.

Robert

Re: explicit arpeggio

2024-04-26 Thread Robert Garrigos
How about moving the grace notes of the lower staff to the left? I’m trying 
with GraceSpacing but cannot make it work just for the lower staff. It is 
applied to the Score, not the Staff.

> El 26 abr. 2024, a les 13:33, Robin Bannister  va escriure:
> 
> Robert Garrigos wrote:
> 
>> I don’t find a way to do this kind of explicit arpeggio (piano):
> 
> This is covered at
> https://lilypond.org/doc/v2.25/Documentation/snippets/rhythms_003a-using-ties-with-arpeggios
> 
> 
> 
> Cheers,
> Robin




Re: explicit arpeggio

2024-04-26 Thread Robert Garrigos
Oh thanks. I knew it was somewhere, but couldn't find it.

⁣Robert

On 26 d’abr. de 2024, 13:33, at 13:33, Robin Bannister  wrote:
>  Robert Garrigos wrote:
>
>>
>> I don’t find a way to do this kind of explicit arpeggio (piano):
>>
>>
>
>This is covered at
>https://lilypond.org/doc/v2.25/Documentation/snippets/rhythms_003a-using-ties-with-arpeggios
>
>
>
>Cheers,
>Robin


explicit arpeggio

2024-04-26 Thread Robert Garrigos
Dear list,

I don’t find a way to do this kind of explicit arpeggio (piano):


Any clues would be much appreciated.

Robert

Re: computer compatible

2024-04-11 Thread Robert Garrigos
True, they took the X out from the system name, but the numbers stay as one 
should expect. 10.14 is not system 14 but 10.

(https://en.wikipedia.org/wiki/MacOS_version_history)

Robert

> El 11 abr. 2024, a les 17:59, Leo Correia de Verdier 
>  va escriure:
> 
> MacOS 14 (Sonoma) is not the same as OSX 14 (Mojave, would be 10.14 in a more 
> straightforward numbering). I don’t know about compatibility, though. 
> 
>> 11 apr. 2024 kl. 16:57 skrev Robert Garrigos :
>> 
>> I’m using it with macosx 14.4.1 since 14.1
>> 
>> Robert
>> 
>>> El 11 abr. 2024, a les 16:28, Lydia Westerberg  va 
>>> escriure:
>>> 
>>> 
>>> Is Lilypond compatible with iMac sonoma 14.2?
>>> Thanks.
>>> Lydia Westerberg
>>> 
>>> 
>>> 
>> 
>> 




Re: computer compatible

2024-04-11 Thread Robert Garrigos
I’m using it with macosx 14.4.1 since 14.1

Robert

> El 11 abr. 2024, a les 16:28, Lydia Westerberg  va 
> escriure:
> 
> 
> Is Lilypond compatible with iMac sonoma 14.2?
> Thanks.
> Lydia Westerberg
> 
> 
> 




Re: LilyPond 2.25.14

2024-03-24 Thread Robert Garrigos
I did convert this Carver Mass to 2.25.13 and created the pdf with no error but 
the following warning:

the property 'extra-X-extent' does not exist (perhaps a typing error)

and

warning: The MIDI channel is tuned around
warning: module 16 will be remapped
(actually, I got these last messages in Catalan. Translated with Google. The 
actual message in English might vary)

I used a MacBook Pro, with Visual Studio Code and the new code compiled for 
ARM. It just took a few seconds. Great!!


> El 23 març 2024, a les 17:55, Karlin High  va escriure:
> 
> On 3/23/2024 11:39 AM, Robin Bannister wrote:
>> I have nothing large.
> 
> The attached zip folder is what I used in the previous post. It was derived 
> from a post by Vaughan McAlley in 2016, updated via convert-ly to the version 
> in question here.
> 
> It looks like back in 2016, on the same computer I now have, LilyPond 2.19.46 
> was taking 1 min 4 seconds for it.
> 
> Congrats on the speed-up, developers!
> -- 
> Karlin High
> Missouri, USA
> 



Re: Lilypond and digital readers

2024-02-29 Thread Robert Garrigos
Thanks, Laurie. I never thought of having an adapted PDF for my reader (a 
remarkable), but based on your example, here it is what I’m doing right now. 
This is a different approach because I want to have also a normal PDF for 
printing, I have two book entries on my lilypond file, something like this:


%
%% REMARKABLE %%%
%

\book {
 \bookOutputSuffix "remarkable"
 \header {
   % titles
 }
 \score {
 % music score
   \layout {
 % layout settings
   }
 }

 \paper {
   #(set-paper-size '(cons (* 155 mm) (* 210 mm)))
   indent = 0\mm
   top-margin = #10
   bottom-margin = #0
   left-margin = #0
   right-margin = #0
   % other size settings
 }
}

%%%
% PDF %%%
%%%

\book {
 \header {
  % titles
 }
 \score {
   % music
   \layout {
 % layout settings
   }
 }
 \paper {
   set-paper-size = "a4"
   top-margin = 10
   left-margin = 15
   indent = 10
   % other size settings
 }
}

Of course, I use variables to add the music to the \score scope, so I don’t 
have to make changes in both books. 

Hope I might help someone.

Robert Garrigos

> El 24 febr. 2024, a les 1:51, Laurie Savage  va 
> escriure:
> 
> Hi,
> 
> I use a tablet for storing my lead sheets, most of which I prepare in 
> Lilypond. I have just stumbled on a trick I thought I'd share with you - 
> although it might be obvious to you, it wasn't to me. (Tip to Jamie Anderson 
> of the Get your sax together Youtube channel)
> 
> I use a Samsung Galaxy Tab A 10.1 and Mobile Sheets Pro. I use a paper block 
> that I store as "tabA" in an include file called "digital.ily"
> It looks like this:
> 
> tabA = \paper {
> %set the paper size to the screen dimensions 
> #(set-paper-size '(cons (* 13.5 cm) (* 21.7 cm)))
> 
> % Adjust according to taste   
> indent = 0\mm
> top-margin = #0
> bottom-margin = #0
> left-margin = #0
> right-margin = #0
> }
> 
> voila, combined with a sensible staff size I have a legible score that I 
> don't need reading glasses for.
> 
> Laurie Savage




small notes for different lyrics

2024-02-01 Thread Robert Garrigos
How do you do this?:


This is, adding smalls notes or different rhythms for different lyrics. Just 
add a second voice and change the note’s sizes? Or is it there a proper way to 
do so?

Thanks!

Robert

broken bar line across staff

2024-01-31 Thread Robert Garrigos
Hi all,

My first post in this list.

Is there a way to accomplish this?


the bar line across the staff is broken to enable the text to be more visible

Thanks

Robert