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
use_synth :piano | |
use_bpm 148 | |
play(chord(:F1, :minor), amp: 2, release: 16) | |
# play(:Gs3, release: 16) | |
# play(:C2, release: 16) | |
# play(:F1, release: 16) | |
sleep 3 |
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
-- LUA WARNINGS | |
-- Array starts from index 1 | |
-- obj.func() is equivalent to obj:func() | |
-- Loop: | |
-- for start_, end_ do | |
-- end | |
-- Condition: | |
-- if <condition> then | |
-- end | |
-- Function: |
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
defmodule Any do | |
def remove(str, char) do | |
remove("", str, char) | |
end | |
def remove(newstr, << char :: binary-size(1), rest :: binary >>, char) do | |
remove(newstr, rest, char) | |
end | |
def remove(newstr, << first :: binary-size(1), rest :: binary >>, char) do | |
remove(newstr <> first, rest, char) | |
end |
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
#Rotating binary rhythms by Robin Newman, January 2016 | |
#This piece was inspired by an article I read at http://bernhardwagner.net/musings/RPABN.html | |
#I played with the idea and extended it to give the current piece. | |
#set_sched_ahead_time! 4 #I set this when recording on a Pi2 to prevent errors | |
use_debug false | |
######### three user settings below ########### | |
rvol=0.6 #balance these two vol settings to taste (0-1) | |
lvol=1 | |
numpasses=4 #set for number of passes required (pattern repeats after 4 passes) |
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 Control.Monad.Eff | |
import Data.Array (replicate, (!!), updateAt) | |
import Data.Maybe.Unsafe (fromJust) | |
import Data.Nullable (toMaybe) | |
import Prelude | |
import DOM.HTML (window) | |
import DOM.HTML.Document (body) |
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
# the following script will import Philadelphia Crime Data | |
# Parts I and II, create a summary based on year, month, and crime type | |
# and will create a basic map in leaflet using the first 1000 incidents | |
# you will need to install dplyr, leaflet, readr, lubridate, and stringr | |
# packages ( install.packages('package name') ) | |
rm(list = ls()) | |
library(dplyr) | |
library(leaflet) | |
library(readr) |
NewerOlder