1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-24 13:17:41 +00:00

Apply envelope.

This commit is contained in:
Thomas Harte
2025-11-11 14:26:53 -05:00
parent de5cdbf18c
commit 4586e4b4c1

View File

@@ -273,7 +273,8 @@ private:
if(noise())
output &= noise_output();
return output;
// Scale output to 14 bits.
return (output * adsr.envelope) >> 6;
}
};