test/play_tests.rb
## TODO: Write better tests for generative syntax and sets
Write better tests for generative syntax and sets
Write better tests for generative syntax and sets
def testrandom
  zplay "e 0..11"
  sleep 0.5
  zplay "e {0..11}~"
  sleep 0.5
  zplay "e { (00000,1000) :3}"
  sleep 0.5
  sleep 0.5
  zplay "e {0..6}?"
  sleep 0.5
  zplay "e {0..6}?2"
  sleep 0.5
  zplay "e {0..6}~2*2"
  sleep 0.5
  zplay "e{(0,6)}+1*2/3%7"
  sleep 0.5
  zplay "e{(1000,4000)}<wqqee>"
  sleep 0.5
  zplay "e{0..8}<wqqeee>"
  sleep 0.5
  zplay "e{0..8}~<wqqeee>"
  sleep 0.5
  zplay "{: 100;;1000 :3}?5<qee>"
  sleep 0.5
  zplay "{: 0..4 :4}~2+1*3<eqe>"
end
def testrandom zplay "e 0..11" sleep 0.5 zplay "e {0..11}~" sleep 0.5 zplay "e { (00000,1000) :3}" sleep 0.5 sleep 0.5 zplay "e {0..6}?" sleep 0.5 zplay "e {0..6}?2" sleep 0.5 zplay "e {0..6}~2*2" sleep 0.5 zplay "e{(0,6)}+1*2/3%7" sleep 0.5 zplay "e{(1000,4000)}<wqqee>" sleep 0.5 zplay "e{0..8}<wqqeee>" sleep 0.5 zplay "e{0..8}~<wqqeee>" sleep 0.5 zplay "{: 100;;1000 :3}?5<qee>" sleep 0.5 zplay "{: 0..4 :4}~2+1*3<eqe>" end
TODO: Write better tests for generative syntax and sets
TODO : Write better tests for generative syntax and sets
# Not in ziffers 2 (yet) #zplay "e(0..2)%s" #sleep 0.5 #zplay "e(0..2)%r" #sleep 0.5 #zplay "e(0..2)%m" # Use chars and random things supported in Ziffers 2 # zplay "e Z1.? ? ? ? ? Z[1.15,0.5,1] ? ? ? ? Z1.(1,5) ? ? ? ?" #sleep 0.5 #with_synth :beep do #  2.times do zplay "q ii 443e45 iv 01212345 i q 223e45 v [q6654,e64534231,q????]", chord_sleep: 0, groups: false end #  zplay "q $ I? C0.? (0,1) I? C0.? (1,2) I? C0.? (2,3) $ [0,1,2] I? [3,4,5] I? [3,4,5] ~ ????????? ", groups: false #end