Scope of scheme defines in Lilypond projects

2011-02-10 Thread Simon Mackenzie
Hi I'm wanting to write some globally accessible scheme functions / procedures (defines) for my lilypond project but the documentation on such seems a bit limited. I.e. Do \header, \page and other contexts introduce new variable scopes (assuming yes here)? If so, how can scheme functions and va

Accessing public defines in scheme modules

2011-02-09 Thread Simon Mackenzie
If I use the following to load a scheme module into a lilypond script file I can use any of the public interfaces in this current file. #(load "init/credits.scm") #(use-modules (init credits)) %get access to the public defines in credits.scm #(ech 'set-song-number "66.") % ech is a public defin

Re: Accidental_engraver & Naturals

2009-08-26 Thread Simon Mackenzie
I can offer. Cheers Reverend Simon Mackenzie Lutheran Church of Australia [[ http://www.lca.org.au/ ]] On 27/08/2009, at 09:14, David Rogers wrote: On Thu, Aug 20, 2009 at 08:03, Simon Mackenzie wrote: I haven't been able to figure out how to replicate the three naturals on this music s

Re: Accidentals: Unwanted naturals

2009-08-25 Thread Simon Mackenzie
The key signature assignment tells LilyPond how to display the pitches. For exmaple; 'e' *always* means e-natural no matter what the key signature is. -David Simon Mackenzie wrote: Hi guys correct me if I am wrong. The g minor chord has two flats Eb & Bb which need to be marked as

Re: Accidentals: Unwanted naturals

2009-08-25 Thread Simon Mackenzie
In response to Graham and others who have expressed frustration about people who have failed to pickup on accidentals. It can be very difficult for fist time novices like myself to understand implicit information about what is a reasonably technical musical concept. I spent four hours last

Re: Accidentals: Unwanted naturals

2009-08-25 Thread Simon Mackenzie
Hi guys correct me if I am wrong. The g minor chord has two flats Eb & Bb which need to be marked as es and bes in Lilypond other wise the Accidental_engraver sees them as naturals in the g minor chord, hence the natural symbol for any unmarked E or B note in your music. Just trying to se

Re: Naturals & Accidental_engraver

2009-08-23 Thread Simon Mackenzie
For basic music theory this site seems helpful... http://www.8notes.com/ Simon On 24/08/2009, at 09:28, Simon Mackenzie wrote: Hi All, Yes by now you would have figured out I am musically challenged, seriously musically challenged. 1) My initial task was to generate a result which would

Re: Naturals & Accidental_engraver

2009-08-23 Thread Simon Mackenzie
people what to do and teaching people what to do and why are not the same thing. Many thanks to those who have taught me what to do and why, it is equipping me to be a teacher of others. Reverend Simon Mackenzie Lutheran Church of Australia On 23/08/2009, at 22:19, Patrick Schmidt wrote: Hi

Re: Naturals & Accidental_engraver

2009-08-21 Thread Simon Mackenzie
I guess I'm simple minded so enlighten me ;-) Simon On 21/08/2009, at 15:24, Graham Percival wrote: On Fri, Aug 21, 2009 at 03:13:40PM +0700, Simon Mackenzie wrote: It will be helpful not to think about the problem from the Lilypond side of things. No, that will not be helpful. Sto

Re: Naturals & Accidental_engraver

2009-08-21 Thread Simon Mackenzie
hard copy of the music sheet above.Simon On 21/08/2009, at 11:52, James E. Bailey wrote: On 21.08.2009, at 04:21, Simon Mackenzie wrote:I'm lost on this one...If I place the override in the voice context I end up with the following which is nothing like what I need to achieve.Okay, I think I

Re: Naturals & Accidental_engraver

2009-08-20 Thread Simon Mackenzie
g the stencil in the music. i.e., with \once \override Staff.Accidental_engraver #'stencil = ##f Just trying to get my head around how all this works. On 20.08.2009, at 18:10, Simon Mackenzie wrote: If I turn Accidental_engraver off no accidentals appear as expected but then if leave

Re: Layout and coding style

2009-08-20 Thread Simon Mackenzie
Simon On 20/08/2009, at 23:04, Mark Polesky wrote: Simon Mackenzie wrote: I have revised my approach to the question of what constitutes good coding style and come up with this layout for my master music sheet files. Any comments on the following style and layout would be appreciated

Re: Naturals & Accidental_engraver

2009-08-20 Thread Simon Mackenzie
If I turn Accidental_engraver off no accidentals appear as expected but then if leave it on I don't seem to be able to manually set naturals with ! and exclude / turn off everything else. Simon On 20/08/2009, at 22:48, James E. Bailey wrote: On 20.08.2009, at 17:39, Simon Mackenzie

Naturals & Accidental_engraver

2009-08-20 Thread Simon Mackenzie
I haven't been able to figure out how to replicate the three naturals on this music sheet using Lilypond script? Any ideas? <> Simon ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Layout and coding style

2009-08-20 Thread Simon Mackenzie
I have revised my approach to the question of what constitutes good coding style and come up with this layout for my master music sheet files. Any comments on the following style and layout would be appreciated. There are separate chord and voice include files and each lyric verse is also p

Re: problems with learning lilypond

2009-08-12 Thread Simon Mackenzie
Yeah it's proving to be an interesting learning experience trying to wrap my head around Lilypond. I feel it is like a multi-headed beast with Scheme & Lilypond script intermingled together. It makes for an interesting mix to get ones head around. The manuals are helpful but there are hugh

Re: problems with learning lilypond

2009-08-09 Thread Simon Mackenzie
f4 e8[ e8]( | c2.) g'8[ b8] | g4. c8 b4 e,8[ f8] | g2. c8[ c8] |\break ... f4. e8 c4 e8[( b8)] | c2 f4 f4 | f4. e8 c4 b8[( e8)] | c1 | \bar "|." } === End - CHORDSNOTES_061.ly == Cheers Simon On 08/08/2009, at

Re: problems with learning lilypond

2009-08-08 Thread Simon Mackenzie
Ahhh! Thank you. Simon On 08/08/2009, at 20:04, Mats Bengtsson wrote: Quoting Simon Mackenzie : Ok it appears to be a scoping issue. So I need to declare variables outside the \book scope? Is this correct? But if my script file is included inside a \book scope how can i then declare

Re: problems with learning lilypond

2009-08-08 Thread Simon Mackenzie
Simon On 08/08/2009, at 05:41, Trevor Daniels wrote: Simon Mackenzie wrote Friday, August 07, 2009 3:55 PM Eg. What does it mean on page 34 of the Learning Tutorial when it says... "Variables must be defined before the main music expression." Does this mean the \score { }

Re: problems with learning lilypond

2009-08-07 Thread Simon Mackenzie
Ok it appears to be a scoping issue. So I need to declare variables outside the \book scope? Is this correct? But if my script file is included inside a \book scope how can i then declare new variables inside this scope? Simon On 07/08/2009, at 21:55, Simon Mackenzie wrote: Agreed!!! Eg

Re: problems with learning lilypond

2009-08-07 Thread Simon Mackenzie
Agreed!!! Eg. What does it mean on page 34 of the Learning Tutorial when it says... "Variables must be defined before the main music expression." Does this mean the \score { } or does it mean the expression in which the declared variable is referenced? Because I dutifully declare my vari

Re: Compiling on MAC OS X 10.5.7

2009-06-19 Thread Simon Mackenzie
On 19/06/2009, at 11:21 AM, Graham Percival wrote: On Fri, Jun 19, 2009 at 09:08:11AM +0700, Simon Mackenzie wrote: On 19/06/2009, at 8:37 AM, Tim McNamara wrote: On 18.06.2009, at 16:05, Simon Mackenzie wrote: Has any one had any success compiling Lilypond 2.12.2 on a MAC OS X 10.5.7

Re: Compiling on MAC OS X 10.5.7

2009-06-18 Thread Simon Mackenzie
On 19/06/2009, at 8:37 AM, Tim McNamara wrote: On Jun 18, 2009, at 7:08 PM, Simon Mackenzie wrote: On 18/06/2009, at 11:29 PM, James E. Bailey wrote: On 18.06.2009, at 16:05, Simon Mackenzie wrote: Hi All, Has any one had any success compiling Lilypond 2.12.2 on a MAC OS X 10.5.7

Re: Compiling on MAC OS X 10.5.7

2009-06-18 Thread Simon Mackenzie
On 18/06/2009, at 11:29 PM, James E. Bailey wrote: On 18.06.2009, at 16:05, Simon Mackenzie wrote: Hi All, Has any one had any success compiling Lilypond 2.12.2 on a MAC OS X 10.5.7 system? Cheers Reverend Simon Mackenzie Lutheran Church of Australia Nan Thailand I've

Compiling on MAC OS X 10.5.7

2009-06-18 Thread Simon Mackenzie
Hi All, Has any one had any success compiling Lilypond 2.12.2 on a MAC OS X 10.5.7 system? Cheers Reverend Simon Mackenzie Lutheran Church of Australia Nan Thailand ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org