Skip to content

Instantly share code, notes, and snippets.

@rndmcnlly
Created November 12, 2009 01:40
Show Gist options
  • Select an option

  • Save rndmcnlly/232510 to your computer and use it in GitHub Desktop.

Select an option

Save rndmcnlly/232510 to your computer and use it in GitHub Desktop.
;; complete project: http://github.com/rndmcnlly/cfml
;;;;
;;;; top-level-style defintions (try redefining them while the song is playing)
;;;;
(define (bump)
(literal 1/2 '((0 3 0 1 1/2))))
(define (lump)
(after bump
(tra 2 bump)
(tra 4 bump)
(tra 5 bump)))
(define (string-step)
(literal 2 '((0 4 0 1 2)(1 4 7 1 1)(0 4 2 1 2))))
(define (string-end)
(literal 2 '((0 4 4 1 1)(1 4 -1 1 1))))
(define (song)
(choose (vol 2/3 string-end)
(tra +2 (after (during string-step
(after lump (tra -4 lump)))
song))))
(perform song 120 (pc:scale 0 'dorian))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment