Re: rhythm template function

2008-06-03 Thread Stefan Thomas
Great, it works perfectly! 2008/6/3 Gilles THIBAULT <[EMAIL PROTECTED]>: > > > > Dear Gilles, > thanks for Your tipp! But I tried it with an own example, that does not > work, I don't know why: > \include "rhythmen.ly" > > sax = #(define-music-function (parser location musicA musicB musicC) >

Re: rhythm template function

2008-06-03 Thread Gilles THIBAULT
Dear Gilles, thanks for Your tipp! But I tried it with an own example, that does not work, I don't know why: \include "rhythmen.ly" sax = #(define-music-function (parser location musicA musicB musicC) (ly:music? ly:music? ly:music?) #{ \set tupletSpannerDuratio

Re: rhythm template function

2008-06-03 Thread Stefan Thomas
Dear Gilles, thanks for Your tipp! But I tried it with an own example, that does not work, I don't know why: \include "rhythmen.ly" sax = #(define-music-function (parser location musicA musicB musicC) (ly:music? ly:music? ly:music?) #{ \set tupletSpannerDuration = #(ly:make-mom

Re: rhythm template function

2008-06-02 Thread Gilles THIBAULT
Yes, I tried the snippet You mentioned below (http://lsr.dsi.unimi.it/LSR/Item?id=390), but there is another problem: unfortunately it is difficult to integrate tuplets in it! Using the rhythm.ly defined in this snippet, you can do something like that. %%% \incl

Re: rhythm template function

2008-05-31 Thread Stefan Thomas
ost uses though. > > -Jay > > On Fri, May 30, 2008 at 12:04 PM, Stefan Thomas > <[EMAIL PROTECTED]> wrote: > > Dear Jay, > > today I tried Your great rhythm template function. > > I have one quetion about it: does it work only with repetitions of the >

Re: rhythm template function

2008-05-30 Thread Jay Anderson
k find for most uses though. -Jay On Fri, May 30, 2008 at 12:04 PM, Stefan Thomas <[EMAIL PROTECTED]> wrote: > Dear Jay, > today I tried Your great rhythm template function. > I have one quetion about it: does it work only with

re: rhythm template function

2008-05-30 Thread Stefan Thomas
Dear Jay, today I tried Your great rhythm template function. I have one quetion about it: does it work only with repetitions of the same note? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: rhythm template function

2008-05-24 Thread Jay Anderson
Ok, I played with it a bit more. I still don't like the relative hack, but I think the code below is slightly cleaner. #(define (nondestructive-music-map fn mus) (music-map fn (ly:music-deep-copy mus))) #(define (create-note pitch duration) (make-music 'NoteEvent 'duration duration 'p

Re: rhythm template function

2008-05-24 Thread Jay Anderson
Whoops, you're right. I should have tested that. I'm betting that there is an easier way to do this (Something more like the staccato snippet http://lsr.dsi.unimi.it/LSR/Snippet?id=82). I'll hopefully get a chance to mess with it a bit more this weekend (Memorial day on Monday here in the US). Than

Re: rhythm template function

2008-05-22 Thread Alard de Boer
On Thu, May 22, 2008 at 5:09 AM, Jay Anderson <[EMAIL PROTECTED]> wrote: > "Easy Rhythm Template Creation" added to the lsr. Thanks. > > -Jay Hi Jay, I had some trouble getting tuplets to work with your snippet. Here's a modified version that checks whether a tuplet (TimeScaledMusic) is used

Re: rhythm template function

2008-05-21 Thread Jay Anderson
"Easy Rhythm Template Creation" added to the lsr. Thanks. -Jay On Tue, May 20, 2008 at 1:38 AM, Alard de Boer <[EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 6:44 AM, Jay Anderson <[EMAIL PROTECTED]> wrote: >> Here's a snippet I've used a couple times. If there's interest I'll >> add it

Re: rhythm template function

2008-05-20 Thread Alard de Boer
On Tue, May 20, 2008 at 6:44 AM, Jay Anderson <[EMAIL PROTECTED]> wrote: > Here's a snippet I've used a couple times. If there's interest I'll > add it to the LSR. (I'm currently getting an 'invalid security > certificate' when I go here > https://lsr.dsi.unimi.it/list.php?type=usr). This is very s

rhythm template function

2008-05-19 Thread Jay Anderson
Here's a snippet I've used a couple times. If there's interest I'll add it to the LSR. (I'm currently getting an 'invalid security certificate' when I go here https://lsr.dsi.unimi.it/list.php?type=usr). This is very similar to http://lsr.dsi.unimi.it/LSR/Item?id=302 except that it's easier to defi