Audio
Masher
[continue autosave]
Learn Sporth
log in
learn
new
browse
Learn Sporth: An Interactive Cookbook
Part 1: Introduction
What is Sporth?
About this Cookbook
Part 2: How Sporth Works ("The Kitchen")
Hello, Sine
The Stack
Stack Operations
Gates and Triggers
F-tables and Gen Routines
Variables
p registers
prop
lsys
List of Sporth Ugens
Part 3: Example Sporth Patches ("The Recipes")
Lots of Patches
FM
Chatting Robot
Bones
Oatmeal
Machines at Work
Midnight Crawl
Play With Toys
The Waiting Room
In Seven
# store melody in a table _seq "0 5 0 3 0 3 5 0 3" gen_vals # create beat and half-beat triggers _half var _beat var 4 metro _half set _half get 2 0 tdiv _beat set # play melody with a sine wave (_half get 0 _seq tseq 75 +) mtof 0.1 sine # apply envelopes on beats and half-beats _half get 0.001 0.1 0.2 tenvx * _beat get 0.001 0.1 0.2 tenvx * # add delay dup (0.5 (4 inv) delay) (0.4 *) +
Compile & play
Stop audio