Keyboard shortcut for Pre-gain?

Hi, I do this all the time, (loading a channel and setting it’s pre-gain between 12-20db lower).

Is there a shortcut/method I’ve missed that would allow me to do this without having to open channel settings and manually adjust each one, each time?

Hi,

You can create a track preset with this settings.

Yes thanks for getting back— but I was wanting all tracks to have this setting because what happens when I load a track from the Sound Browser or MediaBay, I am fixed at the previous default settings?

Hi,

I see. Why do you need the Pre-Gain set to 12-20dB? What is your use case? Isn’t better to use VCA?

Hi Martin,

VCA isn’t quite the same as pre-gain as they are used for very different things to my understanding.

The pre-gain helps to change the level of a signal before it reaches groups, eq etc, whereas the VCA is for eg for multiple channels, to control the volume of multiple channels together using a single fader.

I simply wanted a way to set my channel’s pre-gain to x or y dB with a shortcut.

Thank you.

Hi, I know this one will not be the one you’re after, but in case you have a midi remote connected based on a script, there is a way to accomplish this. Not sure however if it’s really worth the trouble.

2 Likes

Hi, thanks. In the absence of my preferred solution this is the best.

I am unsure as to how, could you detail this, or does anyone care to chime in on it, pls?

Sure. Here’s a snippet that assigns midi CC 24 (channel 0) to a button, which is used to set pregain to -12db.

//Create a folder named intro inside the [Path of your Documents folder]/Steinberg/Cubase/MIDI Remote/Driver Scripts/Local

//Then create a folder named script inside the intro folder

//Create a file named intro_script.js and paste this code inside. Place this file inside the intro/script subfolder

// Requiring the API
var midiremote_api = require('midiremote_api_v1')

// Getting the instance of the device driver
var deviceDriver = midiremote_api.makeDeviceDriver('Intro', 'Script Pregain', 'Someone')

// Adding MIDI In & Out ports
var midiInput = deviceDriver.mPorts.makeMidiInput("midiInput")
var midiOutput = deviceDriver.mPorts.makeMidiOutput("midiOutput")

// Detecting ports
var detectWin = deviceDriver.makeDetectionUnit()
detectWin
    .detectPortPair(midiInput, midiOutput)
    .expectInputNameContains('your midi input name or part of it')
    .expectOutputNameContains('your midi output name or part of it')
    

// Getting the instance of our controller's surface (i.e. buttons/knobs/faders e.t.c.)
var surface=deviceDriver.mSurface

// Defining/designing our surface's controls
var aButton=surface.makeButton(0,0,1,1)
var aCustomVar=surface.makeCustomValueVariable("aCustomVar")

// Binding our surface controls to their MIDI Ports and Messages
aButton.mSurfaceValue.mMidiBinding
    .setInputPort(midiInput)    
    .bindToControlChange(0,24)

// Creating a mapping page
var aPage=deviceDriver.mMapping.makePage("aPage")

// Adding bindings to our page (i.e. assigning commands and host values to our controls)

aButton.mSurfaceValue.mOnProcessValueChange=function(activeDevice,value,diff){
    if(value==1){

        aCustomVar.setProcessValue(activeDevice,0.375)
        //0.250 -> -24db, 0.375 -> -12db, 0.5 -> 0db
    
    }
    
}

aPage.makeValueBinding(aCustomVar,aPage.mHostAccess.mTrackSelection.mMixerChannel.mPreFilter.mGain)

1 Like

Thank you :slight_smile:

1 Like

Hi, I’m having issues getting this to work. The files in the MidiRemote are .json, but this is a .js file and not being seen by Cubase (midiremote => import script)

Hi, the way to “install” it is in my comments:

  • Create a folder named intro inside the [Path of your Documents folder]/Steinberg/Cubase/MIDI Remote/Driver Scripts/Local

  • Then create a folder named script inside the intro folder

  • Create a file named intro_script.js and paste this code inside. Place this file inside the intro/script subfolder

Let me know, if you’re having difficulties with it, I can probably “compile” it to the form needed to import it from inside Cubase.

Thank you, I believe I did this, I essentially meant after having done this, I didn’t see any option to run/import the .js file created in Cubase. (Admittedly, I am not familiar to Midi Scripting), but any starters in how I get this seen by Cubase and active please? C12/Windows

Hi, if the script is properly setup in the folder structure I’ve suggested, with the proper name, then Cubase will see it, and you can add it by going to the low section window, choose the “Midi Remote” tab, click “+” and then first select the “Intro” manufacturer and for model the “Script Pregain” as these are the names I’ve set in the js file. Then you have to select the real midi ports you will use instead of the ones I’ve setup in the file.