swing rhythm in midi output?

2011-04-09 Thread Marc Mouries
Is possible to write regular eight notes and set settings in midi output to 
generate a swing rhythm like?

inline: SwingRhythm.gif

-Marc___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: swing rhythm in midi output?

2011-04-09 Thread Michael Ellis
One way would be to write a music function that produces converts
straight-eighths to swing values.  Here's an outline of what's needed.
 Perhaps someone has already solved this.  You should be able to find some
code in LSR that can be modified to do what you want.  Changing durations is
trivial, figuring out where the beats start is a bit messier.

swingme =
#(define-music-function parser location music) (ly:music? music)
   Scan music for pairs of eighth notes starting on a beat.  Lengthen the
first and shorten the second
   ;; your code here 
)#

mymusic = { % your notes }

\score {
\mymusic %what gets printed

\midi { \swingme \mymusic } % what gets played
}

Cheers,
Mike


On Sat, Apr 9, 2011 at 1:09 PM, Marc Mouries m...@mouries.net wrote:

 Is possible to write regular eight notes and set settings in midi output to
 generate a swing rhythm like?




 -Marc
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user