These are a collection of ways you might make melodies and rythms. All examples (boxes) have a variable at the top left, where you can give *
as its value to play the example.
T
: The very basic usage ofT
is to give a sequence of notes or bangs, and play them by iterating overT
one by one with a clock.Q T
: We can join the end ofT
to theQ
operator, to query specific sequences to be iterated byT
. This gives us more control on which sequence to play, and is very useful.V T
: Instead of using the output ofT
directly, we can pass it to a variable to be accessed somewhere else. This gives us a greater leeway on our spacing.X
E
: When we giveE
as the input to be written withX
operator,E
will not immediately fly away, but instead will activate whenX
writes to some other location. We can use this effect to create a wave ofE
s that are stopped by:
operators. This effectively becomes a sequencer, but there is an added benefit of adjusting the time of beat for each sound. SinceE
moves 1 frame at a time, we can move the:
a bit more to the right to create a delayed sound. This makes things a bit more dynamic. The secondX
E
on the right side uses this effect.X
S
: Similar toX
E
, we can achieve a sequencing effect with anX
writingS
. When they
position ofX
is incremented, theS
written above will bang on top of the newly writtenS
. The benefit of delaying the input is not like what is the case forE
, but we can still delay the last bang; it will only bang where we specify it to bang. The secondX
S
on the right side uses this effect.
VOOOV
: A vertical recursion implementation can achieve a sequencing effect. A variable can be used to feedback the top value to the bottom.COOOO
: A horizontal recursion implementation can achieve a sequencing effect, perhaps with a bit more leeway. In this example, anO
is used to select notes similar toT
. Instead of feeding back the loop using variables at both ends, we can use a clock with a set rate on top of anF
to bang on specific intervals.G T
: A generatorG
can be used to print the actual:
operations, with aE
(orS
) on its left. By changing the print location,E
is activated and bangs:
. The notes can be given withT
to the generator.