[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Duration comparison and swinging MIDI output
From: |
Janek Warchoł |
Subject: |
Re: Duration comparison and swinging MIDI output |
Date: |
Sun, 8 May 2011 01:06:17 +0200 |
2011/5/6 Christopher R. Maden <address@hidden>:
> The attached file is good enough for me.
>
> It includes (duration-equals?) which may be of general interest.
>
> It also includes the \sw function, which, given a sequence, returns two
> tagged sequences:
>
> \sw {
> \relative c' {
> a'4 a8 b a fs e d |
> }
> }
>
> becomes
>
> {
> \tag #'layout {
> \relative c' {
> a'4 a8 b a fs e d |
> }
> }
> \tag #'midi {
> \relative c' {
> a'4
> \times 2/3 a4 \times 2/3 b8
> \times 2/3 a4 \times 2/3 fs8
> \times 2/3 e4 \times 2/3 d8 |
> }
> }
> }
>
> It can then be used with
>
> \keepWithTag #'layout \theTune
> \keepWithTag #'midi \theTune
Nice, thanks for sharing!
Have you considered adding it to LSR?
cheers,
Janek