This file contains 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
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
""" | |
USAGE: | |
morphagene_ableton.py -w <inputwavfile> -l <inputlabels> -o <outputfile>' | |
Instructions in Ableton: | |
Insert locators as splice markers in your project (Create > Add Locator) | |
Export Audio/Video with | |
Sample Rate: 48000 Hz |
This file contains 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
{ | |
"graph": [], | |
"links": [ | |
{"source": 0, "target": 1}, | |
{"source": 0, "target": 2}, | |
{"source": 0, "target": 3}, | |
{"source": 0, "target": 4}, | |
{"source": 0, "target": 5}, | |
{"source": 0, "target": 6}, | |
{"source": 1, "target": 3}, |
This file contains 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
module Main where | |
import Prelude (Unit, pure, bind, ($), show, class Show) | |
import Effect (Effect) | |
import Data.Maybe (Maybe(Just, Nothing)) | |
import Data.Array (head) | |
import TryPureScript (p, text, render) | |
import Data.Foldable (fold) | |
This file contains 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
var chart = function (data) { | |
var root = treemap(data) | |
svg | |
.selectAll('g') | |
.data(root.leaves(), d => d.data.id) | |
.join( | |
enter => enterBoxAndName(enter), | |
update => updateBoxAndName(update) | |
) |
This file contains 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
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE TypeOperators #-} | |
module Main where | |
import Codec.Picture | |
import Codec.Picture.Types as M | |
import System.Environment (getArgs) | |
import System.FilePath (replaceExtension) | |
import qualified Codec.Picture.Metadata as M |
This file contains 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
-- targeting this XML: | |
-- <label id="123">do</label> | |
xpLabel :: PU Label | |
xpLabel = xpElem "label" $ | |
xpWrap ( uncurry Label | |
, \l -> (lid l, ltext l) | |
) $ | |
xpPair (xpAttr "id" xpickle) | |
(xpXmlText) |
This file contains 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
module PackageData where | |
import Prelude | |
import Control.Monad.Eff (Eff) | |
import Control.Monad.Eff.Exception (Error) | |
import D3.Base (D3) | |
import D3.ForceSimulation (GroupedForceLayout) | |
import Data.Array (zip, concatMap, (!!), (:), (..), nub, length) | |
import Data.Either (Either(Right, Left)) |
This file contains 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
module Main where | |
import Prelude | |
import Control.Alt ((<|>)) | |
import Data.Argonaut (Json, decodeJson, (.?)) | |
import Data.Either (Either) | |
data Response = A { commandResponse :: String, value :: String } | |
| B { command :: String, value :: Int } |
This file contains 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
module Main where | |
import Control.Monad.Eff.Console (CONSOLE) | |
import D3.Base (PolyValue(SetByIndex), D3, Eff, Index, D3Element, Nodes, AttrSetter(..), DataBind(..), (..), (...)) | |
import D3.Selection (text, style, attr, append, enter, dataBind, selectAll, getAttr, d3Select) | |
import D3.Tree (size, HierarchyNode, descendants, layoutTree, d3Hierarchy, d3Tree, hasChildren, parent) | |
import Data.Array (drop) | |
import Data.Maybe (Maybe(..)) | |
import Prelude (show, pure, bind, (<>), Unit, unit, (-), ($), (/), (+), (<$>), negate) |
This file contains 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
module Main where | |
import Control.Monad.Eff.Console (CONSOLE) | |
import D3.Base (D3, Eff, D3Element, Index, Point, AttrSetter(..), DataBind(..), ListenerType(..), PolyValue(..), Typenames(..), (...), (..)) | |
import D3.Drag (addDragListener, d3Drag, dragUpdate) | |
import D3.Scale (scaleBy, schemeCategory10, ScaleType(Category), d3Scale) | |
import D3.Selection (call, style, attr, append, enter, dataBind, selectAll, d3Select, selectElem) | |
import D3.Zoom (addZoomListener, scaleExtent, d3Zoom, getZoomEvent) | |
import Data.Maybe (Maybe(..)) | |
import Prelude (Unit, unit, pure, bind) |
NewerOlder