HISE Logo Forum
    • Categories
    • Register
    • Login

    trigger the Arpeggiator with artificial noteons

    Scheduled Pinned Locked Moved Scripting
    17 Posts 5 Posters 643 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 have a project (Midi FX Plugin) where the arpeggiator is triggered by the keys pressed on the keyboard.

      If I have the Arp in "Chord" mode, it will play all the pressed keys as a chord.

      So my question:
      Is it possible to trigger the Arp with, lets say, 3 Artificial noteons?

      scenario:
      User press 1 key, in a script processor it will send out 3 Synth.addNoteOns... and the "real" pressed key will be ignored while the 3 Artificial notes trigger the Arp so it will play a chord.

      Is this possible?

      Since this is a Midi FX plugin, I'm not able to use Containers (the midi events, artificial or real, will not go down/up the module hierarchy)

      If I place a Midi Player above the Arp, I can get the midi events from the Midi Player to trigger the Arp but I'm unable to trigger it with Synth.addNoteon....

      Skärmavbild 2022-08-05 kl. 18.29.52.png

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

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

        @ulrik I don't know how things work in the HISE MidiFX build but I guess you've already tried by simply writing this in a midiScript :

        function onNoteOn()
        {
        	Message.ignoreEvent(true);
        	
        	Synth.playNote(yourNoteNum1, yourVelocity);
        	Synth.playNote(yourNoteNum2, yourVelocity);
        	Synth.playNote(yourNoteNum3, yourVelocity);
        }
        

        I took a look but it seems you can't go scriptnode for this usage...

        Develop branch
        Win10 & VS17 / Ventura & Xcode 14. 3

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

          @Matt_SF thanks for checking!

          Yes that's what I've done but the Arp doesn't respond to it, I didn't use the Synth.playNote() though, I used the Synth.addNoteon..., maybe there is a difference between those commands, I'll check it.

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

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

            @ulrik I think Synth.addNoteOn() - basically - adds a noteOn event to the message thread and Synth.playNote() actually plays a real note.

            Someone, please correct me if I'm wrong because I've always had a hard time wrapping my head around midi events 🤓

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

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

              @Matt_SF said in trigger the Arpeggiator with artificial noteons:

              @ulrik I think Synth.addNoteOn() - basically - adds a noteOn event to the message thread and Synth.playNote() actually plays a real note.

              Someone, please correct me if I'm wrong because I've always had a hard time wrapping my head around midi events 🤓

              Oh, ok sounds interesting :)

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

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

                @Matt_SF no luck with

                Synth.playNote()
                

                it seems to make no difference.

                Why is the Arp triggered if I run a MidiPlayer but not if I use

                Synth.playNote()
                or
                Synth.addNoteOn()
                

                I'm running both from the same place in hierarchy.
                It's like the MidiPlayer sends it's midi events via another buffer, or something, I don't get it, I have to get one of @d-healey,s t-shirts I guess :)

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

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

                  @ulrik I think the Synth functions works on the Synth modules and is not generating any message, maybe you need the Messageholder functions instead.

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

                    @Soundavid Ok, do you have an example of how to do that?

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

                    S 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey
                      last edited by

                      What about adding a synth module and enabling this setting?

                      8e31521c-eb9d-4935-a376-779b8b52b28f-image.png

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      ulrikU LindonL 2 Replies Last reply Reply Quote 0
                      • ulrikU
                        ulrik @d.healey
                        last edited by

                        @d-healey I have it enabled already.

                        My standalone Hise is compiled with this setting enabled and I think that is why it will not trigger synth modules, modulators or containers

                        Skärmavbild 2022-08-07 kl. 18.00.03.png

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

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @d.healey
                          last edited by Lindon

                          @d-healey said in trigger the Arpeggiator with artificial noteons:

                          What about adding a synth module and enabling this setting?

                          8e31521c-eb9d-4935-a376-779b8b52b28f-image.png

                          what exactly does this do in an FX plugin?

                          I ask because I'm looking for a way to include Poly waveshaper in my FX plugin...

                          HISE Development for hire.
                          www.channelrobot.com

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @Lindon
                            last edited by

                            @Lindon I know no more than this:

                            8d33ca31-9226-4479-82d6-f167bb41a04b-image.png

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @ulrik
                              last edited by

                              @ulrik said in trigger the Arpeggiator with artificial noteons:

                              @d-healey I have it enabled already.

                              My standalone Hise is compiled with this setting enabled and I think that is why it will not trigger synth modules, modulators or containers

                              Skärmavbild 2022-08-07 kl. 18.00.03.png

                              What is a MIDI effect plugin in this context? HISE doesn't have MIDI out does it?

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

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

                                @d-healey said in trigger the Arpeggiator with artificial noteons:

                                @ulrik said in trigger the Arpeggiator with artificial noteons:

                                @d-healey I have it enabled already.

                                My standalone Hise is compiled with this setting enabled and I think that is why it will not trigger synth modules, modulators or containers

                                Skärmavbild 2022-08-07 kl. 18.00.03.png

                                What is a MIDI effect plugin in this context? HISE doesn't have MIDI out does it?

                                Yes it has midi out, when compiled as a midifx plugin.
                                I know you use Reaper and a midifx plugin is inserted before an instrument and sends its midi events to the instrument.

                                Skärmavbild 2022-08-07 kl. 18.42.42.png

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

                                LindonL d.healeyD 2 Replies Last reply Reply Quote 0
                                • LindonL
                                  Lindon @ulrik
                                  last edited by

                                  @d-healey

                                  but see this:

                                  Link Preview Image
                                  Midi Effects Plugins in Ableton Live

                                  I've started experimenting with building MidiFX Plugins with Hise. In Logic I can get those plugins to work, in this one, it will redirect the played/recorde...

                                  favicon

                                  Forum (forum.hise.audio)

                                  HISE Development for hire.
                                  www.channelrobot.com

                                  1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @ulrik
                                    last edited by

                                    @ulrik said in trigger the Arpeggiator with artificial noteons:

                                    Yes it has midi out, when compiled as a midifx plugin.

                                    Oh I didn't realise! Excellent.

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

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

                                      @ulrik I don't have a clear example right know but the Synth.PlayNote(); works when the Arpeggiator is inside a ChildSynth, but if you try the Message.setNoteNumber(); the Arpeggiator will work fine outside, the problem here is that you want to play a chord but if you review the API the Message and MessageHolder functions have things like MakeArtificial(); so maybe you want to start there.

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

                                      18

                                      Online

                                      1.7k

                                      Users

                                      11.8k

                                      Topics

                                      102.6k

                                      Posts