Setting max volume to +0dB

Post Reply New Topic
RELATED
PRODUCTS

Post

I am trying find where to set the max for volumefaders to +0db (161) rather than +6dB (128) in Jürgen Moßgraber's APC40mk2 script. (A script I love). But I find no way to edit the version made for BitWig2 since it is a .bwexstension file.

In the Bitwig1 version I can find the parameter for setting max value but this global and is in the file Config.js

Code: Select all

// ------------------------------
// Static configurations
// ------------------------------

// Inc/Dec of knobs
Config.fractionValue     = 1;
Config.fractionMinValue  = 0.5;
Config.maxParameterValue = 128;

// How fast the track and scene arrows scroll the banks/scenes
Config.trackScrollInterval = 100;
Config.sceneScrollInterval = 100;
In Bogdan's script for the APC20 ( https://github.com/lem8r/bitwig_apc20) there was a simple way to do this. All you had to do was to change the value in the code to either 161 (for +0dB, or to 128 (for +6dB)

Code: Select all

switch (fadersMode) {
            case 0: // Vol mode
                {
                    if (data1 === 0x07) // vol fader
                    {
                        tracksBankView.getChannel(status & 0x07).getVolume().set(data2, 161); // 161 instead of 128 to limit max vol to 0dB not +6dB
                        return;
                    }
                    if (data1 === 0x0E) // master fader
                    {
                        masterTrackView.getVolume().set(data2, 161); // 161 instead of 128 to limit max vol to 0dB not +6dB
                        return;
                    }
The APC20 script is of course a much simpler script with only one js-document.

Any tips?

Post Reply

Return to “Controller Scripting”