HISE Logo Forum
    • Categories
    • Register
    • Login

    MidiFX Plugin from Hise

    Scheduled Pinned Locked Moved General Questions
    24 Posts 5 Posters 1.8k 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.
    • jonhallurJ
      jonhallur @ulrik
      last edited by jonhallur

      @ulrik More updates.

      If you like to use modulators and MIDI I have found the least changes you can do to the HISE code to make that happen.

      diff --git a/hi_core/hi_core/MainController.cpp b/hi_core/hi_core/MainController.cpp
      index 2863465c6..5a40b119e 100644
      --- a/hi_core/hi_core/MainController.cpp
      +++ b/hi_core/hi_core/MainController.cpp
      @@ -975,7 +975,7 @@ void MainController::processBlockCommon(AudioSampleBuffer &buffer, MidiBuffer &m
                      }
           }
      
      -#elif HISE_MIDIFX_PLUGIN
      +#elif defined(HISE_MIDIFX_PLUGIN) || defined(ALLOW_MIDI_OUTPUT)
      
              synthChain->processHiseEventBuffer(masterEventBuffer, numSamplesThisBlock);
      
      @@ -1149,7 +1149,9 @@ void MainController::processBlockCommon(AudioSampleBuffer &buffer, MidiBuffer &m
       #endif
      
       #if !HISE_MIDIFX_PLUGIN
      +       #if !ALLOW_MIDI_OUT
              midiMessages.clear();
      +       #endif
       #endif
      
       }
      

      Then I added the following extra definitions

      JucePlugin_ProducesMidiOutput=1
      JucePlugin_IsMidiEffect=1
      ENABLE_ALL_PEAK_METERS=1 
      ALLOW_MIDI_OUT=1
      

      Export the plugin as a FX (not as MIDIFX) and Bob is your uncle.

      ulrikU 1 Reply Last reply Reply Quote 2
      • ulrikU
        ulrik @jonhallur
        last edited by

        @jonhallur If I change the code to this and export the plugin as FX plugin, will it really load as a Midi FX plugin?

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        jonhallurJ 1 Reply Last reply Reply Quote 0
        • jonhallurJ
          jonhallur @ulrik
          last edited by

          @ulrik With out knowing it completely, I don't think under the VST2 or even VST3 (I´ve done some professional JUCE work before using VST3) there is no concept of a MIDI FX plugin.

          At least in JUCE, you just tell the host that you want to receive and/or send MIDI. You can do the same with sound, stating how many channels you want to input/output etc.

          I have no idea what a given host does with that information. The host will ask a plugin upon instantiation weather it will produce audio and/or MIDI. A JUCE plugin can answer yes to both. Perhaps some hosts will decide to put some plugins into some categories, but it works on Windows both in Reaper and Ableton Live

          ulrikU 1 Reply Last reply Reply Quote 1
          • ulrikU
            ulrik @jonhallur
            last edited by

            @jonhallur Ok I see, I might give it a try and see if also Logic will accept it as a MidiFX plugin, thanks! :)

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            jonhallurJ 1 Reply Last reply Reply Quote 0
            • jonhallurJ
              jonhallur @ulrik
              last edited by

              @ulrik Please let me know, I don't have a Mac and I'm very curious about Logic.

              ulrikU 2 Replies Last reply Reply Quote 0
              • ulrikU
                ulrik @jonhallur
                last edited by

                @jonhallur I don't know if I did. it the right way but...

                I changed the code (as you described), compiled Hise Standalone with the extra definitions, exported as FX plugin from Hise but it didn't show up in Logic under the Midi FX slot

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @jonhallur
                  last edited by

                  @jonhallur am I supposed to set the extra definitions in Hise preferences as well?
                  And do I set the Hise projucer "HISE_MIDIFX_PLUGIN" enabled?

                  Skärmavbild 2022-08-22 kl. 21.42.04.png

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  jonhallurJ 1 Reply Last reply Reply Quote 0
                  • jonhallurJ
                    jonhallur @ulrik
                    last edited by

                    @ulrik No, I did not mess with the ProJucer project file at all it's just settings in HISE.

                    f8950dcb-f6b3-453e-b2b4-14d7ee2368e2-image.png

                    I also did not compile the HISE Standalone editor again, if that is what you mean.

                    ulrikU 1 Reply Last reply Reply Quote 1
                    • ulrikU
                      ulrik @jonhallur
                      last edited by

                      @jonhallur great, I'll test again

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      ulrikU 1 Reply Last reply Reply Quote 0
                      • ulrikU
                        ulrik @ulrik
                        last edited by

                        @ulrik I found some crazy behavior using Hise MidiFX plugin inside Logic

                        When standing on the MidiFX activated track it works fine, as soon as I stand on another track it fails, the arp is running but it's not producing any midi out to the instrument even though the arp is running as it should

                        Hise MidiFX Arpeggiator

                        Compared to the Logics own arpeggiator

                        Logic MidiFX Arpeggiator

                        Any thoughts about what's happening here is much appreciated

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

                        lalalandsynthL 1 Reply Last reply Reply Quote 0
                        • lalalandsynthL
                          lalalandsynth @ulrik
                          last edited by

                          @ulrik We got CC output to work as midi fx plugin if we export as AUv3 , but we are encountering problems with ui size and and some other minor ui issues. So I would love to be able to do a normal AU midifx plugin , did you make any progress with that ?

                          https://lalalandaudio.com/

                          https://lalalandsynth.com/

                          https://www.facebook.com/lalalandsynth

                          https://www.facebook.com/lalalandsynth

                          ulrikU 1 Reply Last reply Reply Quote 0
                          • ulrikU
                            ulrik @lalalandsynth
                            last edited by

                            @lalalandsynth yes, in Logic it works if compiled as MidiFX au, Logic will recognize cc

                            Hise Develop branch
                            MacOs 15.3.1, Xcode 16.2
                            http://musikboden.se

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

                            47

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.8k

                            Posts