lilypond-user
[Top][All Lists]
Advanced

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

Scheme programming pointers


From: Chris Yate
Subject: Scheme programming pointers
Date: Tue, 05 Dec 2017 19:16:51 +0000

Hi all,

I can probably work a lot out on my own, but if someone could direct me to any Lilypond-specific Scheme tutorials that might help with the idea I'm thinking about, that would be super!

My idea is to remove a lot of boilerplate for score creation. Thus I can have music defined as:
----
violinIMusic = \relative c' { ... }
violinIIMusic = etc.
---
and voices as 

----
violinIVoice = etc.
violinIIVoice = etc. 
---

Also Staffs, Headers, etc as required.

Then include these all in both Parts and Score files by something general, like the following, very rough pseudocode.

---
( define instruments '("violinI" "violinII" "viola") )

( for each ( instrument : instruments )
  \new Staff { 
      \$[instrument]Headers
      \$[instrument]Voice {  
          (if \transposing (
               \$[instrument]Transposition ))
               \$[instrument]Music 
         } 
)
---

I am sure there is precedent for this and I need not invent it myself!!

Thanks in advance for all help :-) 
 
Chris


reply via email to

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