1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
{-# LANGUAGE OverloadedStrings #-}
module Sound.Tidal.ControlTest where
import TestUtils
import Test.Microspec
import Prelude hiding ((<*), (*>))
import Sound.Tidal.Control
import Sound.Tidal.Core
import Sound.Tidal.Params
import Sound.Tidal.Pattern
run :: Microspec ()
run =
describe "Sound.Tidal.Control" $ do
describe "stutWith" $ do
it "can mimic stut" $ do
comparePD (Arc 0 1)
(filterOnsets $ stutWith 4 0.25 (# gain 1) $ sound "bd")
(filterOnsets $ stut 4 1 0.25 $ sound "bd")
describe "splice" $ do
it "can beatslice" $ do
comparePD (Arc 0 1)
(splice "4 8" "0 1" $ sound "bev")
(begin "0 0.125" # end "0.25 0.25" # speed "0.5 0.25" # sound "bev" # unit "c")
|