HISE Logo Forum
    • Categories
    • Register
    • Login

    How can I send pitchbend messages via script? (Solved)

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 287 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.
    • ulrikU
      ulrik
      last edited by ulrik

      I tried to use the

      Synth.addController(1, 128, 60, 100);
      

      using the number 128 which I found logging this:

      Message.PITCH_BEND_CC
      

      but I get this message

      CC number must be between 0 and 127
      

      What does this "Message.PITCH_BEND_CC" mean, how can I use it?

      I can't use the

      			Synth.addPitchFade(int eventId, int fadeTimeMilliseconds, int targetCoarsePitch, int targetFinePitch)
      

      because I want to control an external instruments pitch bend

      Any help is very 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 I dont think HISE can send CC ?

        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 ulrik

          @lalalandsynth Actually you can, if you compile the plugin as a MidiFX Plugin.

          Here I have an arpeggiator that sends out note events and also CC, controlling a soft synth inside Logic. Here it is CC1 via a SliderPack triggered via the Arps DisplayCallback

          video

          I send out using

          Synth.sendController(1, 1);
          

          I wish there were a similar function like

          Synth.sendPitchBend(ch, value);
          

          I thought it was implemented already, I know @Christoph-Hart have been working with the Aftertouch message and also CC values via the MidiPlayer I think.

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

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

            @ulrik @Christoph-Hart haha, I found that the controller number 128 works with

            Synth.sendController(128, value)
            

            but using

            Synth.addController() 
            

            with controller number 128 is not allowed!
            Great!

            Has the function always been there??? 🤥

            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 Yes it's working :)
              Now it's time to find a use for it haha...😜

              PB MidiFX

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

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

                @ulrik So If I recollect , this only works in Logic and somewhat in Reaper , right ?

                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 I'm still exploring the possibilities, but so far I've tested the midiout function and it works in Logic and Reaper, I have no success with Live, I read at Juce forum that Live doesn't have that kind of plugin (MidiFX) that is.

                  I also compiled Hise as a MidiFX plugin so I can load it in the MidiFX slot which makes it a lot easier to test.

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

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

                  55

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.2k

                  Posts