Forum
    • Categories
    • Register
    • Login

    MIDI Output from an RNBO-based HISE Audio FX Plugin

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 72 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • voxuer1V
      voxuer1
      last edited by

      Hi everyone,

      I'm developing an RNBO-based audio analyzer in HISE. The RNBO patch uses ctlout to generate MIDI CC data from the incoming audio signal.

      The plugin needs to be an Audio FX plugin, processing audio while also sending MIDI CC output to the DAW.

      I've enabled Enable MIDI Out, but I'm not receiving any MIDI output.

      Is MIDI output supported in HISE Audio FX plugins? If so, what else needs to be configured to forward the MIDI CC messages from RNBO to the DAW?

      Thanks for your help!

      1 Reply Last reply Reply Quote 0
      • voxuer1V
        voxuer1
        last edited by

        Update: ctlout isn’t forwarded to the host, so I’m trying a workaround. I send the value via an RNBO outport and a global cable (“Lauscher”) into HISE. That works. Now I want to turn it into a CC for the MIDI out:

        // Interface script
        lauscherCable.registerCallback(function(value)
        {
        pending[0] = Math.round(value * 127.0);
        }, AsyncNotification);

        // onTimer
        Synth.addController(1, CC_NUM, pending[0], 0);

        // second Script Processor, onController
        Message.sendToMidiOut();

        “timer” prints, so addController is called, but onController in the second script never fires. Plugin is an AU FX, Enable MIDI Out is on.
        Are events from Synth.addController() in onTimer passed on to the next script? If not, what’s the right way to get a cable value to the MIDI out?

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @voxuer1
          last edited by

          @voxuer1 upload a snippet - it might just be you are running your onController code in the same container...as your generator code

          HISE Development for hire.
          www.channelrobot.com

          voxuer1V 1 Reply Last reply Reply Quote 0
          • voxuer1V
            voxuer1 @Lindon
            last edited by

            @Lindon Thanks, that was the key. Moving the onController script into its own Container (child of the master, not in the same chain as the script that generates the CC) fixed the forwarding. In HISE the console now prints “cc” for every CC created by Synth.addController() in my timer, and Message.sendToMidiOut() is reached.
            Solved:
            Value from an RNBO outport comes in via a global cable, a timer in the Interface script creates the CC with Synth.addController(1, CC_NUM, value, 0).
            A Script Processor inside a Container with Message.sendToMidiOut() in onController receives it.
            Still not working: the exported plugin in Ableton Live (macOS).
            FX plugin, AU and VST3. Project settings: EnableMidiOut=1, EnableMidiInputFX=1, EnableSoundGeneratorsFX=1, Clean Build.
            An earlier AU build showed up in Live under “MIDI From” on a MIDI track (audio track with the plugin listed), but that build couldn’t be opened in Live (“plugin can’t be opened”). The latest build opens, but Live doesn’t offer it as a MIDI source anymore. VST3 never shows a MIDI source.
            Has anyone got an Audio FX plugin (with audio input) from HISE to show up as a MIDI source in Live? Which export type and settings did you use?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            12

            Online

            3.1k

            Users

            14.0k

            Topics

            122.1k

            Posts