fix: route portamento notes through setNote path, not fast-path triggerRelease#7758
Open
santhosh-7777 wants to merge 1 commit into
Open
fix: route portamento notes through setNote path, not fast-path triggerRelease#7758santhosh-7777 wants to merge 1 commit into
santhosh-7777 wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7758 +/- ##
==========================================
+ Coverage 56.80% 56.83% +0.02%
==========================================
Files 172 172
Lines 57683 57683
==========================================
+ Hits 32767 32784 +17
+ Misses 24916 24899 -17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
@ssz2605 what do you think? LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Problem
Playing a
glideblock over multiple notes did not slide the pitch across the whole phrase. Instead, the first note played normally and the next notes played as separate, disconnected notes breaking issue.fixes #7023.
Root Cause
Inside
_performNotes()injs/utils/synthutils.js, there is a "fast path" added for performance that skips the normal effects setup for simple notes._needsGraphRewire, ~line 1864) only looks at vibrato, distortion, tremolo, phaser, chorus, and neighbor effects.triggerAttackReleaseand completely ignores thesetNoteflag.setNoteis checked andsynth.setNote(notes)is called to continue the same note and bend the pitch , but glide notes never reached that code.Fix
Added
doPortamento && setNoteto the_needsGraphRewirecheck, so glide notes go through the slow path wheresetNoteis handled correctly.Testing
glideblock onto the canvas.noteblocks inside it with different pitches (e.g.sol 4thenla 4).js/utils/__tests__/synthutils.test.js(_performNotes glide/portamento setNote routing):setNoteis called (nottriggerAttackRelease) when glide + setNote are both truetriggerAttackReleasestill runs when setNote is false (no regression)synthutils.test.jssuite locally , all 118 tests pass, nothing broke.