[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Invisible notes changing how width a staff is printed
From: |
Klaus Ethgen |
Subject: |
Invisible notes changing how width a staff is printed |
Date: |
Mon, 28 Jan 2019 16:53:55 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
Currently I have the problem that I set a partitur with guitar cords
only visible as ChordNames and FretBoards. I use `\set chordChanges =
##t` to only set the name and fret board when the cord changes.
For the begin I use the full takt size as note size (in 2/4 = half
notes). That was looking good but then I changed the cords to encode the
takt I use with the guitar. (e2:m -> e4:m e8:m e:m) to have the correct
voice in MIDI.
Unfortunately, after that the staffs are broken into more lines than
possible.
Any help is appreciated.
Here is the relevant snippet:
\version "2.18.2"
\language "deutsch"
\include "predefined-guitar-fretboards.ly"
\header
{
title = "Roter Mond"
}
global =
{
\key c \major
\time 2/4
%\accidentalStyle Score.teaching
}
chordNamesChords = \chordmode
{
\global
\germanChords
\set chordChanges = ##t
e4:m e8:m e:m | e4:m e8:m e:m | d4 d8 d | d4 d8 d | e4:m e8:m e:m | e4:m
e8:m e:m | d4 d8 d | d4 d8 d |
\repeat volta 2
{
g4 g8 g8 | g4 g8 g8 | d4 d8 d | d4 d8 d | c4 c8 c | c4 c8 c | e4:m
e8:m e:m | e4:m e8:m e:m |
}
}
classicalGuitar = \transpose a e \relative a
{
\global
%\accidentalStyle Staff.teaching
\easyHeadsOn
a4 a | a2~ | a4 h8 c | h a g4 | a a a2~ | a4 h8 c | h a g4\break
\repeat volta 2 { e'4 e | e2~ | e4 d8 e | d4. c8 | d4 d8 c | d4~ d8 c |
a4 a8 g | a2 }
}
tenorSax = \transpose b, c' \transpose a e \relative a
{
\global
\easyHeadsOn
\transposition b,
a4 a | a2~ | a4 h8 c | h a g4 | a a a2~ | a4 h8 c | h a g4\break
\repeat volta 2 { e'4 e | e2~ | e4 d8 e | d4. c8 | d4 d8 c | d4~ d8 c |
a4 a8 g | a2 }
}
verseOne = \lyricmode
{
\set stanza = "1."
Ro -- ter Mond ü -- berm Sil -- ber -- see, Feu -- er -- glut wärmt den
kal -- ten Tee.
\set stanza = "1."
Kie -- fern -- wald in der Nacht und noch ist der neu -- e Tag nicht er
-- wacht.
}
[...]
chordsPart =
<<
\new ChordNames \chordNamesChords
\new FretBoards \chordNamesChords
>>
classicalGuitarPart = \new StaffGroup \with
{
\consists "Instrument_name_engraver"
instrumentName = "Git."
}
<<
\new Staff \with { midiInstrument = "acoustic guitar (nylon)" }
{
\clef "treble_8"
\new Voice = "noten"
{
\classicalGuitar
}
}
\new TabStaff \with { stringTunings = #guitar-tuning }
\classicalGuitar
>>
tenorSaxPart = \new Staff \with
{
instrumentName = "Tenorsax"
midiInstrument = "tenor sax"
}
\tenorSax
[...]
\score
{
<<
\chordsPart
\classicalGuitarPart
\tenorSaxPart
\leadSheetPart
>>
\layout
{
indent = 13\mm
}
\midi
{
\tempo 4=130
}
}
Any Idea, what I can do to just ignore the invisible cords in
calculation?
Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <address@hidden>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1
iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxPJY0ACgkQpnwKsYAZ
9qzauQv/WbdfNI2IjP6UvHDU5+jU6wsaOUtfjdelJO7QAUKfV6Dud1rzxzi0CYSw
4WBtDzNkIz+uBBl4PzfoSOri9SJ8Bk/W/teQl4o2mCe9Cb0O+WJe95iNiHlpHdp2
VVi3yDJszRq0pAfsRbdukBG3Ab5Yr6H+QzHvDLfXTfs74dS3QJXBDM1Sqkg55Vp6
UNtRRkEB76T4wGnkcXHhpmhuj9SO7IQ8D78EnrFLSWlyYC7L1s2BBq5Ptk7HrKYP
KaT/Vv4yTuKGQ5E0FJ413XMDEsrVQSpOFZ55cL9x2OTXCaUYv2w3Fzj2fcI2v4k3
urrJzsoaSw+e+5M5LHdHYi9flAwpkv/MFMteSeSL5vsfu4/o1RoiY/iEYvxRyEKI
AAtgZCnmtmC+GxMGGwKv8Rc1dxyGKgUDfpmDxES/bcT+6kBtumX1YUsqhaoQRfFB
zgsyrajVPqBUWd59XbyI1X7fmkJjVcdrLysp4wniJ1bR3rpk8DWsYHPmVgd/ANu1
ck7164jB
=Z36C
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Invisible notes changing how width a staff is printed,
Klaus Ethgen <=