mirror of
https://github.com/TomHarte/CLK.git
synced 2025-11-25 04:18:05 +00:00
Apply envelope.
This commit is contained in:
@@ -273,7 +273,8 @@ private:
|
|||||||
if(noise())
|
if(noise())
|
||||||
output &= noise_output();
|
output &= noise_output();
|
||||||
|
|
||||||
return output;
|
// Scale output to 14 bits.
|
||||||
|
return (output * adsr.envelope) >> 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user