rgb highlights

This commit is contained in:
🪞👃🪞 2024-07-06 23:25:43 +03:00
parent 6724f3848d
commit f9fa24de0d
5 changed files with 203 additions and 109 deletions

View file

@ -88,6 +88,9 @@ impl Sampler {
for index in 0..scope.n_frames() as usize {
if let Some(frame) = voice.next() {
for (channel, sample) in frame.iter().enumerate() {
//self.buffer[channel % channel_count][index] = (
//(self.buffer[channel % channel_count][index] + sample * self.output_gain) / 2.0
//);
self.buffer[channel % channel_count][index] += sample * self.output_gain;
}
} else {