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 = {}; | |
| SC では、小文字のアルファベットは、変数(関数や値などを格納する) | |
| デフォルトで s にはサーバが格納されている | |
| s.boot; // サーバ起動 | |
| s.isKindOf(Server); // s はサーバですか? yes -> true, no -> false が出力 |
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; | |
| /* | |
| 「クライアント」から「サーバ」へ命令が行って | |
| サーバが起動し、ポストウィンドウに文字が出力される | |
| ここでは s がサーバで、.boot メッセージを送ることで起動する | |
| */ |
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
| ドラムのハイハットをシンセで作る | |
| SynthDef オブジェクトでシンセサイザーをつくる | |
| SynthDef の引数は | |
| SynthDef(シンセの名前, 関数).add; // .add で定義をサーバに送る | |
| シンセの名前は String オブジェクト "I am SuperCollider" など | |
| あるいは Symbol オブジェクト \iamSuperCollider などを使って書く | |
| Symbol は空白を使えない | |
| () 内を選択後、実行 |
NewerOlder