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
# Chord Sequence only in Sonic Pi | |
# (no MIDI or need for external DAW) | |
define :chordSeq do | tonic, mode, degs | | |
majorKeyTriads = [:M,:m,:m,:M,:M,:m,:dim] | |
minorKeyTriads = [:m,:dim,:M,:m,:m,:M,:M] | |
majorKey7s = [:M7,:m7,:m7,:M7,:dom7,:m7,:halfdiminished] | |
minorKey7s = [:m7,:halfdiminished,:M7,:m7,:m7,:M7,:dom7] | |
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
# Create Chords in Sonic Pi, to send via MIDI to your other DAW or synth | |
# See https://www.youtube.com/watch?v=qd8SEL_rTNw | |
define :chordSeq do | tonic, mode, degs | | |
majorKeyTriads = [:M,:m,:m,:M,:M,:m,:dim] | |
minorKeyTriads = [:m,:dim,:M,:m,:m,:M,:M] | |
majorKey7s = [:M7,:m7,:m7,:M7,:dom7,:m7,:halfdiminished] | |
minorKey7s = [:m7,:halfdiminished,:M7,:m7,:m7,:M7,:dom7] | |
cs = [] |
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
script "JavaScript ByteBeats" language "javascript"; | |
function generator(t) { | |
return (128&t*(4|7&t>>13)>>(1&-t>>11))+(127&t*(t>>11&t>>13)*(3&-t>>9)) ; | |
} | |
function makeSample(length,srate,norm) { | |
var start = 0; | |
var end = 0; | |
var s; |
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_bpm 145 | |
# Our chord sequence | |
p1 = [chord(:E3,"minor7"), | |
chord(:G3,"major7"), | |
chord(:A3,"minor7"), | |
chord(:G3,"m9"), | |
chord(:E3,"m9"), | |
chord(:C3,"minor7"), |
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
(ns clojure-web-server.routes.services | |
(:require [ring.util.http-response :refer :all] | |
[compojure.api.sweet :refer :all] | |
[schema.core :as s]) | |
) | |
(defonce ideias (atom {:id 0 :nome "root" :criancas | |
[{:id 1 :nome "hello" :criancas {}}]})) | |
(defn buscar [id ids] |
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
license: mit |
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
# Five Minutes | |
# requires Phil's Sonic Pi Lib ( https://github.com/interstar/Phil-s-Sonic-Pi-Lib ) | |
section = :a | |
live_loop :clock do | |
section=wait_then(1,:b) | |
puts section |
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
define :trans do |xs, d| | |
return xs.collect { |x| (x+d) } | |
end | |
ritmo = [0.2,0.4,0.2,0.4] | |
i = [:c3,:eb3,:g3,:c4,:c3,:eb3,:g3,:c4] | |
iv = (trans i, 5) | |
v = (trans i, 7) |
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
#include <Bounce.h> | |
int anaPin = 5; // Analogue in pin | |
int button = 2; // button pin | |
int beepPin = 3; // piezo buzzer | |
// edges of our calibration window | |
float aMax; | |
float aMin; |
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
from os import listdir | |
from os.path import isfile, join | |
onlyfiles = [ f for f in listdir(".") if isfile(join("",f)) ] | |
import json | |
print """ | |
<html> | |
<style> | |
body { |