notes.hy 276 B

1234567891011121314151617
  1. (import [abjad [*]])
  2. (import [random [*]])
  3. (setv note [(Note "c'4") (Note "d'4")])
  4. ;(print (nth note (choice 2)))
  5. ;(print (choice 2))
  6. (setv chord [
  7. (Chord [4 6 14] (Duration (, 1 4)))
  8. (Chord [0 4 8] (Duration (, 2 4)))
  9. ]
  10. )
  11. ;(print (format (, (nth chord 1) 'lilypond')))