Spacing between Lyrics and Chordnames

2022-07-25 Thread Randy Josleyn
Hi everyone!

I'm trying to increase the spacing between the bottom line of lyrics and
the ChordNames in the next system.

My score looks like the MWE below. I played with example below and even
without the ChordNames, the override doesn't behave as I expected it would.
I checked the IR and it says nonstaff-unrelatedstaff-spacing.padding is
set, so I assumed changing it would change the distance.

I also tried setting the same setting on ChordNames, but it similarly had
no effect on the spacing.

%%% MWE 
\version "2.23.8"

\score {
<<
%\new ChordNames { \repeat unfold 4 { c1 c f g } }
\new Staff { \new Voice = "vox" \repeat unfold 16 { c'2 e'4 g' } }
\new Lyrics = A \lyricsto "vox" { \lyricmode { Line __ _ _ _  one,
_ _ _  line one! } }
%\new Lyrics = B \lyricsto "vox" { \lyricmode { Line __ _ _ _  two,
_ _ _  line two! } }
%\new Lyrics = C \lyricsto "vox" { \lyricmode { Line __ _ _ _
 three, _ _ _  line three! } }
%\new Lyrics = D \lyricsto "vox" { \lyricmode { Line __ _ _ _
 four, _ _ _  line four! } }
>>
\layout {
\context {
\Lyrics
\override VerticalAxisGroup.
  nonstaff-relatedstaff-spacing.padding = #5
\override VerticalAxisGroup.
  nonstaff-unrelatedstaff-spacing.padding = #5
}
}
}
%% END MWE %%
[image: image.png]

Can anyone make any suggestions to help me increase the space from the
bottom of the lyrics of one system and the top of the next system?

Thanks!

Regards,


Randy


Re: adding chordmode chord modifiers

2020-09-07 Thread Randy Josleyn
>
> -- Forwarded message --
> From: Thomas Morley 
> To: Randy Josleyn 
> Cc: lilypond-user 
> Bcc:
> Date: Mon, 7 Sep 2020 21:47:55 +0200
> Subject: Re: adding chordmode chord modifiers
> Am Mo., 7. Sept. 2020 um 18:32 Uhr schrieb Randy Josleyn
> :
> >
> > Hi list,
> >
> > Using my extremely limited general programming knowledge, I found in the
> scheme file chord-entry.scm that the chord modifiers m, maj, sus, and so on
> are defined. Is it possible to add to this list? I want to write "add9"
> chords like `c:add9`, which would be equivalent to writing `` or
> `c:3.5.9` in chordmode (plus the chord exceptions snippet in the NM to add
> the "add"). However, the latter methods are too verbose for me.
> >
> > My use case is for printing chord symbols above the staff in a lead
> sheet.
> >
> > I checked the snippets repository for "chord modifier", "chord*", and
> "add9",  but I didn't see anything relevant.
> >
> > Is there a way to create the "c:add9" syntax to get "Cadd9" to print as
> a chord symbol? Any help would be appreciated!
> >
> > Regards,
> >
> >
> > Randy
>
> Speaking only for me I'd be fine with:
>
> mus = \chordmode {
>   \set additionalPitchPrefix = "add"
>   c:3.5.9
> }
>
> <<
>   \new ChordNames \mus
>   \new Staff \mus
> >>
>
> But of course you can go for c:add9, see p.e. Aaron's reply.
>
> My own take is a little different.
> It's restricted to "add9", which will _remove_ a 7th pitch-step and no
> need for chord-exceptions
>
> %% c/p from chord-ignatzek-names.scm
> #(define (pitch-step p)
>   "Musicological notation for an interval.  Eg. C to D is 2."
>   (+ 1 (ly:pitch-steps p)))
>
> %% c/p from chord-ignatzek-names.scm
> #(define (remove-step x ps)
>   "Copy PS, but leave out the Xth step."
>   (if (null? ps)
>   '()
>   (let* ((t (remove-step x (cdr ps
> (if (= (- x 1) (ly:pitch-steps (car ps)))
> t
> (cons (car ps) t)
>
> %% proc to _remove_ 7
> #(define (add9-modifier pitches)
>   (remove-step (pitch-step (ly:make-pitch 0 6 0)) pitches))
>
> %% let lily know about it
> chordmodifiers = #(cons (cons 'add  add9-modifier)
> default-chord-modifier-list)
>
> mus = \chordmode {
>   \set additionalPitchPrefix = "add"
>   c:3.5.9
>   c:add9
> }
>
> <<
>   \new ChordNames \mus
>   \new Staff \mus
> >>
>
> Cheers,
>   Harm
>

Thank you so much Harm and Aaron for your code and suggestions. I'll give
them a try and see how it goes. These code examples are informative to me —
I do appreciate them!

(By the way, I switched to a daily digest for lilypond-user emails and I'm
not sure about how replies work from them. I've made mistakes with how
replies to a list work before, so I apologize if I've done it again.)

Randy


adding chordmode chord modifiers

2020-09-07 Thread Randy Josleyn
Hi list,

Using my extremely limited general programming knowledge, I found in the
scheme file chord-entry.scm that the chord modifiers m, maj, sus, and so on
are defined. Is it possible to add to this list? I want to write "add9"
chords like `c:add9`, which would be equivalent to writing `` or
`c:3.5.9` in chordmode (plus the chord exceptions snippet in the NM to add
the "add"). However, the latter methods are too verbose for me.

My use case is for printing chord symbols above the staff in a lead sheet.

I checked the snippets repository for "chord modifier", "chord*", and
"add9",  but I didn't see anything relevant.

Is there a way to create the "c:add9" syntax to get "Cadd9" to print as a
chord symbol? Any help would be appreciated!

Regards,


Randy


Re: Your Bespoke Lilypond Environment

2020-04-07 Thread Randy Josleyn
Here's something I cooked up that works for me, though I'm not an avid user:

* vis text editor
* abduco + dvtm for arranging terminal windows and attach/detach
* entr for watching files [2]
* redo for building PDFs [1]
* mupdf
* —and dwm on Arch Linux for tiling all my windows

Probably not the most efficient, but mupdf reloads the document on HUP signal, 
so I put that in my build script to see the result whenever I save.

I use a similar setup for pretty much everything else (finances, web dev, even 
at my job as a teacher).

[1]: http://news.dieweltistgarnichtso.net/bin/redo-sh.html
[2]: https://github.com/eradman/entr

(No pun intended)

On April 8, 2020 12:49:45 AM GMT+08:00, cgilmore  wrote:
>Greetings, all!
>
>I was curious what everyone's setup is like for writing Lilypond,
>specifically, for any non-Frescobaldi users. We all know Frescobaldi is
>great and probably the most ideal environment for Lilypond, but I'm
>personally curious what other people are using and how they're using
>it—mostly looking for inspiration from others.
>
>I keep ebbing in and out of Lilypond usage, so I by no means have any
>kind
>of hardcore environment setup. I use Neo-Vim for text editing, a simple
>JavaScript Node script that watches my .ly files and recompiles them
>when I
>save changes, and use the stock macOS Preview app to view the PDF (the
>weakest link, as a far as I'm concerned). Oh, and I guess I also will
>have a
>Safari window open to the documentation. 
>
>Other than the vim usage, there's a lot I don't like about my setup,
>personally, and it keeps changing every time I jump back into writing.
>
>What's your DX?
>
>
>
>--
>Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: chordChanges = ##t in an include file

2020-04-04 Thread Randy Josleyn
Hi Lukas, indeed that's the solution. I knew it had to be something simple. 
Thank you!

Randy

On April 4, 2020 6:25:06 PM GMT+08:00, Lukas-Fabian Moser  wrote:
>Hi Randy,
>
>I'm trying to figure out how to set chordChanges to true in an include 
>file, like so:
>> % def.ily %
>> \version "2.20.0"
>> \layout {
>> \context {
>> \ChordNames
>> \set chordChanges = ##t
>> }
>> }
>
>\set is only needed outside of a \layout { \context { ... } } 
>construction. Try:
>
>\layout {
>   \context {
>     \ChordNames
>     chordChanges = ##t
>   }
>}
>
>Best
>Lukas

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

chordChanges = ##t in an include file

2020-04-04 Thread Randy Josleyn
Hi list!

I'm trying to figure out how to set chordChanges to true in an include file, 
like so:

% def.ily %
\version "2.20.0"
\layout {
  \context {
\ChordNames
\set chordChanges = ##t
  }
}
%%

% score.ly %
\version "2.20.0"
\include "def.ily"
\score {
  <<
\new ChordNames = "chords" {
  \chordmode {
c1 | c | f | c |
  }
}
  >>
}
%%%

This returns an error: "unexpected \set". If I move the \context out of a 
layout block, then it adds extra space above the "chords" staff, but doesn't 
solve the problem.

My goal's to create a sort of "stylesheet" as mentioned in the Learning Manual. 
I know I could write `c1 | s1 | f | c` or just write it in every score, but I 
guess I want to be lazy.

Any pointers would be greatly appreciated. Thanks!

Regards,

Randy
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Guitar string bends

2019-09-05 Thread Randy Josleyn


On September 3, 2019 10:36:33 PM GMT+08:00, Aaron Hill 
 wrote: 
>When replying to an email, clients are expected to insert the 
>"In-Reply-To" header.  This entry makes it possible for other clients
>to 
>keep track of threads of discussion even when the subject line might 
>change.

I had no idea about this, although I guess I'm not surprised that's how it 
works. Thanks for explaining it!

Randy
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Guitar string bends

2019-09-03 Thread Randy Josleyn
Hi all,

(Sorry for the duplicate, I didn't know how I replied created issues for 
others.)

What's the state of Lilypond's support for notating bends in guitar music? I've 
read ["The Story of 'String Bending' in Lilypond"][1] on the Lilypond blog, and 
that seemed promising, but it seems work on the new bend engraver has stopped.

I'm interested specifically in the angled lines that indicate bends in the 
regular staff, more or less like what is shown in the attached PDF (from [issue 
1196][2] mentioned in the blog post). 

If it's not there yet, I can always use some other notation to indicate 
bending---after all, I'm only using Lilypond to do some transcriptions and lead 
sheets for myself---but it would be a good feature. To me, it's also probably 
the only significant shortcoming of Lilypond.

Hoping for good news! If there's anything I can do to help, I'll do what I can, 
although my coding skills are kinda basic.

Regards,

Randy

[1]: http://lilypondblog.org/2017/03/the-story-of-string-bending-in-lilypond/
[2]: https://sourceforge.net/p/testlilyissues/issues/1196/
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

guitar-tab_1.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Guitar string bending

2019-09-03 Thread Randy Josleyn
Hi all,

What's the state of Lilypond's support for notating bends in guitar music? I've 
read ["The Story of 'String Bending' in Lilypond"][1] on the Lilypond blog, and 
that seemed promising, but it seems work on the new bend engraver has stopped.

I'm interested specifically in the angled lines that indicate bends in the 
regular staff, more or less like what is shown in the attached PDF (from [issue 
1196][2] mentioned in the blog post). 

If it's not there yet, I can always use some other notation to indicate 
bending---after all, I'm only using Lilypond to do some transcriptions and lead 
sheets for myself---but it would be a good feature. To me, it's also probably 
the only significant shortcoming of Lilypond.

Hoping for good news! If there's anything I can do to help, I'll do what I can, 
although my coding skills are kinda basic.

Regards,

Randy

[1]: http://lilypondblog.org/2017/03/the-story-of-string-bending-in-lilypond/
[2]: https://sourceforge.net/p/testlilyissues/issues/1196/

guitar-tab_1.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user