HISE Logo Forum
    • Categories
    • Register
    • Login

    NoteOffByEventID always firing....

    Scheduled Pinned Locked Moved General Questions
    15 Posts 2 Posters 519 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.
    • LindonL
      Lindon @d.healey
      last edited by

      @d-healey actually its getting worse, if you turn OFF MIDI Input and toggle the Run button it will start to play a note, whihc is correct, you can play any other note and its fine - but play the SAME note (which should have a completely different ID) and it turns off the drone note...

      I cant seem to get my head around this MIDI model...

      HISE Development for hire.
      www.channelrobot.com

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

        Hehe I see the problem. I've made this mistake before too. You have a semicolon at the end of your if ()

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

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

          @d-healey oh yeah....thanks... lets see if that fixes problem I started with... thanks mate..

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon yep that fixes that problem - now how to fix this turning off my drone note when I dont want it off...

            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 shall investigate

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

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

                The only time drone ID is set is when you start the drone. You need to update it in on note.

                Actually ignore that.... more investigating

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

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

                  @d-healey
                  ok so adding this:

                  function onNoteOff()
                  {
                    Console.print("an OFF event");
                    Console.print("droneID is:" + droneID);  
                    Console.print("this event ID is:" + Message.getEventId());
                  };
                  

                  tells me the droneID and the eventID turning it off are different:

                  
                  Script Processor1: droneID is:139
                  Script Processor1: this event ID is:151
                  

                  HISE Development for hire.
                  www.channelrobot.com

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

                    I think I've figured it out.

                    If you turn off the run button and replace everything in your on note callback with Message.setNoteNumber(60); Then play a note, and then hold down a second note. When you release the second note the first note is cut-off too. This implies that there is some internal thingy that says you may only have one voice per note with the sine wave generator.

                    You'd need your script to retrigger your drone in note off if the user presses/releases the drone key.

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

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

                      @d-healey riiiiight.... wow thats very bad I think from a scripting notes basis..... Its not just the sine wave generator - I just replaced my sampler with the SWG so I could post the snippet....

                      HISE Development for hire.
                      www.channelrobot.com

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

                        With a sampler you should be able to choose what happens with the retrigger settings.

                        e8ab1563-bdcf-4f90-ac4f-a06f78da64a7-image.png

                        I just tested it with a sampler and it worked as expected. The voice count went up to 5 which is how many keys I was holding down and they were all triggering note 60.

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

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

                          @d-healey ahhh! OK I'll give it a try...

                          HISE Development for hire.
                          www.channelrobot.com

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

                            @Lindon OK well that sorta fixed it I think. Which is a bit of a relief as a whole truck load of CR and AudioReward instruments use "granular like" multiples-of-the-same-note-playing techniques...

                            HISE Development for hire.
                            www.channelrobot.com

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

                            15

                            Online

                            1.8k

                            Users

                            11.9k

                            Topics

                            103.7k

                            Posts