Skip to content

Commit

Permalink
Change log scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
davemollen committed Aug 20, 2024
1 parent 52e5fc1 commit ee6b6eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lv2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ impl Plugin for DmRat {
// Process a chunk of audio. The audio ports are dereferenced to slices, which the plugin
// iterates over.
fn run(&mut self, ports: &mut Ports, _features: &mut (), _sample_count: u32) {
let distortion = *ports.distortion * *ports.distortion;
let filter = *ports.filter * *ports.filter;
let volume = *ports.volume * *ports.volume;
let distortion = *ports.distortion * *ports.distortion * *ports.distortion;
let filter = *ports.filter * *ports.filter * *ports.filter;
let volume = *ports.volume * *ports.volume * *ports.volume;

if !self.is_active {
self.rat.initialize_params(distortion, filter, volume);
Expand Down
6 changes: 3 additions & 3 deletions nih-plug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ impl DmRat {
let volume = self.params.volume.value();

(
distortion * distortion,
filter * filter,
volume * volume,
distortion * distortion * distortion,
filter * filter * filter,
volume * volume * volume,
)
}
}
Expand Down

0 comments on commit ee6b6eb

Please sign in to comment.