How to tie into a bar with split voices

2023-04-19 Thread John McWilliam
Hi,    I’m trying to get a tie to cross the barline into a split voice measure. I have tried with and without the \voiceOne command but cannot get this to work. Can any one help me? John McWilliam Sent from Mail for Windows 

Voice_with_tie.ly
Description: Binary data


Coda without line break

2023-04-15 Thread John McWilliam
Hi,    The enclosed attachment illustrates a Coda including a line break, however:  I want to remove the line break and have the Coda on line 1 keeping the jump text between the Main  and the Coda. Also, there should some space between the jump text and the start of the coda.I would also like to move the jump text to the left a little to reduce the empty space there but reducing the ”repeat unfold” on line 20 from 4 – 2 did not have the desired effect. My knowledge of Lilypond is somewhat basic so any help with this would be appreciated. John McWilliam Sent from Mail for Windows 

Coda1.ly
Description: Binary data


Coda1.pdf
Description: Adobe PDF document


Error compiling a book

2023-04-08 Thread John McWilliam
Windows 10Frescobaldi 3.2Liliypond 2.24.0 I am getting the following error when compiling my book to tunes: programming error: file name not normalized: ..\..\Includes\Polis_format_portrait.ilycontinuing, cross fingers The compilation proceeds successfully and the result appears normal, however, it would be good to eliminate the cause. Can anyone throw light on what this means and how to correct the error. You will note that my include file is of type “.ily” instead of “.ly” I cannot remember why I did this and it may be of significance. John McWilliam Sent from Mail for Windows 



Accidental Parenthesis

2022-03-11 Thread John McWilliam
Hi,    I wonder if anyone can help me code a cautionary accidental, as in (#). If I am working with a key signature in G and write fis no accidental is shown. Sometimes, however, I want to remind myself by forcing an accidental shown inside brackets, (#). How do I do this? John McWilliam Sent from Mail for Windows 



Book structure

2021-07-13 Thread John McWilliam
I have been working on a Collection of Scottish bagpipe music. Each tune (PIECE) consists of: Ground (basic melody)Variations (usually up to maximum four). My strategy has been to create each individual section (ground & variations) within its own score and with its own header. This has worked well for me and given me a satisfactory result.  My problem is when I try to gather these tunes into a book. Here the result is scrambled and I suspect it may have something to do with my basic structure. I enclose a simplified (I hope!) rendering of “A” the structure of each tune, and “B” my book module structure.  If anyone would like to comment on thisI would be most grateful. John McWilliam Sent from Mail for Windows 10 PIECE

A. Mackintosh's Lament: structure

Global declarations:
paper & font sizes etc. 
includes. (If piece included in a book, transfer
these to book module.)
variables used in scores.

\header: Mackintosh's Lament etc.
--
Score declarations:

\Score  Ground
Part I
Part II
Header

\Score  Var. I
Part I
Part II
Header

\Score  Var II
Part I
Part II
Header

\Score  Var III
Part I
Part II
Header

\Score  Abbreviations
--

B. Book Module: structure

Global Declarations:
paper & font sizes etc. 
includes. (Transfered from PIECES e.g. 
Bagpipe_new.ly)
--
Book declarations:
\header: Piobaireachd Collection etc.
\paper: Header, Table of contents
--
Bookpart declarations:
   \bookpart
\header: Black Donalds March etc.
\tocItem
\Include PIECE
\pageBreak

   \bookpart
\header: Mackintosh's Lament etc.
\tocItem
\Include PIECE
\pageBreak

   \bookpart
\header: ...
\tocItem
\Include PIECE
\pageBreak
etc.
EndBook 
---


RE: Transpose

2019-09-10 Thread John McWilliam
Hi again,
I attach my attempt to use \modalTranspose in order to save code when 
rewriting broken chords in C major and A minor.  The idea is to go ahead and 
repeat the exercise in G major, Eminor etc., however, it looks as though I am 
going to have to write everything out (longhand). You will see in my example 
that modalTranspose gives a strange interpretation of A minor and I wonder 
whether there is a solution to this?

John McWilliam

Sent from Mail for Windows 10

From: David Kastrup
Sent: Saturday, September 7, 2019 9:49 PM
To: John McWilliam
Cc: lilypond-user@gnu.org
Subject: Re: Transpose

John McWilliam  writes:

> Hi,
>   I am rewriting Baermanns repetitive exercises for clarinet and
> am trying to rationalise my code.  For example broken chords: they
> start in C major then A minor followed by G major, E minor etc. To
> avoid rewriting the code every time I tried using ”\transpose c a
> \Cmajor” (the variable with the C major code). This gave me of coarse
> a change of key signature to A major – not what was wanted. Is there a
> way around this which will allow me to take the C major code and
> transpose the notes down a third to A keeping everything in C (minor).

Look up \modalTranspose in the manual.

-- 
David Kastrup



Exercise_snip.ly
Description: Binary data


Exercise_snip.pdf
Description: Adobe PDF document


Exercises_format.ily
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Transpose

2019-09-07 Thread John McWilliam
Hi,
I am rewriting Baermanns repetitive exercises for clarinet and am 
trying to rationalise my code.  For example broken chords: they start in C 
major then A minor followed by G major, E minor etc. To avoid rewriting the 
code every time I tried using ”\transpose c a \Cmajor” (the variable with the C 
major code). This gave me of coarse a change of key signature to A major – not 
what was wanted. Is there a way around this which will allow me to take the C 
major code and transpose the notes down a third to A keeping everything in C 
(minor).

John McWilliam

Sent from Mail for Windows 10

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Overriding a global declaration

2019-08-08 Thread John McWilliam
I am so…. grateful for your help here and enclose my version with adjustments 
if you are interested.
   I found that adding a \pagebreak inside a bookpart in order to place 
tunes 3 & 4 on separate pages led to unwanted changes in pagination. When I 
placed tune 4 in its own bookpart everything was fine. In my old structure it 
was possible to separate tunes with pagebreaks.
   I also added a new section with two short tunes on one page. This was 
also successful. 
   I now understand book and bookpart structure better. I don’t think 
Finale or Sibelius can offer the same flexibility as that available in Lilypond 
– the problem is the learning curve!
   
   John McWilliam
Sent from Mail for Windows 10

From: Thomas Morley
Sent: Wednesday, August 7, 2019 9:54 PM
To: John McWilliam
Cc: lilypond-user@gnu.org
Subject: Re: Overriding a global declaration

Am Mi., 7. Aug. 2019 um 20:37 Uhr schrieb John McWilliam
:
>
> Following my previous mail I have tried to simplify my problem in a book 
> containing three tunes:
>
> A normal tune with 13 lines of Music where the last line should spill over 
> into the next page. It doesn’t when compiled together with…
> A so called reduced tune also with 13 lines which now fits onto one page 
> after following suggestions from Thomas Morley.
> The final tune is normal and should perform as number 1 and spill over onto 
> the next page – it doesn’t.
>
> Simply stated, I want to be able to reduce the size of one tune in a book 
> where the majority of tunes have a larger global definition of staff size. 
> The files are a simple and small as I could possibly make them at the same 
> time illustrating my dilemma.
>
> John McWilliam
>
> From: John McWilliam
> Sent: Wednesday, August 7, 2019 8:12 PM
> Reply to Thomas Morley:
> Still not out of the woods yet. I think it is due to the fact that your 
> example creates a bookpart in the Tune file and then again in the Book file. 
> If I remove the book deklaration from the Book file I loose my Table of 
> Contents! Also, isn’t the \paper section  unnecessary if it appears in 
> BP_format.ily??
>
> Sorry if my questions appears basic in nature – my level of experience using 
> Lilypond is limited.

Hi John,

please check before posting your example(s) work. You used relative
paths for the includes, which don't work with your stripped down files
...

I'd still recommend to use /bookpart, even more: wherever you insert
\pageBreak you should think about to start/end a bookpart.
(To keep the title page I didn't wrap your table-of-content into an
extra bookpart. Nevertheless for own projects I tend to create a
title-page indepent from book-header, then the toc in an own bookpart,
then the other bookparts)

Admittedly including a bookpart into another bookpart will not work,
so you shouldn't state a /bookpart in the to-be-included file, but
wrap it around the tocItem/Section and the \include when called in
\book
You may need to pay more attention for correct headers, this is the
only disadvantage I know.

If you do so (with the correct syntax) you can have different settings
for every bookpart via \paper.
NB a general \paper will affect every score/bookpart of the book.

Btw, in your BP_format.ily you write
ragged-bottom = ##t
Why? It causes some warnings, I've commented it without disadvantage
as far as I can tell.

So the only difference in \paper of the "reduced" bookpart is:
ragged-last-bottom = ##f
Maybe one could go for `page-count´ or `systems-per-page´ instead.

My code suggestions attached.

HTH,
  Harm



Bagpipe_Book.ly
Description: Binary data


Bagpipe_Book.pdf
Description: Adobe PDF document


BP_format.ily
Description: Binary data


Tune1_normal13.ly
Description: Binary data


Tune1_reduced13.ly
Description: Binary data


Tune1_short4.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Overriding a global declaration

2019-08-07 Thread John McWilliam
Following my previous mail I have tried to simplify my problem in a book 
containing three tunes:
1. A normal tune with 13 lines of Music where the last line should spill over 
into the next page. It doesn’t when compiled together with…
2. A so called reduced tune also with 13 lines which now fits onto one page 
after following suggestions from Thomas Morley.
3. The final tune is normal and should perform as number 1 and spill over onto 
the next page – it doesn’t.

Simply stated, I want to be able to reduce the size of one tune in a book where 
the majority of tunes have a larger global definition of staff size. The files 
are a simple and small as I could possibly make them at the same time 
illustrating my dilemma.

John McWilliam

Sent from Mail for Windows 10

From: John McWilliam
Sent: Wednesday, August 7, 2019 8:12 PM
To: lilypond-user@gnu.org
Subject: RE: Overriding a global declaration

Reply to Thomas Morley:

Still not out of the woods yet. I think it is due to the fact that your example 
creates a bookpart in the Tune file and then again in the Book file. If I 
remove the book deklaration from the Book file I loose my Table of Contents! 
Also, isn’t the \paper section  unnecessary if it appears in BP_format.ily?? 
Sorry if my questions appears basic in nature – my level of experience using 
Lilypond is limited.

John McWilliam

Sent from Mail for Windows 10

From: John McWilliam
Sent: Wednesday, August 7, 2019 9:33 AM
To: John McWilliam
Subject: Fwd: Overriding a global declaration


Skickat från min iPhone

Vidarebefordrat brev:
Från: Thomas Morley 
Datum: 6 augusti 2019 19:54:37 CEST
Till: John McWilliam 
Kopia: lilypond-user 
Ämne: Re: Overriding a global declaration
Am Mo., 5. Aug. 2019 um 14:21 Uhr schrieb Thomas Morley
:

Am Mo., 5. Aug. 2019 um 12:46 Uhr schrieb John McWilliam
:

http://lsr.di.unimi.it/LSR/Item?id=862 or the builtin `magnifyStaff´.



Bagpipe_Book.ly
Description: Binary data


Bagpipe_Book.pdf
Description: Adobe PDF document


BP_format.ily
Description: Binary data


Tune1_normal13.ly
Description: Binary data


Tune1_reduced13.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Overriding a global declaration

2019-08-07 Thread John McWilliam
Reply to Thomas Morley:

Still not out of the woods yet. I think it is due to the fact that your example 
creates a bookpart in the Tune file and then again in the Book file. If I 
remove the book deklaration from the Book file I loose my Table of Contents! 
Also, isn’t the \paper section  unnecessary if it appears in BP_format.ily?? 
Sorry if my questions appears basic in nature – my level of experience using 
Lilypond is limited.

John McWilliam

Sent from Mail for Windows 10

From: John McWilliam
Sent: Wednesday, August 7, 2019 9:33 AM
To: John McWilliam
Subject: Fwd: Overriding a global declaration


Skickat från min iPhone

Vidarebefordrat brev:
Från: Thomas Morley 
Datum: 6 augusti 2019 19:54:37 CEST
Till: John McWilliam 
Kopia: lilypond-user 
Ämne: Re: Overriding a global declaration
Am Mo., 5. Aug. 2019 um 14:21 Uhr schrieb Thomas Morley
:


Am Mo., 5. Aug. 2019 um 12:46 Uhr schrieb John McWilliam
:

http://lsr.di.unimi.it/LSR/Item?id=862 or the builtin `magnifyStaff´.



BP_format.ily
Description: Binary data


Highland_wedding_test.ly
Description: Binary data


Bagpipe_Book_Template_abr.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Overriding a global declaration

2019-08-06 Thread John McWilliam
Enclosed is my template for tunes and for the book as well as the format file 
with some of the settings I use. You will notice that this file contains my 
global setting for staff size (16). The tune in question requires a staff size 
of 14 if it is to fit on one page and not roll over onto a second page – a mute 
Point you may say but it is a question of one line and aesthetically better if 
the tune can be contained on one page.

John McWilliam

Sent from Mail for Windows 10

From: Phil Holmes
Sent: Tuesday, August 6, 2019 5:18 PM
To: John McWilliam; lilypond-user@gnu.org
Subject: Re: Overriding a global declaration

- Original Message - 
From: "John McWilliam" 
To: 
Sent: Tuesday, August 06, 2019 3:25 PM
Subject: Re: Overriding a global declaration


> Windows 10, Lilypond 2.18.2, Friscobaldi 3.0.1
>
> Unfortunately, nobody seems able to help me with this one.


I think part of the difficulty of helping is that you've not said how you're 
laying out your book.  If you could give an example of 2 "tunes" and the 
book/score structure you're using (it wouldn't be necessary to specify the 
notes themselves, just saying something like "music here" or a single note 
per tune it might help someone understand how best to tackle the issue.

--
Phil Holmes 




Bagpipe_Book_Template_abr.ly
Description: Binary data


Bagpipe_Tune_Template_abr.ly
Description: Binary data


BP_format.ily
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Overriding a global declaration

2019-08-06 Thread John McWilliam
Windows 10, Lilypond 2.18.2, Friscobaldi 3.0.1

Unfortunately, nobody seems able to help me with this one. 

I have a collection of tunes in a \book structure with a global-staff-size
of 18. One of the tunes, however, spills over onto the next page and I want
to reduce it's size to fit into the page without changing the format of the
other tunes. I have tested what would work and found that 14 is feasible. I
have searched the forum and tried introducing a \layout section within the
tune score:

\layout {
\context {\Staff \with {
fontSize = #-2
\override StaffSymbol #'staff-space = #(magstep -2)}
}}

This reduced the size of the staff + notes spacing the lines vertically and
not giving the extra space to the overflow (1 line). I then added to the top
level of my file, \paper section:

\paper {
ragged-bottom = ##t
bottom-margin = 0\mm
between-system-padding = #0.1
between-system-space = #0.1
}

.but this did not change anything. \magnifyStaff seemed an interesting
option, however, my version of Lilypond returned an error on compilation so
perhaps this only works in later versions.

I'd be most grateful of assistance in solving this impass.

John McWilliam






-
John McWilliam
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Overriding a global declaration

2019-08-05 Thread John McWilliam
OK! I am posting this to everyone .

John

Sent from Mail for Windows 10

From: Thomas Morley
Sent: Monday, August 5, 2019 2:21 PM
To: John McWilliam
Cc: lilypond-user
Subject: Re: Overriding a global declaration

Am Mo., 5. Aug. 2019 um 12:46 Uhr schrieb John McWilliam
:
>
> 
> <http://lsr.di.unimi.it/LSR/Item?id=862 or the builtin `magnifyStaff´.
>
> 
> 
>
>
> I tried your suggestion introducing:
>
>
>
>\new Staff \with {
>
>   fontSize = #-2
>
>   \override StaffSymbol.staff-space = #(magstep -2)
>
>   \override StaffSymbol.staff.thickness = #(magstep -2)
>
> }
>
>
>
> This gave the result shown above. The notes are smaller but the lines are 
> more spaced so I still have three lines flowing over onto the next page.

Don't forget to reply to all.
Currently I've not the time to look into it, others may want to chime in ...

cc-ing list

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Overriding a global declaration

2019-08-04 Thread John McWilliam
1. I’m compiling a book of bagpipe tunes and have used a global declaration 
which suits my Music:

   #(set-global-staff-size 16)

I now fine I have one tune which still does not fit onto the page and one line 
of music spills over onto a new page. If I reduce this tune to staff-size 15 
the problem is solved. Can I do this and maintain my global definition for the 
other tunes?
2. In the same collection of tunes I sometimes use the following command:

#(allow-volta-hook “|”)

The problem is that this command is set at the beginning of the tune and 
affects all my volta spanners. Can I override this where an open spanner is 
desired?

John McWilliam

Sent from Mail for Windows 10

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


allowVoltaHook

2019-08-03 Thread John McWilliam
Windows 10, Lilypond 2.18.2, Friscobaldi 3.0.1

I have some old Music which I am updating to Lilypond 2.18.2 and have come 
across this command which doesn’t seem to have any affect on the Music:

#(allow-volta-hook "|")  

 There is  a brief note in the Notation manual:

allowVoltaHook [void] - bar (string)
(undocumented; fixme)

The syntax seems to have changed. Can anyone explain this function to me and 
its significance.

John McWilliam

Sent from Mail for Windows 10

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Tune structure when used in \book

2019-07-29 Thread John McWilliam
Windows10, Lilypond 2.18.2, Friscobaldi 3.0.1

I have a large number of pipe tunes and have been trying gather them into a 
book. I am almost there but have run into problem with the variables I use for 
each tune part (verse/variation). Briefly, my tunes are structured:

--
Settings
%\Include bagpip.ly

PartA = {}
PartB = {}

Score {
\PartA
\PartB
   }

--

Briefly my book is structured:

Settings
\include bagpipe.ly

\book {\bookpart}

--

I can compile each tune separately if I include bagpipe.ly. To compile the book 
I must comment out this since it is included in the book at top level, however, 
I get errors indicating that the functions in bagpipe.ly are not found. If I do 
away with the variables and move the music into the score, everything works. 
This is a pity as it makes my tune files less readable. Is there a way around 
this?

John McWilliam

Sent from Mail for Windows 10

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Ragged-right

2019-07-22 Thread John McWilliam
Windows 10

   I have raised this question earlier concerning a problem when combining 
landscape mode, \grace, \partial and \repeat volta in Lilypond 2.19.83 I have 
tried to simplify my question in the attached example and hope that someone can 
advise. Briefly, insertion of a grace note in a partial bar and in combination 
with a repeat caused a ragged right margin (line-end) after the first repeat. 
   The attached example should be self explanatory. When working with 
bagpipe music which uses frequent gracenotes (bagpipe.ly) the problem 
exacerbates and sometime the music is extended off the page and lost. This 
occurs in landscape mode though my example seems to indicate the same thing in 
portrait mode.  Happily, Lilypond 2.18.2 works without these problems. I have 
spoken to the author of bagpipe.ly and bagpipe_new.ly who has a MAC environment 
and he says that Lilypond 2.19.83 does not have these problems and thinks this 
must have something to do with the Windows version of Lilypond.
   
   John McWilliam
   
Sent from Mail for Windows 10



Test_2.19.83_1.ly
Description: Binary data


Test_2.19.83_1.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond 2.19.83 - ragged-right problem not solved

2019-07-02 Thread John McWilliam
Windows 10
Fresobaldi 3.0.1



I would like to inform everyone who has put time and effort into trying to
help me solve this impass that I have decided to downgrade to Lilypond
2.18.2. This has proved to be a wise decision resulting in perfect right
justification and normal pdf printouts using identical code. My own personal
reflection is that it would seem to confirm the presence of a bug in later
versions of Lilypond which will hopefully be corrected in the near future.
It would also seem to indicate that MAC offers a better platform than
Windows considering the fact that the above problem was not so prevalent
there.



-
John McWilliam
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond 2.19.83 ragged-right problem

2019-07-02 Thread John McWilliam
Windows 10
Fresobaldi 3.0.1



I would like to inform everyone who has put time and effort into trying to
help me solve this impass that I have decided to downgrade to Lilypond
2.18.2. This has proved to be a wise decision resulting in perfect right
justification and normal pdf printouts using identical code. My own personal
reflection is that it would seem to confirm the presence of a bug in later
versions of Lilypond which will hopefully be corrected in the near future.
It would also seem to indicate that MAC offers a better platform than
Windows considering the fact that the above problem was not so prevalent
there. 



-
John McWilliam
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond 2.19.83

2019-07-01 Thread John McWilliam
Windows 10
Lilypond 2.19.83

Hi,
    I have written a bagpipe tune (25th_kosbs) which has four 
parts, each with a repeat which should start on a new line. The format is A4 in 
lanscape mode. I cannot get this to work and at the same time maintain a flush 
right margin. Suggestions please

John McWilliam


Sent from Mail for Windows 10



25th_kosbs_test.ly
Description: Binary data


Bagpipe_new.ly
Description: Binary data


BP_format.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Windows 10

2018-06-17 Thread John McWilliam
I am returning to Lilypond after a computor upgrade and could not find an 
install file for Windows 10. There was a site called loaditsoft.com which 
purported to have a Windows 10 version but when I downloaded it the file was 
corrupted. Does the Windows 7 or 8 version work under Windows 10? Any 
suggestions?

John McWilliam

Skickades från E-post för Windows 10

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing end of line key signature

2015-06-08 Thread John McWilliam
Thanks Klaus - works perfectly.
jsmcwilliam



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Removing-end-of-line-key-signature-tp177615p177622.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Removing end of line key signature

2015-06-08 Thread John McWilliam
I have tried several approaches to remove an end of line key signature but
without success. Is there anyone who can provide me with a solution and
explanation for this problem. If you run my code given below you will note
the "b" at the end on the piece before the Coda.

  Sommar_sommar-Kl1.ly
<http://lilypond.1069038.n5.nabble.com/file/n177615/Sommar_sommar-Kl1.ly>  



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Removing-end-of-line-key-signature-tp177615.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Adjacent double bars

2015-03-21 Thread John McWilliam
Bagpipe music has it's own conventions where each section or part of a tune
is enclosed in either repeat bars or what I call double bars (\bar ".|" and
\bar "|."). The end of a part usually coincides with a line break. I have a
problem with this and find that adjacent barlines with a break in between
get overridden and one of the bar lines is eliminated. I have tried using
\bar "||" instead but this does not help. See below:
---
\version "2.18.0"

music = \relative c' {
\key c \major
\time 4/4
\bar ".|:"

%Part 1
\repeat volta 2 {
\partial 8 a8
a4. a8 b4. b8
c4. c8 d4. 
\break }

%Part 2
\bar ".|"   % this blocks the repeat sign at the end of part 1
e8 |e4. e8 f4. f8
g4. g8 a4. 
a8 b4. b8 c4. \bar "|."
\break

%Part 3
\bar ".|"   % this blocks the double bar at the end of part 2
a8 |
a4. a8 b4. b8
c4. c8 d4. \bar "|."
\break 

}% end relative

\score {
   \new Staff \music
}




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Adjacent-double-bars-tp173426.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Variables when compiling a book

2015-02-03 Thread John McWilliam
>Unfortunately, this is one of the cases where LilyPond use resembles
>other kinds of computer programming.  You’ll need to refactor your files...

This solution presented a completely new mind set for me. The problem is
that I already have a considerable collection of bagpipe tunes written
without user-defined variables and compiled into books of marches and dance
tunes (see: https://github.com/jsmcwilliam/My_Bagpipemusic). On examination
of any tune you will see the construct fairly easily. These are then
compiled into a "Collection" (see: folder-collections). You will note that I
had to comment out some of the definitions from the beginning of each tune
file and move them to the collection file in order to avoid errors.

I then wanted to apply this construct to Piobaireachd tunes which are more
complex and required use of user-defined music variables (see folder
Piobaireachd). That is when I ran into trouble because it would appear that
all these user-defined music variables would also have to be lifted out of
the Piobaireachd files and placed at the beginning of the collection file.
As I said before this seemed a very clumsy thing to do making my collection
file enormous and difficult to read.  

You may be right in which case I will have to study your construct and apply
it to my Piobaireachd tunes, however, I was hoping for a simpler solution.
If you cannot see one then I suppose I must bite the bullet but I'm not very
code literate so it may take time to affect the change.




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Variables-when-compiling-a-book-tp171346p171369.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Variables when compiling a book

2015-02-02 Thread John McWilliam
I am compiling a collection of bagpipe tunes and am having a problem when the
individual files are to be compiled into a book. Many of the tunes have
sections of music defined in variables - these definitions lie outside the
\score context and are causing errors when I try to compile the book.

I have also noticed that my list of \include files also defined outside the
score context have to be  removed form the individual tunes and listed at
the beginning of the book file instead. This is not a problem since the list
is short, however, moving all my music variables to the book file seems like
a clumsy way of doing things since they are many and vary from tune to tune. 

Does anyone have a solution to this problem which could perhaps be described
as one of SCOPE or CONTEXT?



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Variables-when-compiling-a-book-tp171346.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Nested volta brackets

2015-01-15 Thread John McWilliam
Thanks for the suggestion to nest volta brackets and customize the
explanatory text. It involved much more work than I expected but it works
and I appreciate your help.
Thanks again.



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Nested-volta-brackets-tp170488p170521.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Nested volta brackets

2015-01-14 Thread John McWilliam
I have a piece which has a complex repeat. The first time through the first
two bars are omitted. The second time the notes bracketed [S] are played.
This entire sequence is then played again, however, the second time the
notes bracketed [D] are played. In total the line is played four times in
different ways.

The snippet shows how this is done, however, I would like to replace the
text spanner with a volta bracket embracing the first two bars and with the
text "Lines 2 & 4 only" Is this possible?

Test.ly <http://lilypond.1069038.n5.nabble.com/file/n170488/Test.ly>  



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Nested-volta-brackets-tp170488.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including a logo on the title page of a book

2014-12-10 Thread John McWilliam
>> Side effects of including a logo on the title page of a book.

My latest code for this works up to a point. I have to manually use the
score.header command "picture = ##f"
to prevent the logo appearing at the begining of each book part. The problem
is the space left under the book part title before the start of the music.
If I could only remove this... I enclose the code and relevant logo below:

Logo.ly <http://lilypond.1069038.n5.nabble.com/file/n169375/Logo.ly>  
Logo_LNPB.eps
<http://lilypond.1069038.n5.nabble.com/file/n169375/Logo_LNPB.eps>  




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194p169375.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including a logo on the title page of a book

2014-12-08 Thread John McWilliam
The above problem has been solved, however, I have inherited a new one! The
logo appears on all subsequent pages in the book. This can be solved by
introducing a "instrument = ##f" to each book part, however, I still have
the problem of eliminating the logo from the Index of Contents. I only want
to see it on the title page. How can this be achieved? The relevant files
are included below:

Logo.ly <http://lilypond.1069038.n5.nabble.com/file/n169296/Logo.ly>  
Logo_LNPB.eps
<http://lilypond.1069038.n5.nabble.com/file/n169296/Logo_LNPB.eps>  



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194p169296.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Eliminating the logo from the Index of Contents

2014-12-06 Thread John McWilliam
In an earlier discussion I learned how to include and position a logo on my
Title Page - the code is attached below. I found, however, that the logo
appeared on the Index of Contents as well and this was not what I had
planned for. I have unsuccessfully tried to eliminate this error. 

\version "2.18.0"

#(set-default-paper-size "a4" 'landscape)
#(set-global-staff-size 15) % set staff-size when ready to print

date = #(strftime "%d-%m-%Y" (localtime (current-time)))
tocSection = #(define-music-function (parser location text) (markup?) 
(add-toc-item! 'tocSectionMarkup text)) 

\book {

\header {
title = "Lake Norman Pipe Band"   
instrument =
\markup {\vspace #30 \epsfile #X #70 #"Logo_LNPB.eps" }
subtitle = "March collection"
 copyright = \markup {
\line {"Compiled by John S. McWilliam,"
\concat { "(rev. " \date ")" }}}
}

\paper {
tocTitleMarkup = \markup {\huge \column { 
\fill-line { \null "Table of Contents" \null } 
\hspace #1 
} 
} 
tocItemMarkup = \tocItemWithDotsMarkup
tocSectionMarkup = \markup {\large \column { 
\hspace #1 
\fill-line { \null \italic \fromproperty #'toc:text \null } 
\hspace #1 
} 
}
}%end paper

\pageBreak %after title page
\markuplist \table-of-contents
\pageBreak

\bookpart {
\header {
title = "2/4 Marches"
subtitle = ##f
instrument = ##f}
\tocSection \markup { 2/4 Marches } 
}


}%end book
--
The logo is attached here:  Logo_LNPB.eps
<http://lilypond.1069038.n5.nabble.com/file/n169256/Logo_LNPB.eps>  



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Eliminating-the-logo-from-the-Index-of-Contents-tp169256.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including a logo on the title page of a book

2014-12-06 Thread John McWilliam
Thanks Orm - PROBLEM SOLVED!. The logo I was using was in a jpeg file which I
converted to eps using Photoshop. Apparently Inscape is more reliable and
should be used in future. I have been able to achieve my goal and can now
close this subject.
 



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194p169255.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including a logo on the title page of a book

2014-12-06 Thread John McWilliam
I wish to append this to my previous reply to Nick concerning problems
generating a logo on the title page of a \book. Using the following Header
code:

\header {
 title = \markup {\epsfile #X #72 #"Logo_LNPB.eps"}
 subtitle = "March collection"
 copyright = \markup {
\line {"Compiled by John S. McWilliam,"
\concat { "(rev. " \date ")" }}}
}

... the compiler generated this:

Processing
`C:/Users/Owner/Music/Lilypondmusic/Bagpipemusic/LNPB/Work_Area/Logo.ly'
Parsing...C:/Program Files
(x86)/LilyPond/usr/share/lilypond/current/scm/stencil.scm:779:26: In
procedure list-ref in expression (list-ref bbox 2):
C:/Program Files
(x86)/LilyPond/usr/share/lilypond/current/scm/stencil.scm:779:26: Wrong type
argument in position 1: #f
---

Otherwise my above code was used. No errors or warnings and the pdf is
generated, however, no logo is visible.



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194p169251.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including a logo on the title page of a book

2014-12-06 Thread John McWilliam
Hi Nick,
 I tried your approach replacing my header code in the original code
shown above with your header code and replacing your eps file with mine
(subtitle = \markup {\epsfile #X #72 #"Logo_LNPB.eps" } all in the same
folder). I got an warning: 37: non-UTF-8 input. No pdf was generated. Would
this imply that there is something wrong with my eps file or is there
something else I have overlooked? 



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194p169248.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Including a logo on the title page of a book

2014-12-05 Thread John McWilliam
Inclusion of logo problem.
Suggestion was to move the \markup command to the end of the Header object.
This resulted in: "unexpected \markup error."




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194p169221.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Shortened line containing second time repeat volta has problems

2014-12-05 Thread John McWilliam
Thanks Pierre for solving my problem and for your background information. I
think we can close this issue now.
 




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Shortened-line-containing-second-time-repeat-volta-has-problems-tp169174p169220.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Including a logo on the title page of a book

2014-12-04 Thread John McWilliam
I'm compiling a collection of pipe tunes and would like to include a logo in
the center of the title page under the heading. I've converted a jpeg file
to eps format using "save as" in Adobe Photoshop and failed using the
\markup {\epsfile #0 #20 #"Logo_LNBP.eps"} command. The logo is found in:

Logo_LNPB.eps
<http://lilypond.1069038.n5.nabble.com/file/n169194/Logo_LNPB.eps>  

Does anyone have any suggestions as to how this should be down.


\version "2.18.0"

#(set-default-paper-size "a4" 'landscape)
#(set-global-staff-size 15) % set staff-size when ready to print

date = #(strftime "%d-%m-%Y" (localtime (current-time)))
tocSection = #(define-music-function (parser location text) (markup?) 
(add-toc-item! 'tocSectionMarkup text)) 

\book {

\header {
title = "Lake Norman Pipe Band"
subtitle = "March collection"
%   \markup {\epsfile #0 #20 #"Logo_LNBP.eps"}
copyright = \markup {
\line {"Compiled by John S. McWilliam,"
\concat { "(rev. " \date ")" }}}
  }


\paper {

tocTitleMarkup = \markup {\huge \column { 
\fill-line { \null "Table of Contents" \null } 
\hspace #1 
} 
} 
tocItemMarkup = \tocItemWithDotsMarkup
tocSectionMarkup = \markup {\large \column { 
\hspace #1 
\fill-line { \null \italic \fromproperty #'toc:text \null } 
\hspace #1 
} 
}
}%end paper

\pageBreak %after title page
\markuplist \table-of-contents
\pageBreak

\bookpart {
\header {
title = "2/4 Marches"
subtitle = ##f}
\tocSection \markup { 2/4 Marches } 
}


}%end book




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Including-a-logo-on-the-title-page-of-a-book-tp169194.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Shortened line containing second time repeat volta has problems

2014-12-04 Thread John McWilliam
Thanks Pierre. Two things:
1. The repeat sign at the beginning of the second part is coded but does not
appear.
2. If you have time could you explain your corrections to my code. I
understand the "allow-volta-hook"
but why did the barline at the end of line two appear and have to be
hidden. Lastly, why did the 
repeat sign at the beginning of line three disappear.

\version "2.18.0"

%#(allow-volta-hook "|") 
#(allow-volta-hook "||") 

\score {
  \new Staff {
\time 3/4   %adjust time to suit specific tunes
\bar ".|:"

% Part 1
\set Score.repeatCommands = #'(start-repeat)
\repeat unfold 4 {a4 a a}
\set Score.repeatCommands = #'((volta "1"))
\repeat unfold 4 {a4 a a}
\break
\set Score.repeatCommands = #'((volta #f) (volta "2. --1,2") end-repeat)
\repeat unfold 4 {a4 a a}
\bar "||"
\set Score.repeatCommands = #'((volta #f))
\stopStaff

% Increasing the unfold counter will expand the staff-free space
\repeat unfold 6 { s4 s4 s4 }
\break
\once \hide Score.BarLine
\startStaff  % Resume bar count and show staff lines again

% Part 2
\set Score.repeatCommands = #'(start-repeat)
\repeat unfold 4 {a4 a a }
\set Score.repeatCommands = #'((volta "1"))
\repeat unfold 4 {a4 a a }
\set Score.repeatCommands = #'((volta #f) end-repeat)
  }%end staff
}%end score




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Shortened-line-containing-second-time-repeat-volta-has-problems-tp169174p169188.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Shortened line containing second time repeat volta has problems

2014-12-03 Thread John McWilliam
The situation is as follows. A pipe tune made up of two parts where each part
is repeated once. The first part has an alternative ending when played the
second time. This appears on a shortened line of its own. The second part
also has an alternative ending when play the second time and this matches
the ending of the first part. 
I have two problems with this both of which are, in a way, aesthetic but
irritating:
1. I cannot close the second time volta.
2. I cannot eliminate the barline which appears at the end of the shortened
second time line.


\version "2.18.0"


\score {

\new Staff  {
\time 3/4   %adjust time to suit specific tunes
\bar ".|:"

% Part 1
\set Score.repeatCommands = #'(start-repeat)

\repeat unfold 4 {a4 a a}
 
\set Score.repeatCommands = #'((volta "1"))
\repeat unfold 4 {a4 a a}
\break
 
\set Score.repeatCommands = #'((volta #f) (volta "2. --1,2") 
end-repeat)  
\repeat unfold 4 {a4 a a} 
\bar "||"
 
\set Score.repeatCommands = #'((volta #f)) 
\stopStaff 
% Increasing the unfold counter will expand the staff-free space
\repeat unfold 6 {
  s4 s4 s4
}  
%  \once \hide Score.BarLine
   \startStaff  % Resume bar count and show staff lines again 
   \break

% Part 2
\set Score.repeatCommands = #'(start-repeat)   
\repeat unfold 4 {a4 a a } 
 
\set Score.repeatCommands = #'((volta "1"))  
\repeat unfold 4 {a4 a a }
    \set Score.repeatCommands = #'((volta #f) end-repeat)
}%end staff
}%end score




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Shortened-line-containing-second-time-repeat-volta-has-problems-tp169174.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error on running convert.ly

2014-08-12 Thread John McWilliam
>Error on running convert-ly and the function point-and-click

I deeply regret to inform those who have activated their gray cells in an
attempt to solve my problem. I couldn't understand why the older files which
were in another folder functioned normally so I transfered some of my newer
files to that folder and - uricka - problem solved. Why? I had an illegal
folder name, "Polisensbl..å..sorkester". Having corrected this all was well
again. This was a basic error and I apologize for not having noted it
earlier.
 



-----
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Error-on-running-convert-ly-tp165182p165502.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error on running convert.ly

2014-08-12 Thread John McWilliam
> Error running Convert-ly and click-and-point.
> Please give us your OS

I run a VAIO VPCEH laptop under 64-bit Windows 7 Premium with SP1
No other problems have been noted when using Lilypond
The tunes affected are all grouped under one folder. I have another map
with bagpipetunes (no Swedish letters there i.e. ÄÅÖ) and both functions
work with these older tunes, however, the recently generated clean snippet I 
enclosed does not allow either function to work!




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Error-on-running-convert-ly-tp165182p165480.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error on running convert.ly

2014-08-11 Thread John McWilliam
I have recently had the following problems and as yet have not received any
suggestions for solving this:

- point and click no longer works for me

\version "2.18.2"

#(ly:set-option 'point-and-click #t)

\relative c'' { 
\key c \major \time 4/4 
\pointAndClickOn

a b c d |e f g a

}%end relative

- convert-ly gives an error when I try to run it on old files. 

convert-ly.py (GNU LilyPond) 2.18.2

Traceback (most recent call last):
  File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 409, in
?
main ()
  File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 383, in
main
f = f.decode (sys.stdin.encoding or "utf-8")
  File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 45-47:
invalid data

Does any one have any suggestions?




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Error-on-running-convert-ly-tp165182p165472.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error on running convert.ly

2014-08-02 Thread John McWilliam
>Error on running convert-ly

I enclose the snippet for the above problem. This also includes the
"point-and-click" option which has also stopped functioning. All other
aspects of the Lilypond Tool seem to function normally and I can still
create music. The update was from 2.18.0 and as you can see the version was
updated, however, the error text shown above occurred. I have older
compositions which work normally but all the new work has this problem.
Maybe something has changed in the setup (preferences) for jedit or
Lilypond? I have considered a new installation of jedit and Lilypond but
wanted to test this on the community before going ahead. 

\version "2.18.2"

#(ly:set-option 'point-and-click #t)

\relative c'' { 
\key c \major \time 4/4 
a b c d |e f g a

}%end relative




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Error-on-running-convert-ly-tp165182p165224.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Error on running convert.ly

2014-08-01 Thread John McWilliam
This error has suddenly appeared after many successful runs: 

convert-ly.py (GNU LilyPond) 2.18.2

Traceback (most recent call last):
  File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 409, in
?
main ()
  File "C:\Program Files (x86)\LilyPond\usr\bin\convert-ly.py", line 383, in
main
f = f.decode (sys.stdin.encoding or "utf-8")
  File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 45-47:
invalid data
Processing time: 13 seconds
> 
Can anyone explain why it has appeared and how to solve the problem.



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Error-on-running-convert-ly-tp165182.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line

2014-07-19 Thread John McWilliam
That works for me too. Thanks!
One last detail - I hope - when the difference between the first and 

second time involves a whole bar the spanners cannot be seperated by a 

transparent bar. In such cases is the following snippet acceptable or is 

there another tweak which can be used to seperate them?


\version "2.18.0"

#(allow-volta-hook "|")

music = \relative c''' {
\key c \major
\time 2/4
\bar ".|:"

\repeat volta 2 {
  \partial 8 g8
  a16. [g32 a16. f32] e8 [c32 a16.]
  \set Score.repeatCommands = #'((volta "1."))
  a8 a'16. [e32 f16. e32] c32 a16.
  \set Score.repeatCommands = #'((volta #f)(volta "2."))
  a'16. [g32 a16. e32] c32 [e16. a,16. e'32]
  \set Score.repeatCommands = #'((volta #f))
  c8 b b[ g']
  \break
  \set Score.measureLength = #(ly:make-moment 5 8)
  a16. g32 a16. f32 e8
  \set Score.repeatCommands = #'((volta "1."))
  c32 [ a16.]
  \once \hide Score.BarLine
  \once \hide Score.SpanBar
  \set Score.repeatCommands = #'((volta #f)(volta "2.") end-

repeat)
  c32 [e16.]
  \set Score.repeatCommands = #'((volta #f))

  \set Score.measureLength = #(ly:make-moment 4/8)
  a,8 a'16. e32 f16. e32 c32 a16.
  b16.[ c32 d16. e32] f32 [ a16. e16. b32]
  c8 [a] a
}
\break
} % end relative

\score {
   \new Staff \music
}




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164642.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line

2014-07-17 Thread John McWilliam
I am deeply grateful for sorting out these problems associated with the
bagpipe tune format and in particular those associated with repeats. I have
another irritating glitch in the same grain. A measure can have two
alternative structures depending on whether it is played the first or second
time. This is illustrated in the following snippet. My approach to this
works, however, i get a warning: "already have a volta spanner, ending that
one prematurely" and the second spanner remains open to the right. Any
suggestions will be most welcome.  

\version "2.18.0"  
  
music = \relative c''' {
\key c \major
\time 2/4
\bar ".|:"

\set Score.repeatCommands = #'(start-repeat)
\partial 8 g8
a16. [g32 a16. f32] e8 [c32 a16.]
a8 a'16. [e32 f16. e32] c32 a16.
a'16. [g32 a16. e32] c32 [e16. a,16. e'32]
c8 b b[ g']
\break 

\set Score.measureLength = #(ly:make-moment 5 8)
a16. g32 a16. f32 e8 
\set Score.repeatCommands = #'((volta "1.")) c32 [ a16.]
\set Score.repeatCommands = #'((volta #f))
\set Score.repeatCommands = #'((volta "2.")) c32 [e16.]
\set Score.repeatCommands = #'((volta #f))
\set Score.measureLength = #(ly:make-moment 4/8)
a,8 a'16. e32 f16. e32 c32 a16.
b16.[ c32 d16. e32] f32 [ a16. e16. b32]
c8 [a] a 
\set Score.repeatCommands = #'(end-repeat)
\break 
} % end relative

\score {
   \new Staff \music
}




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164563.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line

2014-07-15 Thread John McWilliam
Thanks Thomas for your input. I have applied your first alternative - the 

simpler one - to a four part piece. This is the classical length of a 

march in piping. The enclosed snippet illustrates the result. The end of 

the first part looses its repeat barline. I have tried introducing a \bar 

":|." at the end of the first part, however, this causes the repeat 

barline at the beginning of the second part to be supressed. Using manual 

commands instead of the \repeat volta format for the first part doesn't 

improve the situation. I feel that we are very close to a solution and 

would appreciate any suggestions you may be able to offer.



\version "2.18.0"

\defineBarLine ".|:-|." #'("|." ".|:" "|.") % needed to allow the   

% "volta-hook" mid-line:
#(allow-volta-hook ".|:-|.")

music = \relative c' {
\key c \major
\time 4/4
 \bar ".|:"
 
%Part 1
\repeat volta 2 {
a4. a8 b4. b8
c4. c8 d4. d8   
\break }
 
%Part 2 
\set Score.repeatCommands = #'(start-repeat)
e4. e8 f4. f8
\set Score.repeatCommands = #'((volta "1."))
g4. g8 a4. a8
\set Score.repeatCommands = #'((volta #f) (volta "2. --2,4") 

end-repeat)
b4. b8 c4. c8
\bar ".|:-|."
\set Score.repeatCommands = #'((volta #f))

\break

%Part 3
\repeat volta 2 {
a4. a8 b4. b8
c4. c8 d4. d8   
\break }


%% not changed:
%Part 4
\repeat volta 2 {
e4. e8 f4. f8
\set Score.repeatCommands = #'((volta "1."))
g4. g8 f4.f8
\set Score.repeatCommands = #'((volta #f))
}

}% end relative

\score  {
   \new Staff { \music }
}




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164502.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line

2014-07-14 Thread John McWilliam
Hi,
I have followed this discussion with interest having had a similar
problem myself. Bagpipe music (marches) have a standard format, usually four
parts and each part is repeated and may have alternative endings. The repeat
bars are shown at the beginning and end of each part (including the
beginning)
and alternative endings may be the same for up to two parts. When this
involves
the fourth (last) part the alternative ending is usually closed with \bar
"|." 

I have had problems following this format in Lilypond.
- visuallising all repeat bars.
- combining \repeat volta and \set Score.repeatCommands causes warnings and
  premature closure of the volta spanner.
- using \bar "|." in the middle of a piece (This you seem to have solved 
  as far as using \bar "||" is concerned but the solution doen't work for
  \bar "|."
I enclose the following snippet to illustrate my problem and hope that
somebody
will be able to respond with suggestions.

---

\version "2.18.0"


music = \relative c' {
\key c \major \time 4/4

%Part I with two alternative repeat ends
\repeat volta 2 {
e4. e8 f4. f8 }
\alternative { {
g4. g8 a4. a8 }
{
% If the following volta text is introduced the previous repeat bar
disappears
% and a warning reports premature closure of the volta spanner. The spanner 
% remains open to the right.
%   \set Score.repeatCommands = #'((volta "2. --1,2"))
b4. b8 c4. c8 
%   \set Score.repeatCommands = #'((volta #f))
\bar ".|:-||" \break }
% The second ending should finish with \bar "|." as this is also the ending
for 
% the second part and as such the end of the piece. Introducing \bar "|.", 
% however, surpresses the repeat bar at the beginning of the second part. I
also
% tried \bar ".|:-|." with a similar result.
}
%Part II with the same repeat end as part I
\repeat volta 2 {
e4. e8 f4. f8
\set Score.repeatCommands = #'((volta "1."))
g4. g8 f4.f8
\set Score.repeatCommands = #'((volta #f))
}

}% end relative

\score  {
   \new Staff { \music }
}
%..




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164443.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Table of contents

2012-09-23 Thread John McWilliam
Problem: Table of contents - a version conflict


Dear Marc,
Thanks for solving my problem. I upgraded my 2.14 version to 2.16 and
didn't notice that the manual was not upgraded at the same time - thus the
error in my syntax. Now all is back to normal again and I can relax and
enjoy a good night's sleep again. 

Danke,

John McWilliam

Pl. 142
Råröd
240 36 Stehag
SWEDEN




-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Table-of-contents-tp133121p133431.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Table of contents

2012-09-20 Thread John McWilliam
To my question concerning problems with generating a Table of contents David
Kastrup wrote:
"Try running convert-ly on it"
I started from scratch with a new file Booktest4.ly copied from the manual
(version 2.16). First I ran "convert-ly" and then tried to compile. The
printout is below and shows that the problem remains. Delighted if anyone
can give more suggestions.
John McWilliam

Booktest4.ly
<http://lilypond.1069038.n5.nabble.com/file/n133197/Booktest4.ly>   

This is a console shell for running LilyPond and related commands. Enter
%help to see the available special commands.
> convert-ly.py --edit "C:\Users\siba\Documents\Lilypond
> Music\Bagpipe_music\Test\Booktest4.ly"
convert-ly.py (GNU LilyPond) 2.16.0

convert-ly.py: Processing `C:\Users\siba\Documents\Lilypond
Music\Bagpipe_music\Test\Booktest4.ly'... 
Applying conversion: 

Processing time: 0 seconds
> %lilypond %args "C:\Users\siba\Documents\Lilypond
> Music\Bagpipe_music\Test\Booktest4.ly"
Processing `C:/Users/siba/Documents/Lilypond
Music/Bagpipe_music/Test/Booktest4.ly'
Parsing...
C:/Users/siba/Documents/Lilypond Music/Bagpipe_music/Test/Booktest4.ly:4:2:
error: unknown escaped string: `\markuplines'
  
  \markuplines \table-of-contents

C:/Users/siba/Documents/Lilypond Music/Bagpipe_music/Test/Booktest4.ly:4:2:
error: syntax error, unexpected STRING
  
  \markuplines \table-of-contents

C:/Users/siba/Documents/Lilypond Music/Bagpipe_music/Test/Booktest4.ly:4:15:
error: unknown escaped string: `\table-of-contents'
  \markuplines 
   \table-of-contents

Interpreting music...
Preprocessing graphical objects...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 2 or 3 pages...
Drawing systems...
Layout output to `Booktest4.ps'...
Converting to `./Booktest4.pdf'...
fatal error: failed files: "C:\\Users\\siba\\Documents\\Lilypond
Music\\Bagpipe_music\\Test\\Booktest4.ly"
Processing time: 1 seconds
> 



-
John McWilliam
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Table-of-contents-tp133121p133197.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Table of contents

2012-09-18 Thread John McWilliam
Booktest3.ly
  

1.  I get an error when trying to introduce a Table of Contents (see above
file for snippet):

%lilypond %args "C:\Users\siba\Documents\Lilypond
Music\Bagpipe_music\Test\Booktest3.ly"
Processing `C:/Users/siba/Documents/Lilypond
Music/Bagpipe_music/Test/Booktest3.ly'
Parsing...
C:/Users/siba/Documents/Lilypond Music/Bagpipe_music/Test/Booktest3.ly:4:2:
error: unknown escaped string: `\markuplines'
  
  \markuplines \table-of-contents

C:/Users/siba/Documents/Lilypond Music/Bagpipe_music/Test/Booktest3.ly:4:2:
error: syntax error, unexpected STRING
  
  \markuplines \table-of-contents

C:/Users/siba/Documents/Lilypond Music/Bagpipe_music/Test/Booktest3.ly:4:15:
error: unknown escaped string: `\table-of-contents'
  \markuplines 
   \table-of-contents

Interpreting music...
Preprocessing graphical objects...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 2 or 3 pages...
Drawing systems...
Layout output to `Booktest3.ps'...
Converting to `./Booktest3.pdf'...
fatal error: failed files: "C:\\Users\\siba\\Documents\\Lilypond
Music\\Bagpipe_music\\Test\\Booktest3.ly"
Processing time: 1 seconds
>

2.  I have done this previously in a collection of marches using version
2.14. Now I cannot upgrade this code to 2.16 without the following errors:

> convert-ly.py --edit "C:\Users\siba\Documents\Lilypond
> Music\Polisensblåsorkester\Marscher\Polisens Marschbook-Kl2.ly"
convert-ly.py (GNU LilyPond) 2.16.0

Traceback (most recent call last):
  File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 374, in ?
main ()
  File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 362, in main
do_one_file (f)
  File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 250, in
do_one_file
ly.progress (_ ("Processing `%s\'... ") % infile_name, True)
  File "out/lilylib.py", line 137, in progress
  File "out/lilylib.py", line 121, in print_logmessage
  File "out/lilylib.py", line 116, in stderr_write
  File "out/lilylib.py", line 58, in encoded_write
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 76-78:
invalid data
Processing time: 0 seconds
>  

Can anyone shed light on this problem




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Table-of-contents-tp133121.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Coda

2012-06-26 Thread John McWilliam
I need to write a coda which starts with a change in key and time signature. 
The example taken from the manual does not illustrate this requirement. All my 
attempts have resulted in visible a key signature and time signature  at the 
end of the melody section (before the coda). I want to hide this and if 
possible create extra space between the melody and coda sections. Does anyone 
have a suggestion as to how this could be achieved? I include a snippet to 
illustrate the problem.

John McWilliam



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Help

2012-06-26 Thread John McWilliam
I need to write a coda which starts with a change in key and time signature.
The example taken from the manual does not illustrate this requirement. All
my attempts have resulted in visible a key signature and time signature  at
the end of the melody section (before the coda). I want to hide this and if
possible create extra space between the melody and coda sections. Does
anyone have a suggestion as to how this could be achieved? I include a
snippet to illustrate the problem.

 

John McWilliam

%Example taken from the manual does not show how the Coda (line 2) changes in key 
%signature and time signature can be hiden at the end of the line 1. 

\version "2.14.2"

  \relative c'' {

\clef treble \key g \major \time 4/4
\repeat unfold 2 {
  | c4 c c c
}

\mark \markup { \musicglyph #"scripts.segno" }
\repeat unfold 2 {
  | c4 c c c
}

\once \override Score.RehearsalMark #'font-size = #4
\mark \markup { \musicglyph #"scripts.coda" }
\repeat unfold 2 {
  | c4 c c c
}

\bar "||"

\mark \markup { \musicglyph #"scripts.segno" }

\cadenzaOn
  \stopStaff
\once \override TextScript #'word-space = #1.5
\once \override TextScript #'X-offset = #8
\once \override TextScript #'Y-offset = #1.5
| s1*0^\markup { \center-column { "D.S. al Coda" 
\line { \musicglyph #"scripts.coda" 
\musicglyph #"scripts.tenuto" \musicglyph #"scripts.coda"} } }

% Increasing the unfold counter will expand the staff-free space
\repeat unfold 4 {
  s4 s4 s4 s4
  \bar ""
}
 \startStaff
   \cadenzaOff

   
%   \once\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible 
%   \once\override Staff.KeySignature #'break-visibility = #end-of-line-invisible

   \break
   \once \override Staff.KeySignature #'break-visibility = #end-of-line-invisible
   \once \override Staff.Clef #'break-visibility = #end-of-line-invisible

   
   \clef treble \key f \major \time 3/4
   

 \once \override Score.RehearsalMark #'extra-offset = #'( -8.42 . 1.75 )

   \once \override Score.RehearsalMark #'font-size = #5
   \mark \markup { \musicglyph #"scripts.coda" }

   % The coda
   \repeat unfold 5 {
  | c4 c c 
}
\bar"|."
}
\layout {ragged-last = ##t}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Voices and vocals

2012-05-21 Thread John McWilliam
Snippet:

 

\relative c' {

  \time 4/4

  r2 r8

<<   

\new Voice = "melody" {

\autoBeamOff

\partial 4. c'4.^\markup {Sjung.}

 

% Rehersal mark A

\mark \default 

\slurDown

\repeat volta 2 {

a4 a a8 a4 g8~ |g4. g8~ g4 r8 g8 |g4 g8 g~ g g g4 |f2. r4

\times 2/3 {r4 c f} 

\times 2/3 {a d a} |e4 e8 d~ d c bes4 |e4 e8 d~ d c bes4

}

\alternative {

{a2 r8 c'4.}

{a,4 r2 r4 \bar "||"}

}

}

\new Lyrics \lyricsto "melody" {

La, La, La, La, La, La, La, La, La, La, La, La, La, La, La,
La, La, La,

La, La, La, La, La, La, La, La, La, La, La, La, La, La.

}

>> 

\autoBeamOn \oneVoice

s1

% Rehersal mark A

\mark \default

\Bkey 

d1\mf (e f g2) r4 d4 |  



\bar "|."

} %end relative

 

I have a problem with the above snippet from part of a longer piece 

of music (the clarinet part):

The snippet seems to compile, however, without any errors but no music
appears 

after the lyrics section. By chance I added S1 sfter the lyrics section to
get 

the present snippet - this produced an extra empty bar following the lyrics 

section. In desperation I decided to accept this and copied the snippet back


into the main piece, however, again, no music after the lyrics section and I


am at a loss to find an explanation. Any help would be most gratefully 

recieved. John McWilliam

 

Ribevägen 14A

217 46 Malmö

Sverige

Tel: +46-733-127711

 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Voices and vocals

2012-05-21 Thread John McWilliam
 

\relative c' {

  \time 4/4

  r2 r8

<<   

\new Voice = "melody" {

\autoBeamOff

\partial 4. c'4.^\markup {Sjung.}

 

% Rehersal mark A

\mark \default 

\slurDown

\repeat volta 2 {

a4 a a8 a4 g8~ |g4. g8~ g4 r8 g8 |g4 g8 g~ g g g4 |f2. r4

\times 2/3 {r4 c f} 

\times 2/3 {a d a} |e4 e8 d~ d c bes4 |e4 e8 d~ d c bes4

}

\alternative {

{a2 r8 c'4.}

{a,4 r2 r4 \bar "||"}

}

}

\new Lyrics \lyricsto "melody" {

La, La, La, La, La, La, La, La, La, La, La, La, La, La, La,
La, La, La,

La, La, La, La, La, La, La, La, La, La, La, La, La, La.

}

>> 

\autoBeamOn \oneVoice

s1

% Rehersal mark A

\mark \default

\Bkey 

d1\mf (e f g2) r4 d4 |  



\bar "|."

} %end relative

 

I have a problem with the above snippet from part of a longer piece 

of music (the clarinet part):

The snippet seems to compile without any errors but no music appears 

after the lyrics section. By chance I added S1 efter the lyrics section to
get 

the present snippet - this produced an extra empty bar following the lyrics 

section. In desperation I decided to accept this and copied the snippet back


into the main piece, however, again, no music after the lyrics section and I


am at a loss to find an explanation. Any help would be most gratefully 

recieved. John McWilliam

 

Ribevägen 14A

217 46 Malmö

Sverige

Tel: +46-733-127711

 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user