[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Book
From: |
Mark Probert |
Subject: |
Re: Book |
Date: |
Wed, 22 Sep 2021 09:18:46 +1000 |
Carlos wrote:
>
> How one goes about setting up a book:
>
> 1. Files are independent would like to use include.
> 2. I want their title and the author to show.
> 3. Copyright in the bottoms.
>
I recently did this exact thing for a jazz realbook.
My setup is:
[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
>>
}
impressions-hdr = \header {
title = "Impressions"
composer = "John Coltrane"
subtitle = \markup { \fontsize #-2 { "Aebersold 54.02" }}
poet = \markup { \fontsize #-2 { "5 choruses" }}
tagline = #awpTag
}
[3] Copyright is handled by using another include with the
tagline set to:
awpTag = \markup {
\teeny { ancient wing press music ©right; 2021}
}
The main book is then made from a separate file--Music.ly, let's
say--that basically looks like this:
---
\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
---
Each tune gets its own \bookpart and an ToC entry in a standard form.
Keep adding until done. I automate the lot with a Rakefile to create a
PDF (a set acutally, but that is another story), and can adjust the
size of individual pages to fit (I need them to sit well on 1 or 2
pages, maybe not what you need, but simply adjust the staff-size in the
bookpart).
Hope this helps
.. mark.
- Book, Carlos Martinez, 2021/09/21
- Re: Book,
Mark Probert <=
- Re: Book, Carlos Martinez, 2021/09/22
- Re: Book, Mark Probert, 2021/09/22