[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Book
From: |
Knute Snortum |
Subject: |
Re: Book |
Date: |
Tue, 21 Sep 2021 17:20:58 -0700 |
On Tue, Sep 21, 2021 at 4:19 PM Mark Probert <mark@archsys.net> wrote:
> [1] All the music goes into tune.ily files, for example
> the tune "Impressions" would be in the "impressions.ily"
> file. There are two sections to this file: one where the
> the music is created; and the other for control info, basically
> the header, which contains title, composer, etc.
>
> So something like:
>
> impressions-tune = {
> <<
> \new ChordNames \harmony
> \new Staff \melody
> >>
...
> \version "2.20"
> #(set-global-staff-size 30) % change the staff size here
>
> %%% -----
> %%% tunes
> %%% -----
> \include "impressions.ily"
>
> impressions = \bookpart {
> \tocItem \markup "Impressions"
> \impressions-hdr
> \score {
> \impressions-tune
> \layout {
> indent = 0\cm
> }
> }
> }
>
> %% -----
> %% Construct the book
> %%
> \header { tagline = ##f }
> \paper {
> tocTitleMarkup = \markup \huge \column {
> \fill-line { \null "Table of Contents" \key \null }
> \null
> }
> tocItemMarkup = \tocItemWithDotsMarkup
> }
>
> \markuplist \table-of-contents
> \pageBreak
>
> \impressions
Mark, this looks close to something I'm doing (but better!) I have a
question, though. You have the file impressions.ily and in that an
impressions-tune variable and in that references to \harmony and
\melody variables. How do you keep the harmony and melody variables
from clashing with those in other .ily files? I use a naming
convention, but this gets convoluted sometimes.
--
Knute Snortum
- Book, Carlos Martinez, 2021/09/21
- Re: Book, Mark Probert, 2021/09/21
- Re: Book,
Knute Snortum <=
- Re: Book, Carlos Martinez, 2021/09/22
- Re: Book, Mark Probert, 2021/09/22