Simon, )-----Original Message----- )From: lilypond-user-bounces+james.lowe=datacore....@gnu.org )[mailto:lilypond-user-bounces+james.lowe=datacore....@gnu.org] On )Behalf Of Simon Mackenzie )Sent: 11 February 2011 07:37 )To: lilypond-devel@gnu.org )Cc: lilypond-u...@gnu.org )Subject: Scope of scheme defines in Lilypond projects ) )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 variables be defined globally for access in all such )scopes within a lilypond project?
I am not a scheme programmer but want to check that you have considered the \include and \global settings? http://lilypond.org/doc/v2.13/Documentation/notation/working-with-input-files Simply put; have a single file with all your 'global' settings in and then you can include other files that you need - for instance many of the mutopia scores that are in LilyPond format are done like this with a single 'global' file - the main score and all the various instrument files - the notes - done separately. You can then add the scheme functions to the one file and then just include that file in all your other .ly files as needed. Hope this helps. James _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel