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
{ mkDerivation, base, binary, bytestring, containers, deepseq | |
, hashable, mtl, network, split, stdenv, stm | |
}: | |
mkDerivation { | |
pname = "vivid"; | |
version = "0.1.0.3"; | |
sha256 = "034kjk2lxfbb4hd8z1axccz9alfkm76mpgw39nisvxngjs6si158"; | |
editedCabalFile = "de2442ab5d53f8044c99cd0489281bf902ef6615028be780e0df937ae60266da"; | |
revision = "0"; | |
buildDepends = [ |
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
{ | |
packageOverrides = pkgs : rec { | |
haskellngPackages = pkgs.haskellngPackages.override { | |
overrides = self: super: rec { | |
vividNew = self.callPackage ./haskell/vivid-0.1.0.3.nix {}; | |
}; | |
}; | |
ihaskell-with-packages = pkgs.callPackage ./haskell/ng-wrapper.nix { |
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
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable, TypeFamilies, TemplateHaskell #-} | |
module Main (main) where | |
import Web.Scotty | |
--import qualified Network.Wai.Parse as P | |
import qualified Data.ByteString.Char8 as B8 | |
import Lucid | |
import Lucid.Base | |
import Web.Scotty.Session | |
import Network.HTTP.Types.Status |
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
with (import <nixpkgs> {}); | |
#{ stdenv, fetchurl, cmake, pkgconfig | |
#, jack2, libsndfile, fftw, curl | |
#, libXt, qt, readline | |
#, useSCEL ? false, emacs | |
#}: | |
let optional = stdenv.lib.optional; useSCEL = false; in |
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
module Main where | |
import System.Directory | |
import Control.Monad (when) | |
rename :: String -> String | |
rename xs = "20"++take 2 xs++"_"++f 2++"_"++(take 5 $ drop 4 xs)++"_"++f 9++"_"++drop 11 xs | |
where f n = take 2 $ drop n xs | |
main :: IO () |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import System.Environment ( getArgs ) --part of base | |
import System.Console.GetOpt --part of base | |
import Shelly (shelly, run_, verbosely, Sh) | |
import qualified Data.ByteString.Char8 as B | |
import qualified Data.Text as T |
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
//jeffs pad example | |
( | |
SynthDef(\frp1, { | |
var x = Saw.ar( \freq.kr(440) ) * 0.5.dup; | |
var env = EnvGen.ar( Env.adsr, \gate.kr(1) ); | |
Out.ar(0, x*env) | |
}).add |
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
module Main where | |
import System.Posix | |
import Network | |
import qualified Data.ByteString.Lazy as B | |
import Data.Binary | |
import Network.Socket (close) | |
import Control.Monad (forever, replicateM_) | |
import System.Environment (getArgs) | |
import System.IO |
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 qualified Data.ByteString.Lazy as B | |
import qualified Data.ByteString.Char8 as C | |
import Data.Binary.Get | |
import Data.Word | |
import Data.Binary.IEEE754 | |
import Control.Monad (replicateM) | |
import Text.Show.Pretty | |
deffile = "/home/miguel/.local/share/SuperCollider/synthdefs/testSynthDefParsing.scsyndef" | |
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
#!/usr/local/bin/sclang -l/home/miguel/bin/langconf.yaml | |
( | |
var jack_device = if("jack_lsp | grep firewire".systemCmd == 0){ | |
"firewire_pcm" | |
}{ | |
"system" | |
}; | |
"SC_JACK_DEFAULT_INPUTS".setenv(jack_device); | |
"SC_JACK_DEFAULT_OUTPUTS".setenv(jack_device); |