Skip to content

Instantly share code, notes, and snippets.

@tado
tado / startup.scd
Last active December 15, 2022 01:09
My SuperCollider startup file

//SuperDirt setup s = Server.local; s.reboot { s.options.sampleRate = 48000; //s.options.sampleRate = 192000; s.options.numBuffers = 1024 * 256; // increase this if you need to load more samples s.options.memSize = 8192 * 32; // increase this if you get "alloc failed" messages s.options.numWireBufs = 64; // increase this if you get "exceeded number of interconnect buffers" messages s.options.maxNodes = 1024 * 32; // increase this if you are getting drop outs and the message "too many nodes" s.options.numOutputBusChannels = 2; // set this to your hardware output channel size, if necessary

@tado
tado / preload.js
Last active July 6, 2022 03:16
Notion CSS customize
// change font setting CSS for Windows app
function injectStylesheet(){
var styleSheet = `
.notion-collection_view_page-block .notranslate,
.notion-page-block .notranslate,
.notion-header-block .notranslate,
.notion-sub_header-block .notranslate,
.notion-sub_sub_header-block .notranslate,
.notion-app-inner
{
@tado
tado / swap fonts noto sans JP
Last active March 18, 2024 22:49
my Stylus CSS
@font-face {
font-family: 'Meiryo';
src: local('Noto Sans JP');
}
@font-face {
font-family: 'メイリオ';
src: local('Noto Sans JP');
}
@tado
tado / theme.txt
Created May 23, 2022 04:31
Processing Theme Settings
# The gradient.top and gradient.bottom lines are used by makeGradient(),
# so search for makeGradient() calls to see whether they're still in use.
## EditorToolbar ##
# TOOLBAR BUTTON TEXT
#toolbar.rollover.font = processing.sans,plain,12
toolbar.rollover.font = roboto,12
toolbar.rollover.color = #FFFFFF
toolbar.gradient.top = #CBCECC
@tado
tado / kadai13.pde
Last active December 11, 2021 01:15
課題kadai13)リズムボックスの途中まで (これを元に段を増やしていく!!)
import ddf.minim.*;
int R = 0;
int f = 0;
Minim minim;
AudioSample[] player = new AudioSample[2];
PImage onImg;
PImage wakuImg;
PImage posImg;
@tado
tado / emacs.ahk
Last active February 2, 2023 11:34
;;
;; An autohotkey script that provides emacs-like keybinding on Windows
;;
#InstallKeybdHook
#UseHook
; The following line is a contribution of NTEmacs wiki http://www49.atwiki.jp/ntemacs/pages/20.html
SetKeyDelay 0
; turns to be 1 when ctrl-x is pressed
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;
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)
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
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