Re: more succinct code

2015-01-13 Thread Thomas Morley
2015-01-13 23:59 GMT+01:00 Craig Dabelstein craig.dabelst...@gmail.com: Good morning List, Sorry if this is a simple question, but I was wondering if the following code cand be made shorter by putting these elements of code somewhere that can be shared by all staves. \consists

Re: Attaching an alist to a grob

2015-01-13 Thread Paul Morris
Urs Liska wrote Now I've checked - it's perfect. Thank you again! There is no alist? predicate, but it's very easy to define: #(define (alist? lst) (and (list? lst) (every pair? lst))) Glad to help and glad someone else is benefiting from this. (On a related note, I also

Re: more succinct code

2015-01-13 Thread Craig Dabelstein
My saviour! Thanks for your help. I now have my layout block looking like this (below), but I was wondering if there is a way to incorporate this code into the layout block as well: \markLengthOn \compressFullBarRests % rehearsal letters \set Score.markFormatter = #format-mark-box-alphabet

Re: instrumentSwitch and addInstrumentDefinition use

2015-01-13 Thread Flaming Hakama by Elaine
From: Kieren MacMillan kieren_macmil...@sympatico.ca To: Keith OHara k-ohara5...@oco.net Cc: Lilypond-User Mailing List lilypond-user@gnu.org Subject: Re: instrumentSwitch and addInstrumentDefinition use Hi Keith, I understand that in realistic cases you probably have the notes in one

Re: Adjusting the position of tempo indications

2015-01-13 Thread David Sumbler
From: Dominic dominicirv...@gmail.com To: lilypond-user@gnu.org Subject: Re: Adjusting the position of tempo indications Date: Mon, 12 Jan 2015 15:26:56 -0700 (MST) You probably need to adjust MetronomeMark.padding in the score context rather than TextScript.padding in the Staff context,

Page Headers

2015-01-13 Thread Chris Trahan
I would like to put the title of a score as a page header starting on page 2. This would be on the same line as the page number and could be on the opposite side from the page number or centered on the page. I can't find out how to do this. I've searched the learning, notation, snippets, etc. I

Attaching an alist to a grob

2015-01-13 Thread Urs Liska
Hi list, I'm working on a music function/engraver combination. The music function has to attach information to a grob to pass it on to the engraver. I found that an alist is the appropriate data type for the information, so I need a way to attach an alist to a grob in a music function. I

Re: Tablature for Pedal Steel Guitar - 'text' in tab

2015-01-13 Thread and...@andis59.se
On 2015-01-12 21:54, and...@andis59.se wrote: I want to write some music for Pedal Steel Guitar. Most player are using tablature so I want to use it also. One of my problems is that the Pedel Steel Guitar has pedals! They re-tune one or more strings when pressed. Thank you both Pierre and

Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se
I have one more problem with creating tablature for Pedal Steel Guitar. That is one of conventions. Pedal Steel Guitarist are used to have the tab not between the lines not (as the rest of the world) on the lines. See psg-tab2.png The reason if of cause that is easier to read the letter when

Re: instrumentSwitch and addInstrumentDefinition use

2015-01-13 Thread Urs Liska
Am 12.01.2015 um 13:29 schrieb Kieren MacMillan: Do you use the \quoteDuring mechanism (as below) or Jan-Peter's auto-transposing engraver to generate the engraved pitches for each instrument? Neither. I simply use \transpose. (I was planning to look at Jan-Peter’s engraver, but haven’t yet

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread Pierre Perol-Schneider
How about : \version 2.19.11 \header { title=Pedal Steel Guitar - E9th } PSGE-tuning = \stringTuning c,,,% this tune's only to show one more string b, d e fis gis b e' gis' dis' fis' Notes = \transpose c c' { e a cis'2 e'4} psgNotes = { %%\set TabStaff.minimumFret = #8 \set

Re: Attaching an alist to a grob

2015-01-13 Thread Paul Morris
Urs Liska wrote So does anyone have an idea how I can attach an alist to a grob so that an engraver can retrieve it? Is it for example possible to add an arbitrary property to a grob? Hi Urs, I've had good luck creating custom grob properties, which sounds like what you're looking for.

Re: Attaching an alist to a grob

2015-01-13 Thread Paul Morris
Paul Morris wrote %% I use cn- to keep my functions separate from standard %% LilyPond functions (like a poor man's namespace). Well, I should have said functions, custom property names, etc. separate... -Paul -- View this message in context:

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se
On 2015-01-13 20:17, Pierre Perol-Schneider wrote: How about : Snip (Brilliant code!) That will work perfectly! Thank you very much! // Anders -- English isn't my first language. So any error or strangeness is due to the translation. Please correct my English so that I may become better.

Re: Page Headers

2015-01-13 Thread tisimst
Chris Trahan wrote I would like to put the title of a score as a page header starting on page 2. This would be on the same line as the page number and could be on the opposite side from the page number or centered on the page. I can't find out how to do this. I've searched the learning,

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se
On 2015-01-13 20:17, Pierre Perol-Schneider wrote: How about : \version 2.19.11 \header { title=Pedal Steel Guitar - E9th } PSGE-tuning = \stringTuning c,,,% this tune's only to show one more string b, d e fis gis b e' gis' dis' fis' Notes = \transpose c c' { e a cis'2 e'4}

Re: Demo: Score and parts template

2015-01-13 Thread Johan Vromans
On Sat, 10 Jan 2015 11:12:26 +0800 James Harkins jamshar...@qq.com wrote: % Just the notes -- no need to copy anything from global In fact, this is separation of content and structure. It works for many structure-related items but unfortunately not for repeats. For example, in the following

Re: instrumentSwitch and addInstrumentDefinition use

2015-01-13 Thread Kieren MacMillan
Hi Keith, I understand that in realistic cases you probably have the notes in one variable and options for arrangements in another parallel sequence flute_notes = {c'2 c'' } arrangementB = {s1*4 \prep_alto_flute s1*4 \switch_alto_flute s1*8 } and it is not so convenient to break

Re: Tablature for Pedal Steel Guitar - 'text' in tab

2015-01-13 Thread Pierre Perol-Schneider
Or even easier this way : \version 2.19.11 \header { title=Pedal Steel Guitar - E9th } PSGE-tuning = \stringTuning b, d e fis gis b e' gis' dis' fis' Notes = { e' a' cis''2 e''4} psgNotes = { %%\set TabStaff.minimumFret = #8 \set TabStaff.restrainOpenStrings = ##t %%\override

Re: Tablature for Pedal Steel Guitar - 'text' in tab

2015-01-13 Thread Simon Bailey
Anders, try this snippet: %% SNIP HERE %% \version 2.19.11 \header { title=Pedal Steel Guitar - E9th } noPed = \set fretLabels = #'(0 1 2 3 4 5 6 7 8 9 10 11 12 ) FPed = \set fretLabels = #'(0F 1F 2F 3F 4F 5F 6F 7F 8F 9F 10F 11F 12F ) APed = \set fretLabels = #'(0A 1A 2A 3A

snippet throws programming errors

2015-01-13 Thread Villum Sejersen
Well, on my system your snippet as you have written it throws no error whatsoever... The result is exactly as I believe is the one you expected. I rather suspect your way of organizing the lilypond file is creating the error, or - perhaps more understandable - the fact that you are on a mac

Re: snippet throws programming errors

2015-01-13 Thread Jacques Menu
Grouping the key with the music is fine and gives no error (I’m using a Mac). That’s reasonable since the key may change at places within the music. JM %%% \version 2.19.15 music = \relative c'' { \key c \major e2 g, \key e \minor e2 g, } \score { \new Staff \music

more succinct code

2015-01-13 Thread Craig Dabelstein
Good morning List, Sorry if this is a simple question, but I was wondering if the following code cand be made shorter by putting these elements of code somewhere that can be shared by all staves. \consists Page_turn_engraver \consists Melody_engraver \override Stem.neutral-direction =

Re: Attaching an alist to a grob

2015-01-13 Thread Urs Liska
Hi Paul, thanks for that. Will have to try that out later today, but indeed it looks exactly like what I'm looking for. I think I can soon give back the results :-) Best Urs Am 13. Januar 2015 20:45:31 MEZ, schrieb Paul Morris p...@paulwmorris.com: Urs Liska wrote So does anyone have an

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se
On 2015-01-13 22:12, Pierre Perol-Schneider wrote: Sure you can. BTW, I just took a look on the web in order to see how those tablatures look like, so I've added some options : Snip Wow!! It's almost perfect! Since you are using the same notes for the normal Staff and the TabStaff the

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread Pierre Perol-Schneider
Hi Anders, 2015-01-13 21:00 GMT+01:00 and...@andis59.se and...@andis59.se: Is it possible to make the same effect using the \rightHandFinger method you showed before? That method was the simplest so I want to use it. Sure you can. BTW, I just took a look on the web in order to see how

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se
On 2015-01-13 22:50, Pierre Perol-Schneider wrote: Hum, not easy to automate it but you can use tags : http://lilypond.org/doc/v2.19/Documentation/notation/different-editions-from-one-source.html#using-tags So much to learn, so little time... Lilypond is like the Russian dolls, you never

Re: Attaching an alist to a grob

2015-01-13 Thread Urs Liska
Am 13.01.2015 um 21:41 schrieb Urs Liska: Hi Paul, thanks for that. Will have to try that out later today, but indeed it looks exactly like what I'm looking for. I think I can soon give back the results :-) Now I've checked - it's perfect. Thank you again! There is no alist? predicate,

Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread Pierre Perol-Schneider
2015-01-13 22:23 GMT+01:00 and...@andis59.se and...@andis59.se: Since you are using the same notes for the normal Staff and the TabStaff the normal Staff will show the wrong notes. This since the pedals changes the string tuning A raises the 5 string 1 tone, 8=g', 8A=a', and F raises string

Re: segmented glissando lines

2015-01-13 Thread Thomas Morley
2015-01-12 0:39 GMT+01:00 Urs Liska u...@openlilylib.org: Am 12.01.2015 um 00:37 schrieb Thomas Morley: 2015-01-12 0:06 GMT+01:00 Urs Liska u...@openlilylib.org: Hi Harm, this is terrific! I'm about to collect a number of examples why LilyPond rocks for engraving contemporary music, and

Re: Page Headers

2015-01-13 Thread Chris Trahan
Abraham, Yes, I have. The example is not very clear and it's only one example. Chris -- View this message in context: http://lilypond.1069038.n5.nabble.com/Page-Headers-tp170410p170428.html Sent from the User mailing list archive at Nabble.com.

Changing the endpoint of a very long slur

2015-01-13 Thread Knute Snortum
I have a slur that spans several systems and I want to change the every last endpoint. My understanding of \shape is that this should work: \version 2.18.2 \language english \relative c' { \shape #'( (0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 . 0) (0 .

Re: Page Headers

2015-01-13 Thread Chris Trahan
I figured it out. I went into the ly/titling-init.ly file and changed this line \on-the-fly #not-part-first-page \fromproperty #'header:instrument to this line \on-the-fly #not-part-first-page \fromproperty #'header:title in both the oddHeaderMarkup variable and the evenHeaderMarkup variable.

Re: Changing the endpoint of a very long slur

2015-01-13 Thread David Nalesnik
Hi Knute, On Tue, Jan 13, 2015 at 5:32 PM, Knute Snortum ksnor...@gmail.com wrote: I have a slur that spans several systems and I want to change the every last endpoint. My understanding of \shape is that this should work: \version 2.18.2 \language english \relative c' { \shape #'( (0

Re: Changing the endpoint of a very long slur

2015-01-13 Thread David Nalesnik
One more thing... On Tue, Jan 13, 2015 at 5:55 PM, David Nalesnik david.nales...@gmail.com wrote: \shape #'( ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 0) (0 . 0) (0 . 0) (0 . 0)) ((0 . 0) (0 . 0) (0 . 0) (5 . -5)) )