feat: load synthef on startup
This commit is contained in:
34
examples/choir.scd
Normal file
34
examples/choir.scd
Normal file
@ -0,0 +1,34 @@
|
||||
// create a choir from two formants
|
||||
(
|
||||
|
||||
// https://en.wikipedia.org/wiki/Formant#cite_note-7
|
||||
var formants = [
|
||||
[360, 640], // o
|
||||
[235, 2100], // y
|
||||
[390, 2300], // e
|
||||
[585, 1710], // æ
|
||||
[850, 1610], // a
|
||||
[750, 940], // ɑ
|
||||
[820, 1530], // ɶ
|
||||
[600, 1170], // ʌ
|
||||
[250, 595], // u
|
||||
[240, 2400], // i
|
||||
];
|
||||
|
||||
r {
|
||||
[38 + 3, 38 +5, 38 + 12].do{
|
||||
|freq|
|
||||
Synth(\formoo,
|
||||
[
|
||||
amp: 0.15,
|
||||
attack: 2,
|
||||
decay: 5,
|
||||
freq: freq.midicps,
|
||||
formants: [850, 1610],
|
||||
ff: rrand(550, 2660),
|
||||
qr: 0.5
|
||||
]
|
||||
);
|
||||
}
|
||||
}.play;
|
||||
)
|
||||
Reference in New Issue
Block a user