Skip to content

Instantly share code, notes, and snippets.

@tado
tado / ofApp.cpp
Created August 16, 2017 04:37
Using SuperCollider in openFrameworks for windows
#include "ofApp.h"
void ofApp::setup() {
// start scsynth
STARTUPINFOA si;
GetStartupInfoA(&si);
CreateProcessA(
NULL,
".\\data\\server\\scsynth.exe -u 57110",
NULL,
@tado
tado / startup.scd
Created August 29, 2017 01:25
SuperCollider Startup File for Alienware 13 R3
Server.local.options.numOutputBusChannels = 2;
Server.local.options.numInputBusChannels = 0;
Server.local.options.device = "Windows WASAPI";
Server.local.options.sampleRate = 192000;
@tado
tado / style.less
Last active October 8, 2017 09:00
Slide style for Markdown Preview Enhanced
html body {
font-family: Hiragino Sans, Noto Sans CJK JP;
width: 100%;
}
.reveal .slides{
margin: 0 auto;
padding: 0;
font-size: 1.5rem;
h1, h2, h3, h4, h5, h6{
color: #0099cc;
@tado
tado / style.css
Last active November 2, 2017 22:21
Chrome Stylistで、MSゴシックとメイリオをNoto Sans CJK JPへ変換
@font-face {
font-family: "メイリオ";
src: local("Noto Sans CJK JP");
}
@font-face {
font-family: "Meiryo";
src: local("Noto Sans CJK JP");
}
@font-face {
font-family: "游ゴシック";
[
{
"key": "ctrl+i",
"command": "editor.action.formatDocument",
"when": "editorTextFocus"
},
{
"key": "ctrl+j",
"command": "-editor.action.insertLineAfter",
"when": "editorTextFocus"
@tado
tado / init.el
Created January 30, 2018 09:20
Emacs setting for TidalCycles for macOS + haskell-stack
(setq load-path (cons "~/.emacs.d/tidal/" load-path))
(require 'tidal)
(setq tidal-interpreter "/usr/local/bin/stack")
(setq tidal-interpreter-arguments
(list "repl" "--ghci-options=-XOverloadedStrings"))
@tado
tado / ofApp.cpp
Created February 8, 2018 02:45
Count file number and loop by openFrameworks
ofDirectory dir("hoo");
for (int i = 0; i < dir.getFiles().size(); i++){
//do something
}
@tado
tado / file0.txt
Last active February 22, 2019 08:17
TidalCyclesのインストール2018年版 ref: https://qiita.com/yoppa/items/fe21d7136f8f3aafd55c
which brew
@tado
tado / animation.pde
Created May 14, 2018 07:19
Processing Animation Basic
int NUM = 1000;
PVector location;
PVector velocity;
void setup() {
size(800, 600);
frameRate(60);
colorMode(HSB, 360, 100, 100, 100);
noStroke();
location = new PVector(width/2.0, height/2.0);
velocity = new PVector(random(-10, 10), random(-10, 10));
@tado
tado / sample.pde
Created May 19, 2018 08:20
Processing + TidalCycles sample
import oscP5.*;
import netP5.*;
float gain = 0.0;
int n = 0;
float pan = 0.5;
float cutoff = 400.0;
String inst = "";
OscP5 osc;