Skip to content

Commit

Permalink
feat(Cubase 13 only): Add proper fader touch support for automation w…
Browse files Browse the repository at this point in the history
…riting
  • Loading branch information
bjoluc committed Nov 16, 2023
1 parent f886eb5 commit e79ccab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/decorators/surface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export function decorateSurface(surface: MR_DeviceSurface) {
// `mOnProcessValueChange`
fader.mTouchedValueInternal = surface.makeCustomValueVariable("faderTouchedInternal");

// Cubase 13 only:
if (fader.mSurfaceValue.mTouchState) {
fader.mSurfaceValue.mTouchState.bindTo(fader.mTouchedValue);
}

return fader;
};

Expand Down

0 comments on commit e79ccab

Please sign in to comment.