Skip to content

Commit

Permalink
fix key shift on snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Jul 28, 2024
1 parent 1386903 commit a4cb8df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function applySynthesizerSnapshot(snapshot)
// restore vibrato and transpose
channelObject.channelVibrato = channelSnapshot.channelVibrato;
channelObject.lockVibrato = channelSnapshot.lockVibrato;
channelObject.channelTransposeKeyShift = channelSnapshot.channelTranspose;
channelObject.channelTransposeKeyShift = channelSnapshot.channelTransposeKeyShift;

// restore preset and lock
channelObject.lockPreset = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export function createWorkletChannel(sendEvent = false)
lockPreset: false,

}
for (let i = 0; i < 128; i++) {
for (let i = 0; i < 128; i++)
{
channel.cachedVoices.push([]);
}
this.workletProcessorChannels.push(channel);
Expand Down

0 comments on commit a4cb8df

Please sign in to comment.