forked from frantic0/tidal-workshop
-
Notifications
You must be signed in to change notification settings - Fork 6
/
visinit.tidal
55 lines (35 loc) · 1.11 KB
/
visinit.tidal
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import Sound.Tidal.Vis
import qualified Graphics.Rendering.Cairo as C
let vis name pat = vLines (C.withSVGSurface) (name ++ ".svg") (600,50) pat 1 1
vis "test" $ "red blue"
import Sound.Tidal.Vis
import Sound.OSC.FD
import Control.Concurrent.MVar
import Data.Maybe
import System.IO.Unsafe
import qualified Graphics.Rendering.Cairo as C
import Data.Colour
import Data.Colour.Names
import Data.Colour.SRGB
import Sound.Tidal.Vis2
import System.Cmd
let v name p = do vis (name) p
rawSystem "/home/alex/Dropbox/bin/fixsvg.pl" [name ++ ".svg"]
rawSystem "convert" [name ++ ".svg", name ++ ".pdf"]
return ()
blend' :: Pattern ColourD -> Pattern ColourD -> Pattern ColourD
blend' a b = blend 0.5 <$> b <*> a
v "subpattern1" $
"{purple yellow, red blue orange}"
v "subpattern1" $
"tomato*8"
d1 $ loopAt 1 $ sound "arc"
d1 $ sound "arc"
# speed 2.45
d1 $ sound "bd sd ~ bd drum:2 ~ ~ arpy"
d1 $ silence
d1 $ sound "bd sd [~ bd] sd"
fast 4 $ iter 4 "black blue lightblue white"
v "hello" $ "red"
now
let v1 = v "/home/alex/SparkleShare/tidal-workshop/vis"