Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hexmatrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elektronik
Hexmatrix
Commits
3302efc3
Commit
3302efc3
authored
3 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Use mul_add for slight precision gain
parent
e04e3638
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.rs
+3
-3
3 additions, 3 deletions
src/main.rs
with
3 additions
and
3 deletions
src/main.rs
+
3
−
3
View file @
3302efc3
...
...
@@ -16,9 +16,9 @@ TODO:
- [ ] Document dependecies
- [ ] Performance improvements:
- [ ] implement performance monitoring
- [ ] f32.mul_add() or f32.to_bits() / f32.from_bits()
- [x] only calculate connected ports https://docs.rs/jack/0.7.1/jack/struct.Port.html#method.connected_count
- [ ] Flag volume modulations as dirty
- [x] f32.mul_add() or f32.to_bits() / f32.from_bits()
- [x] only calculate connected ports https://docs.rs/jack/0.7.1/jack/struct.Port.html#method.connected_count
- [x] Support other Buffers than 1024
- [ ] Features:
- [ ] Flags to control printing (--quiet etc)
...
...
@@ -188,7 +188,7 @@ fn main() {
// Multiply each input sample at position `sample_index` with the
// volume and sum it with the corresponding (existing) output sample
// at the same position
*
sample
+
=
input_samples
[
sample_index
]
*
volume
;
*
sample
=
input_samples
[
sample_index
]
.mul_add
(
volume
,
*
sample
)
;
}
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment