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
synth = Synth('saw') | |
filter = Filter() | |
// filter | |
synth.fx.add(filter) | |
filter.filterMode = 3 | |
filter.cutoff.fade(0, 1, 6) // start, end, duration | |
// notes | |
synth.note.seq( [0,2,4,7], 1/2 )= |
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
Graphics.quality = 'low' | |
Union2( | |
// head | |
head = Sphere(0.5).material('red').texture('dots'), | |
// body | |
Sphere(0.5).material('red').texture('dots').translate(0.2,-0.5), | |
Sphere(0.5).material('red').texture('dots').translate(0.5,-0.5), |
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
// synth | |
synth = Synth('bleep') | |
synth.seq( [0, 2, 4, 5, 7], [1/8, 1/16].rnd() ) | |
s.pan.seq(Rndf() // randomize pan | |
synth.gain.seq(Rndf(0, 0.5)) // randomize volume | |
// drums | |
kickDrum = Kick().seq( [0,2,4].rnd(), 1/4 ) | |
snare = Snare().seq( [0,1].rnd(), 1/8 ) |
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
// bus | |
reverb = Bus2().fx.add(Reverb()) | |
// monosynth | |
monosynth = Monosynth({ | |
detune2:-.5, detune3:2, antialias:true, octave:-1 | |
}).note.seq( 0, 1/4 ) | |
monosynth.connect(reverb) |
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
// bass (low register) | |
bass = Synth('square.bass') | |
bass.note.seq(notes = [1, 3, 4], 1/2) | |
bass.waveform = 'saw' | |
// ------------------------- | |
// synth (high register) | |
Theory.root = 'd3' | |
synth = Synth({ useADSR:true }) |
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
// bass (low register) | |
bass = Synth('square.bass') | |
bass.note.seq(notes = [1, 3, 4], 1/2) | |
bass.waveform = 'saw' | |
// ------------------------- | |
// synth (high register) | |
Theory.root = 'd3' | |
synth = Synth({ useADSR:true }) |
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
// synth | |
s = Synth('square.perc') | |
s.note.seq( [0,1.3,0.3,3], 1/3) | |
// synth scale | |
Theory.root = 'c3' | |
Theory.mode = 'mixolydian' | |
// drums |
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
// drums | |
drums = Drums() | |
drums.tidal( '< sd*2 oh> kd/2' ) | |
// synth pattern | |
synth = Synth() | |
synth.amp = 0.3 | |
synth.resonance = 0.5 | |
synth.note.seq( [1, 2, 4, 7, null, 5], [1, 1, 1, 1, 1/2, 1/2] ) |
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
import time | |
import board | |
import neopixel | |
import touchio | |
touch_pad = board.A0 | |
touch = touchio.TouchIn(touch_pad) | |
pixel_pin = board.D2 | |
num_pixels = 16 |
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
import time | |
import board | |
import neopixel | |
import touchio | |
touch_pad = board.A0 | |
touch = touchio.TouchIn(touch_pad) | |
pixel_pin = board.D2 | |
num_pixels = 16 |
NewerOlder