[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variables tied with slurs
From: |
Alexander Wallace |
Subject: |
Re: variables tied with slurs |
Date: |
Sun, 29 Sep 2013 13:01:39 -0500 |
This is an interesting approach and it seems like I should be able to do what I
want with it... I'm not entirely sure I understand why it works though, why the
simultaneous rests create the tie on the snares ? I'm too new to both lilypond
and music so please forgive my naiveness.
I would just need to figure out how to put all the rests in a variable too so
that I would not have to have them explicitly typed so many times:
Thank you so much for your response!
Here is sort of how it would go:
% for a DrumVoice
A = \drummode { sn8 sn8 }
B = \drummode { sn8. sn16 }
C = \drummode { sn16 sn8. }
\score {
\new DrumStaff {
\new DrumVoice {
\time 2/4
<< { \A \A | s2 |\A \B | s2 |\A \C } { s8 s~ s s | s2 | s8 s~ s s | s2 | s8 s~
s s } >>
}
}
\layout { }
\midi { }
}
On Sep 27, 2013, at 1:39 AM, Jan-Peter Voigt wrote:
> Hello Alexander,
>
> the \drums command implicitly creates a new DrumStaff, so I recommend using
> \drummode for this purpose.
> If you have basic patterns, which shall receive "random" ties, you can create
> SimultaneousMusic with a << >> construct and overlay the patterns with the
> needed ties:
>
> --snip--
>
> % for a normal Voice
> A = \relative { c8 c }
> \new Staff \new Voice << { \A \A } { s8 s~ s s } >>
>
> % for a DrumVoice
> B = \drummode { sn8 sn }
> \new DrumStaff \new DrumVoice << { \B \B } { s8 s~ s s } >>
>
> --snip--
>
> HTH
> Cheers, Jan-Peter
>
> Am 27.09.2013 05:23, schrieb Alexander Wallace:
>> Hi all,
>>
>> For study purposes, i want to do 128 rithmic patterns composed of 7 basic
>> rithmic patterns combined via a tie.
>>
>> Rather than writing the 128 patterns separately I'd love to write the basic
>> 7 as variables and then just reuse them.
>>
>> Say that I write:
>>
>> A = \drums { sn8 sn8 }
>>
>> How could I write the equivalent of
>>
>> \drums { sn8 sn8 ~ sn8 sn8 }
>>
>> using variables?
>>
>> This doesn't work:
>>
>> { \A ~ \A }
>>
>> Is there any way?
>>
>> Thank you so much in advance.
>>
>>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: variables tied with slurs, Alexander Wallace, 2013/09/29
Re: variables tied with slurs, Jan-Peter Voigt, 2013/09/27
- Re: variables tied with slurs,
Alexander Wallace <=