34 lines
524 B
Plaintext
34 lines
524 B
Plaintext
// 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;
|
||
) |