Skip to content

Instantly share code, notes, and snippets.

View startup.scd
a = NetAddr.new("localhost", 3333);
OSCdef(\tidalplay, {
arg msg;
a.sendMsg(*msg);
}, '/dirt/play', n);
//SuperDirt setup
s = Server.local;
s.reboot {
s.options.sampleRate = 48000;
View example04.rb
live_loop :live do
use_synth :dsaw
32.times do
play scale(:C2, :dorian, num_octaves: 4).shuffle.take(2),
cutoff: rrand(40, 120), release: rand(0.5)
sleep 0.125
end
32.times do
play scale(:G2, :dorian, num_octaves: 4).shuffle.take(2),
cutoff: rrand(40, 120), release: rand(0.5)
View example03.rb
live_loop :live do
use_synth :dsaw
play chord(:C5,:M)
sleep 1.5
play chord(:G4,:M)
sleep 1.5
play chord(:A4,:m)
sleep 1.5
play chord(:E4,:m)
sleep 1.5
View example02.rb
live_loop :live do
with_fx :flanger, depth: 2 do
use_synth :tb303
freq = choose([:C3, :E3, :F3, :G3]) + choose([-12, 0, 12]) + 2
rel = rrand(0.1, 0.5)
play freq, release: rel, cutoff: rrand(40, 120), res: 0.9
play freq+7, release: rel, cutoff: rrand(40, 120), res: 0.9
play freq+12, release: rel, cutoff: rrand(40, 120), res: 0.9
sleep 0.125
end
View example01.rb
live_loop :live do
  use_synth :tb303
  play :C2, release: 0.2, cutoff: 40, res: 0.9
  sleep 0.25
  play :G2, release: 0.2, cutoff: 60, res: 0.9
  sleep 0.25
  play :C2, release: 0.2, cutoff: 80, res: 0.9
  sleep 0.25
  play :G2, release: 0.2, cutoff: 100, res: 0.9
  sleep 0.25
@tado
tado / mymarp.css
Last active September 28, 2021 08:37
View mymarp.css
/* @theme mymarp */
@import 'default';
section {
font-family: 'Noto Sans CJK JP' !important;
}
code {
font-family: 'SF Mono', 'Consolas', 'Noto Sans CJK JP' !important;
@tado
tado / settings.json
Created June 30, 2021 12:43
Windows Terminal Preview settings
View settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},
@tado
tado / BigGanGenVideo.py
Last active February 15, 2021 02:11
Generating Video with BigGAN
View BigGanGenVideo.py
# Generating Video with BigGAN.
# Based on tensorflow hub code.
# https://www.tensorflow.org/hub/tutorials/biggan_generation_with_tf_hub
import sys
args = sys.argv
if len(args) <= 5:
print('usage: python BigGanGenMovie.py num_samples num_interps length truncation outputfile')
print('example: python BigGanGenMovie.py 1 60 2 0.2 out.mp4')
@tado
tado / MyEmacsKeymap.ahk
Created January 15, 2021 02:51
An AutoHotkey script to simulate Emacs keybindings on Windows
View MyEmacsKeymap.ahk
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; MyEmacsKeymap.ahk
;; - An AutoHotkey script to simulate Emacs keybindings on Windows
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Settings for testing
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; enable warning
;#Warn All, MsgBox
@tado
tado / settings.json
Created January 3, 2021 09:58
Windows Terminal Setting
View settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{00000000-0000-0000-ba88-000000000002}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles":
{
"defaults":
{
"closeOnExit" : "always",