home/ atoms/ sc-ide-workflow-basics

SuperCollider IDE workflow requires Shift-Cmd-B to select a code block and Shift-Enter to evaluate it

In the SuperCollider IDE, code is organized in blocks delimited by parentheses (...). To evaluate a block: position the cursor just after the opening (, press Shift-Cmd-B to select everything inside, then press Shift-Enter to run it. Single lines can be evaluated by placing the cursor anywhere on the line and pressing Shift-Enter directly. Cmd-. (period) stops all currently playing sound. Cmd-D opens the help file for whatever word is under the cursor. These five shortcuts cover 90% of the interactive workflow and must be learned before attempting any of the cookbook examples.

Examples

{ SinOsc.ar(440)!2 }.play   // Shift-Enter on this line
// Or in a block:
(
  x = { SinOsc.ar(440)!2 };
  x.play;
)  // Shift-Cmd-B after '(', then Shift-Enter

Assessment

Open SuperCollider and evaluate the test tone { SinOsc.ar(440)!2 }.play using both methods: (1) Shift-Enter on the line, (2) wrapping it in () and using Shift-Cmd-B + Shift-Enter. Then stop it with Cmd-.

“Position your cursor to the right of the open bracket '(' in the last codeblock below. Now press Shift-Cmd-B. Notice how all the code inside the brackets is highlighted?”
corpus · welsh-s-synthesizer-cookbook-figures-in-supercollider-cookbo · chunk 1