Skip to content

Instantly share code, notes, and snippets.

@yotamorimoto
Last active October 11, 2024 14:27
Show Gist options
  • Select an option

  • Save yotamorimoto/2274127 to your computer and use it in GitHub Desktop.

Select an option

Save yotamorimoto/2274127 to your computer and use it in GitHub Desktop.
音を鳴らす/止める
// 関数で音を鳴らす
f = { SinOsc.ar * 0.1 };
// 実行 -> 音が鳴る
f.play;
音を止める
macOS cmd + ピリオド
Windows & Linux ctrl + ピリオド
// 違う音.実行後、止める
{ BrownNoise.ar * 0.1 }.play;
実践
SC には SinOsc, BrownNoise の他 250 以上のオシレータ(音を発するユニット)がある
コードを Impulse, Formant, WhiteNoise, PinkNoise などに書き換え、音を試す
{ Formant.ar * 0.1 }.play; // * 0.1 が音量.最大は 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment