Skip to content

Instantly share code, notes, and snippets.

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
/* @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
{
"$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
# 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 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
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{00000000-0000-0000-ba88-000000000002}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles":
{
"defaults":
{
"closeOnExit" : "always",
@tado
tado / sketch.js
Created December 16, 2020 05:27
p5.js-svg SVG file export test
//p5.js-svg file export test
function setup() {
createCanvas(1280, 720, SVG);
strokeWeight(0.4);
stroke(0);
noFill();
}
function draw() {
@tado
tado / ParticleVec3.cpp
Created October 28, 2020 04:56
openFrameworks 3D Particle Example
#include "ParticleVec3.h"
ParticleVec3::ParticleVec3() {
location = glm::vec3(ofGetWidth()/2, ofGetHeight()/2, 0);
velocity = glm::vec3(ofRandom(-5, 5), ofRandom(-5, 5), ofRandom(-5, 5));
isLive = true;
lifeTime = 10.0; //lifetime in sec
initTime = ofGetElapsedTimef();
}
@tado
tado / start.scd
Created August 27, 2020 02:05
SuperCollider startup file for Super-Dirt with extra samples

/* // foward OSC from TidalCycles var addr = NetAddr.new("127.0.0.1", 3333); OSCFunc({ |msg, time, tidalAddr| var latency = time - Main.elapsedTime; msg = msg ++ ["time", time, "latency", latency]; // msg.postln; addr.sendBundle(latency, msg) }, '/play2').fix; */

// foward OSC from TidalCycles
var addr = NetAddr.new("127.0.0.1", 3333);
OSCFunc({ |msg, time, tidalAddr|
var latency = time - Main.elapsedTime;
msg = msg ++ ["time", time, "latency", latency];
// msg.postln;
addr.sendBundle(latency, msg)
}, '/play2').fix;