home/ atoms/ sonic-pi-use-synth

use_synth switches the active synthesiser for subsequent play calls in the current thread

Calling use_synth :name changes the synth used by every subsequent play or synth call in the current thread. It acts like a switch: once flipped, all new notes use the chosen synth. It does not affect other threads. Sonic Pi ships with dozens of synths (:saw, :prophet, :tb303, :fm, :pulse, etc.). Multiple synths can layer by playing before sleeping. Changing use_synth mid-run morphs timbre across sections.

Examples

use_synth :prophet play 50, release: 2 sleep 2 use_synth :tb303 play 50, release: 2

Assessment

Build a pattern that changes synth every bar. Explain what thread-scope means for use_synth.

“use_synth` command only affects the following calls to `play”
corpus · sonic-pi-built-in-tutorial · chunk 4