Script actions in maschine using the shortcut app

AxMusic
AxMusic Member Posts: 134 Helper

Hello all, I am trying to automate/script some actions in the maschine app, using the shortcut app in Mac OS.

I am trying to create a shortcut where with a command shortcut, I can have maschine

switch the audio device from the (komplete audio 6) to the (maschine 3’s audio interface)…

Essentially avoiding menus, and having it work like a preset of sorts.. where with one button combo seamlessly switch between the two audio interfaces in the maschine software.

anyone here experienced with the shortcut app? And could share how to set it up?

Answers

  • AxMusic
    AxMusic Member Posts: 134 Helper

    I asked chat gpt, and this is the reply i got… can anyone confirm if Maschine has scripting capabilities?

    And if this is actually the way i should go about setting it up?

    Chat gpt response:

    To control Native Instruments' Maschine software and change audio devices using Apple's Shortcuts app, you would typically need to rely on a combination of Shortcuts and possibly AppleScript or Automator, as the Shortcuts app does not natively support direct control of third-party applications like Maschine.

    Here’s a general approach you can take:

    Step 1: Check Maschine's Scripting Capabilities

    1. Maschine Software: First, check if Maschine has any built-in support for scripting or automation. Some DAWs and music software provide APIs or scripting interfaces that allow external control.
    2. Audio Device Management: Determine how Maschine handles audio device selection. If it allows for command-line control or has an API, you can use that.

    Step 2: Use AppleScript (if supported)

    If Maschine supports AppleScript, you can create a script to change the audio devices. Here’s a basic outline of how you might do this:

    1. Open Script Editor: Launch the Script Editor app on your Mac.
    2. tell application "Maschine" -- Hypothetical command to change audio device set audioDevice to "Your Audio Device Name" set current audio device to audioDeviceend tell
    3. Save the Script: Save your script as an application.

    Step 3: Create a Shortcut

    1. Open Shortcuts App: Launch the Shortcuts app on your Mac.
    2. Create a New Shortcut: Click the "+" button to create a new shortcut.
    3. Add an Action to Run the Script:
      • Use the "Run Shell Script" action if you saved your AppleScript as a shell command.
      • Alternatively, use the "Run AppleScript" action if you want to run the script directly.
    4. Configure the Action: Point the action to your saved AppleScript application or include the script directly.
    5. Test the Shortcut: Run the shortcut to see if it successfully changes the audio device in Maschine.

    Step 4: Automate Further

    • Add Triggers: You can set up triggers for your shortcut, such as a specific time of day, connecting to a specific Wi-Fi network, or even a manual trigger.

    Note

    • Limitations: The effectiveness of this method depends on whether Maschine supports AppleScript or any other form of automation. If it does not, you may need to look into other automation tools or MIDI control options.
    • Documentation: Always refer to the official documentation for both Maschine and the Shortcuts app for the most accurate and detailed information.

    If you find that Maschine does not support scripting or automation in a way that can be controlled via Shortcuts, you may need to explore other automation tools or MIDI controllers that can interface with Maschine.

Back To Top