Created
June 29, 2017 14:45
-
-
Save kindohm/5e720c08383dac30d47be8d17a3bf80a to your computer and use it in GitHub Desktop.
tidal-vis and calls .pl file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Sound.Tidal.Vis | |
| import qualified Graphics.Rendering.Cairo as C | |
| import Data.Colour | |
| import Data.Colour.Names | |
| import Data.Colour.SRGB | |
| import System.Cmd | |
| let vis name pat = do vLines (C.withSVGSurface) (name ++ ".svg") (600,50) pat 1 1 | |
| rawSystem "/home/alex/Dropbox/bin/fixsvg.pl" [name ++ ".svg"] | |
| rawSystem "convert" [name ++ ".svg", name ++ ".pdf"] | |
| return () | |
| vis "14-example-1" "lightgray darkgray black" | |
| vis "14-example-2" "lightgray [darkgray white] black" | |
| vis "14-example-3" "white [darkgray [white lightgray]] black" | |
| vis "14-example-4" "[darkgray lightgray white] [black lightgray]" | |
| vis "14-example-5" "[darkgray lightgray white, lightgray black]" | |
| vis "14-example-6" "[darkgray black, [lightgray black]/2 white]*4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment