-----Original Message----- From: James Lowe [mailto:[email protected]] Sent: Tuesday, June 14, 2011 1:58 PM To: Steven Weber; [email protected] Subject: RE: Can you make MultiMeasureRests ignore spaces?
Hello ________________________________________ From: Steven Weber [[email protected]] Sent: 14 June 2011 21:01 To: James Lowe; [email protected] Subject: RE: Can you make MultiMeasureRests ignore spaces? ------------------ From: [email protected] [mailto:[email protected]] On Behalf Of Steven Weber Sent: 11 June 2011 22:35 To: [email protected] Subject: Can you make MultiMeasureRests ignore spaces? I'm trying to separate my layout from my notes - what I'd like to have is something like: Notes = { R1*4/4*4 | } Layout = { s1*4/4*1 | s1*4/4*1 | s1*4/4*1 | s1*4/4*1 | } \score { \new Staff << \compressFullBarRests \Notes \Layout >> } However, when I have the layout per measure, the MultiMeasureRest doesn't get compressed. It's easy to solve by just doing s1*4/4*4, but I'd like to leave the layout in individual measures if possible. Any suggestions? ----------------------- [James' reply:] Put the \compressFullBarRests inside the music variable Notes = { \compressFullBarRests R1*4/4*4 } etc James ----------------------- Yup, I've tried that; it doesn't work. I still get 4 bars of rests instead of 1 multi-measure rest regardless of where I put the \compressFullBarRests. ------------------------ [James reply:] Yes sorry I didn't notice. It will work if you use one instance s1*4/4*4 instead of 4 instances of s1*4/4*1 So you want to have 4 bars of simultaneous music (polyphony) where the top voice is a multimeasure rest and the bottom voice is 4 bars? I don't really know what you are trying to achieve here. Even if explicitly state new staves << \new Staff \Notes \new Staff \Layout >> You get 4 bars or music one with 4 R1 rests and the other with 4 of blank music. There is no musical reason you'd use 'spacer' rests in this context except to show this problem - which is seems to be a nonsense (no offence intended) example. The idea is that a measure shows the musics moment, the fact you use a single space reset 4 times is the same as using a single crotchet note. For instance what would you expect if you replaced s1 with c1 in your example? Perhaps it is better to understand what you want to achieve using a real world example. James ----------------------- My goal is to completely separate my layout from my notes - as a non-musical comparison, I'd like Notes to be my HTML, and Layout to be my CSS. I'm currently doing this with the s1*4/4*4 notation, but I'd like to be able to do it with s1*4/4*1 (repeated multiple times) because it's much easier to find the exact measure I want this way (I have a measure number comment every 5 measures in the note section, so I want to say "add a break after measure 78" rather than "add a break 32 measures after the last break I inserted" in the layout section). So for a more real-world example, I'd want to do something like: Notes = { R1*4/4*4 | } Layout = { s1*4/4*1 | s1*4/4*1 \break | s1*4/4*1 | s1*4/4*1 | } \new Score { << \compressFullBarRests \Notes \Layout >> } And wind up with one staff that has 2 multi-measure rests (both of them 2 measures long) - as if Layout was defined as { s1*4/4*2 \break s1*4/4*2 }. Does that make more sense? Thanks! --Steven _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
