New solution: Continuous pinch to zoom for Cubase on macOS

I’ve zipped and uploaded a plist file of PinchBar’s settings with the changes you asked for. To import those settings into PinchBar:

  • close Pinchbar
  • unzip the zip file, e.g. by double clicking it (if using Safari, this was already done automatically)
  • open Terminal.app and navigate to the plist file (e.g. cd Downloads)
  • import the settings: defaults import com.pnoqable.PinchBar PinchBar.plist
  • you can now close Terminal and remove the zip and plist file
  • open PinchBar and test, if vertical zoom now works for you

You didn’t mention keybindings for waveform zoom, so this won’t work yet.

If somebody wants to have a look at PinchBar’s defaults structure, this is what Terminal prints out for the plist from above:

➜  Devel defaults import com.pnoqable.PinchBar PinchBar.plist
➜  Devel defaults read com.pnoqable.PinchBar
{
    appPresets =     {
        Cubase = Cubase;
        Xcode = "Font Size";
    };
    presets =     {
        Cubase =         {
            0 =             {
                flags = 1048576;
                replaceWith =                 {
                    wheel =                     {
                    };
                };
                sensivity = 200;
            };
            1048576 =             {
                flags = 262144;
                replaceWith =                 {
                    keys =                     {
                        codeA = 125;
                        codeB = 126;
                    };
                };
                sensivity = 5;
            };
            524288 =             {
                flags = 524288;
                replaceWith =                 {
                    keys =                     {
                        codeA = 5;
                        codeB = 4;
                    };
                };
                sensivity = 5;
            };
        };
        "Font Size" =         {
            0 =             {
                flags = 1048576;
                replaceWith =                 {
                    keys =                     {
                        codeA = 44;
                        codeB = 30;
                    };
                };
                sensivity = 5;
            };
            1048576 =             {
                flags = 0;
                sensivity = 1;
            };
        };
    };
}

As you can see, every key combination is saved in the form of keycodes and modifier flags. These are Apple’s constants for keyboard events and can be googled (keycodes and modifier flags). The process of editing these settings is another thing, one has to figure out somehow.

If you gonna try altering the settings for your Cubase’s keybindings, note that modifier flags (6/7 digit numbers) appear on both sides of equal sign: Left of = means Filter for pinch events with this or these modifier keys held down (e.g. 0 means with no modifier key down), right of flags = means replace modifier flag(s) with this one(s). For multiple simultanious modifier keys simply add their modifier flags, e.g. CMD + ALT = 2^20 + 2^19 = 1048576 + 524288 = 1572864.

So all in all, I’m not sure if documenting this kind of process for users of Cubase is worth the time as I could invest the same time into a first version of a GUI for configuring PinchBar. But for now, I don’t have time for this, so this post here will be pretty much all of documentation I can give right now.