lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Piano_Tab Notation; questions ;-)


From: Paul Morris
Subject: Re: Piano_Tab Notation; questions ;-)
Date: Fri, 11 Mar 2016 15:40:30 -0500

Hi Philip,

Glad you found the information on the MNP site helpful.  I’ve been down many of 
these paths in order to get LilyPond to support Clairnote music notation 
(http://clairnote.org).  (At some point you might want to look at my 
clairnote-code.ly file (http://clairnote.org/software/).)

More below...

> On Mar 10, 2016, at 4:12 PM, Philip Bergwerf <address@hidden> wrote:
> 
> 1. how can i place the rests in a custom default position? When writing low
> on a staff i want a rest also low on the staff. and i think it would be more
> clear if rests from voice two are always placed down and for voice one up.
> How to do this?

See the attached .ly file with some old code that shows a way to do this.  
You’ll need to get fairly fluent in scheme to do everything that you'll want to 
do.

> 2. I made this custom staff using
> %begin
> \override Staff.StaffSymbol #'line-positions = #'(enter line positions)
> %end
> .
> Sometimes the note is not fitting on the staff so i have to change the key
> or make some extra lines. (look at bar 79) I did this by the following code:
> %begin
> \stopStaff \override Staff.StaffSymbol #'line-positions = #'(21 19 16 14 12
> 9 7 4 2 0 -2.8 -3 -3.2 -4.8 -5 -5.2 -8 -10 -12 -15 -17 -20 -22 -24 -27 -29
> -32 -34 -36) \startStaff
> %end
> This is a lot of text. Is there a way to increase text when changing the
> number of stafflines? 

You can store it all in a variable and then just use that.

%%%%%%%%%%%

\version "2.19.36"

myLinePositions = {
  \stopStaff 
  \override Staff.StaffSymbol #'line-positions = #'(21 19 16 14 12
9 7 4 2 0 -2.8 -3 -3.2 -4.8 -5 -5.2 -8 -10 -12 -15 -17 -20 -22 -24 -27 -29
-32 -34 -36) 
  \startStaff
}

{ 
  c d e f 
  \myLinePositions
  c d e f
}

%%%%%%%%%%%



> 3. Is it possible to make you own for example \pianotabStaff?

Search the LSR for "Defining a Custom Staff Context"
http://lsr.di.unimi.it/LSR/Search

HTH,
-Paul


Attachment: rests-vertical-position.ly
Description: Binary data




reply via email to

[Prev in Thread] Current Thread [Next in Thread]