Skip to content

Instantly share code, notes, and snippets.

SuperCollider ライブコーディング作業記録

ファイル: Desktop/test.scd 作業日: 2026-02-27 使用ツール: Claude Code (claude-sonnet-4-6)


作業の概要

@tado
tado / Claude-Autechre-livecoding.scd
Last active March 1, 2026 11:22
Live Coding with SuperCollider (JITlib) + Claude
// =====================================================================
// JITLib ライブコーディング
//
// 【JITLib の主要クラス】
// ProxySpace ─ ~ 変数を NodeProxy として管理する環境
// Ndef ─ サーバー側シンセの差し替え可能なプロキシ(音源・エフェクト用)
// Pdef ─ イベントパターンの差し替え可能なプロキシ(Pbind 用)
// Tdef ─ ルーティンの差し替え可能なプロキシ(Task/Routine 用)
//
// 【変数の設計】
@tado
tado / Claude-Autechre.scd
Last active February 26, 2026 11:53
SuperCollider code built with Claude #2
(
s.waitForBoot {
// 倍音成分が時間と共に変化するFM楽器
SynthDef(
\myFM, {
// 引数: 出力バス, キャリア周波数, 音量, 周波数比, 最大モジュレーションインデックス
// ADSR各パラメータ, ゲート(発音/消音の制御)
|out=0, freq=440, amp=0.5,
modRatio=1.5, modIndex=10,
attack=0.01, decay=1.0, sustain=0.3, release=1.5,
@tado
tado / Claude-Autechre.scd
Created February 26, 2026 08:41
SuperCollider code built with Claude
// 倍音成分が時間と共に変化するFM楽器
(
SynthDef(
\myFM, {
// 引数: 出力バス, キャリア周波数, 音量, 周波数比, 最大モジュレーションインデックス
// ADSR各パラメータ, ゲート(発音/消音の制御)
|out=0, freq=440, amp=0.5,
modRatio=1.5, modIndex=10,
attack=0.01, decay=1.0, sustain=0.3, release=1.5,
gate=1|
@tado
tado / main.py
Created December 31, 2025 00:32
Downloads 20 years of USDJPY data, fits LOWESS and polynomial/linear regressions, and plots historical prices with 10-year forecast and summary stats.
import yfinance as yf
import matplotlib.pyplot as plt
import matplotlib
from datetime import datetime, timedelta
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
from sklearn.metrics import r2_score, mean_squared_error
from scipy import stats
import pandas as pd
@tado
tado / temperature_change.py
Created December 27, 2025 06:37
日本の気温の変動のデータから100年後の気温を予測
import requests
import pandas as pd
import matplotlib.pyplot as plt
import json
import numpy as np
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error, mean_absolute_error
from scipy.interpolate import UnivariateSpline
from bs4 import BeautifulSoup
@tado
tado / sho-scale.tidal
Created October 28, 2025 12:40
Sho Aitake Scale
let
scale = getScale
(scaleTable ++ [
("sho", [-3, -1, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18]),
("kotsu", [-3, 4, 9, 11, 16, 18]),
("ichi", [-1, 2, 4, 9, 11, 18]),
("ku", [1, 2, 4, 8, 9, 11]),
("bo", [2, 4, 9, 11, 16, 18]),
("otsu", [4, 8, 9, 11, 13, 14]),
("ge", [6, 8, 9, 11, 14, 18]),
@tado
tado / live.scd
Last active July 1, 2025 06:23
JITLib live coding study
s.boot;// サーバーの起動
p = ProxySpace.push(s);// ProxySpaceの初期化
(
// 楽器 "mySaw" を定義し追加
SynthDef("mySaw", {
arg out = 0, freq = 440, sustain = 1.0,
cutoff = 2000, rq = 0.3, pan = 0.0, amp = 1.0;
var sig;
sig = LFSaw.ar(
@tado
tado / emacs.ahk
Created March 7, 2025 09:25
Autohot Key Emacs keybind Setting
#Requires AutoHotkey v2.0
;;
;; An autohotkey script that provides emacs-like keybinding on Windows
;;
;; global constants
DEBUG_MODE := 0
;; global variables
@tado
tado / iris.py
Created February 27, 2025 23:57
Plot iris petal scatter with regression with python
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from matplotlib.patches import Ellipse
from sklearn.linear_model import LinearRegression
from sklearn.metrics import r2_score
def plot_iris_petal_scatter_with_regression():
"""