After watching Play With Your Rythm: Drum Patterns, I was inspired to program some of these patterns in Melrōse.
Later, I decided to introduce new functions notemap
and notemerge
to simplify the language notation as seen in the video that better match the patterns as documented in 🔗Drum Patterns.
// Ashley's Roachclip
drum10 = merge(16,
notemap('1 3 7 10 11', midi(36,72)),
notemap('5 13', note('e2')),
notemap('1 3 5 7 9 13 15', midi(42,72)),
notemap('11', midi(46,72)),
notemap('1 3 5 7 9 11 13 15', midi(54,40)),
notemap('2 4 6 8 10 12 14 16', midi(54,100)))
lp_drum10 = loop(fraction(16,drum10))
Here is another that use extra variables to explain the sounds used.
// Its a New Day
kick=note('c2')
closehi=note('g#2')
snare=note('e2')
drum11 = merge(16,
notemap('1 3 11 12 16' ,kick),
notemap(' 5 13' ,snare),
notemap('1 3 5 7 9 11 13 15',closehi))
lp_drum11 = loop(fraction(16,drum11))