Bind knobs to multiple parameters using hardware api

Post Reply New Topic
RELATED
PRODUCTS

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
Is it possible to bind knobs to different parameters depending on the mode selected on the controller using the hardware API? I am trying to use the hardware API here.

Code: Select all (#)

        mTrack1VolumeKnob.setBinding(MODE_VOLUME_OR_PAN
                ? mMainTrackBank.getItemAt(0).volume()
                : mMainTrackBank.getItemAt(0).pan()
        );
The above code only works if I call the `host.restart()`, and I don't that is the right approach.

Post

You have to call setBinding every time you switch the mode.
----------------------------------------------------------------------
/CTRL → http://slashctrl.io
Music & mixes → http://soundcloud.com/kirkwoodwest

Post Reply

Return to “Controller Scripting”