Re: lilypond book

2021-09-21 Thread Richard Chonak
If you're familiar with LaTeX, you can create a document that invokes 
Lilypond scores:


main.lytex:

\documentclass[12pt]{book}
\usepackage[paperheight=10in,paperwidth=7in,margin=0.5in,twoside]{geometry} 


\usepackage[latin,main=english]{babel}
\usepackage{fontspec}
\usepackage{fancyhdr}
\pagestyle{empty}

\lilypondfile[noindent,staffsize=18,line-width=6\in]{Score1.ly}
\newpage
\lilypondfile[noindent,staffsize=18,line-width=6\in]{Score2.ly}



and process it with the command:

lilypond-book main.lytex




Re: multiple chords for one note's duration

2020-03-01 Thread Richard Chonak

This produces output that looks like the desired pattern.

--RC


---start example---

\version "2.19.82"
#(set-default-paper-size "a5")

chordInfo = \chordmode {
  c2 g2*3  % we could write "c2 g2 g1", if it's OK for the G chord name 
to be repeated

}

melodyInfo = \relative c'' {
  g1 ~ g
}

\score {
  <<
 \new ChordNames {\chordInfo}
 \new Staff {
    \melodyInfo
    \bar ".|"
 }
  >>
  \layout {}
}

---end example---

On 3/2/2020 5:50 AM, Bric wrote:

Is there any way to typeset two or more chords over, say, a whole note (the 
note spans a whole 4/4 measure, but one chord is positioned at the beginning of 
the measure, and another, say, half-way)

illustrating attached




Re: Helpless with system spacing

2020-03-01 Thread Richard Chonak

Often there's more than one way to get a nice result.

The \paper variables "page-count" and "systems-per-page" let you deal 
with spacing at a high level, instead of fine-tuning the vertical 
spacing variables like "system-system-spacing".


--Richard


---begin example---

\version "2.19.82"
#(set-default-paper-size "a5")  % I set a small paper size for this example

\paper {
   page-count = #2
   systems-per-page = #4
}

myNotes = \relative c' {
  c4\< c\> d\ff d
  e c\mark \default d2
}

myLyrics = \lyricmode {
  some word to the me -- lo -- dy
}

\score {
  <<
  \new Staff {
    \new Voice = "melody" {
  \myNotes
  \myNotes
  \myNotes
  \myNotes
  \myNotes
  \myNotes
  \myNotes
  \bar "|."
    }
  }
  \new Lyrics \lyricsto "melody" {
    \myLyrics
    \myLyrics
    \myLyrics
    \myLyrics
    \myLyrics
    \myLyrics
    \myLyrics
  }
  >>
}

---end example






Re: Tidying Score

2017-11-17 Thread Richard Chonak
The first line is indented because of the default indent setting.  You can
control this in the \layout block.  For example:

\layout  {
   indent = 1\cm
}

If you specify a zero, then omit the units and enter simply:  "indent = 0".

If you have two \score objects in a single .ly file, each one has its own
\layout specification.

--RC



On Fri, Nov 17, 2017 at 2:01 PM, Vivyan 
wrote:

> I'm just starting writing music using lilypond. Im getting this problem
> where
> my staves arn't lining up how can I fix this?
>  Shot_2017-11-17_at_19.png>
>
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat starting in partial measure

2017-07-13 Thread Richard Chonak



On 07/13/2017 08:35 PM, Thomas Morley wrote:


You need to insert a bar-line-type which sets "" at line end and the
usual repeat-start at line-begin, i.e. ".|:"
Such a bar-line-type does not exist yet.

But search the NR for:
[...]
\defineBarline for the method how to define custom-bar.lines



Thank you! This solved my problem.
I really have to learn more about features added in recent versions!
--Richard


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


Repeat starting in partial measure

2017-07-13 Thread Richard Chonak

Dear fellow users,

Can someone advise me on how a repeat-sign behaves in the middle of a 
measure?


Reducing my score to a small example, here are two lines:

 cis8\mark | cis'4 b8 a4 b8 | gis4 e8 fis4 \bar "" \break
 \repeat volta 2 { gis8 | cis4. fis,4. | fis8 e b cis4 } \break

I'd like the first system to break within a measure, and end with no 
barline.


The volta in the second system starts with a partial measure, and of 
course I'd like a repeat-sign there, but it's not appearing.


(I'll try to insert an image here to illustrate the output: hope it 
comes through.)





If I add the repeat sign expressly, it does appear in the output:

 cis8\mark | cis'4 b8 a4 b8 | gis4 e8 fis4 \bar "" \break
 \bar ".|:"
 \repeat volta 2 { gis8 | cis4. fis,4. | fis8 e b cis4 }

but an unwanted barline is added to the end of line 1.

Do I need to add some Scheme code to modify the behavior of the 
repeat-sign?


Thanks for any advice you can offer!

Richard



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