feat: load synthef on startup
This commit is contained in:
26
examples/pad_chords.scd
Normal file
26
examples/pad_chords.scd
Normal file
@ -0,0 +1,26 @@
|
||||
(
|
||||
var rel = 2;
|
||||
|
||||
// degrees, whatever
|
||||
var chords = [
|
||||
[0, 3, 5],
|
||||
[0, 3, 5] + 3,
|
||||
[0, 2, 5] + 5,
|
||||
[0, 3, 5] + 2,
|
||||
];
|
||||
|
||||
r {
|
||||
loop {
|
||||
chords.do({
|
||||
|deg|
|
||||
SynthUtils.playChordGated(
|
||||
\padoo,
|
||||
rel,
|
||||
(40 + deg).midicps,
|
||||
[ff: 2200, attack: rel, decay: 1, release: rel, vibrato: 0.2, amp: 0.3, gate: 1]
|
||||
);
|
||||
(rrand(0.25, 1) + rel).wait;
|
||||
});
|
||||
}.play;
|
||||
}.play;
|
||||
)
|
||||
Reference in New Issue
Block a user