Last active
October 11, 2024 14:27
-
-
Save yotamorimoto/2274127 to your computer and use it in GitHub Desktop.
音を鳴らす/止める
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
| // 関数で音を鳴らす | |
| 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