ファイル: Desktop/test.scd
作業日: 2026-02-27
使用ツール: Claude Code (claude-sonnet-4-6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ===================================================================== | |
| // JITLib ライブコーディング | |
| // | |
| // 【JITLib の主要クラス】 | |
| // ProxySpace ─ ~ 変数を NodeProxy として管理する環境 | |
| // Ndef ─ サーバー側シンセの差し替え可能なプロキシ(音源・エフェクト用) | |
| // Pdef ─ イベントパターンの差し替え可能なプロキシ(Pbind 用) | |
| // Tdef ─ ルーティンの差し替え可能なプロキシ(Task/Routine 用) | |
| // | |
| // 【変数の設計】 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( | |
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 倍音成分が時間と共に変化する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| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires AutoHotkey v2.0 | |
| ;; | |
| ;; An autohotkey script that provides emacs-like keybinding on Windows | |
| ;; | |
| ;; global constants | |
| DEBUG_MODE := 0 | |
| ;; global variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(): | |
| """ |
NewerOlder