earcon-workshop: review fixes (check count 882, lowpass comment says two poles)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0c9708e376
commit
33a4ccc0f2
2 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ export function clampParams(p = {}) {
|
|||
const TAU = Math.PI * 2;
|
||||
|
||||
// One note into `out` at sample `start`. Linear attack (<= 6 ms), exponential decay reaching -60 dB at `decaySec`,
|
||||
// one-pole lowpass whose cutoff follows brightness, 3 ms linear fade at the voice end so no tail ends on a step.
|
||||
// two-pole lowpass (two cascaded one-pole stages) whose cutoff follows brightness, 3 ms linear fade at the voice end so no tail ends on a step.
|
||||
function addNote(out, start, hz, gain, id, decaySec, bright) {
|
||||
const len = Math.min(out.length - start, Math.ceil(decaySec * SR));
|
||||
if (len <= 0) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue