HISE Logo Forum
    • Categories
    • Register
    • Login

    Changing Hise Legato To only 2 Octaves???

    Scheduled Pinned Locked Moved Scripting
    52 Posts 4 Posters 2.4k 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.
    • NatanN
      Natan @ulrik
      last edited by

      @ulrik said in Changing Hise Legato To only 2 Octaves???:

      @natan You have to have the same if statement

      if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73)
      

      in the Note Off callback as well, the notes are generated in there too

      Thank You Ulrik
      Could you please Give me a Hint, I don't Have Confidence with Midi Scripts.
      : thanks so Much

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

        @ulrik Thanks mate !

        Now it works for setting it from the front panel.

        Did you try this with a sampler ?
        I get hanging notes on a sampler, looking to see if there is anything else that might cause this, bit of an old project.

        EDIT: Tested the sample map in a fresh project ,when I play notes with the legato script enabled, I get hanging notes , works fine for the waveform Gen.

        https://lalalandaudio.com/

        https://lalalandsynth.com/

        https://www.facebook.com/lalalandsynth

        https://www.facebook.com/lalalandsynth

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

          @lalalandsynth said in Changing Hise Legato To only 2 Octaves???:

          @ulrik Thanks mate !

          Now it works for setting it from the front panel.

          Did you try this with a sampler ?
          I get hanging notes on a sampler, looking to see if there is anything else that might cause this, bit of an old project.

          EDIT: Tested the sample map in a fresh project ,when I play notes with the legato script enabled, I get hanging notes , works fine for the waveform Gen.

          No I've not tried it with a sampler, I don't understand the difference I think it should work the same.
          It's the hierarchy the same?

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

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

            @lalalandsynth I think I found the issue. 😀

            I had to go into the sampler settings and under "Retrigger", switch the "Kill Note" to what ever and then back to "Kill Note" again. 🤔
            I don't know why I had to do that, it's like not all settings are there from the beginning and you had to confirm it by toggling the "Retrigger"

            Maybe @d-healey or @Christoph-Hart or someone else, could explain that?

            Skärmavbild 2021-11-13 kl. 11.08.21.png

            and also you should check that the GUI switch is connected to the "PrioSwitch" in the legato script

            Skärmavbild 2021-11-13 kl. 11.10.30.png

            Anyway now it's working fine with a sampler as well 🎉

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

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

              @natan can you show what you've tried so far?

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

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

                @ulrik Gamechanger ! Thanks !!!
                My Logan String Melody works now !

                Question 1: In some cases you would not want the retriggering to happen, I wonder if that is a sampler setting or needs any programming , i tried the playback settings and could not get it to stop the retrigger.

                For example on the Logan there are 2 monophonic bass sounds.
                On of them is sustained and needs the monophonic retriggering.
                But one of them has a short decay and should not retrigger ( at least that is what I think for the moment , would have to go to the shop and test ) Will do that in a couple of hours.

                Just thinking out loud as I can imagine that being needed for other analog emu´s.

                Question 2:

                When it does not play the sound the console throws up this error.
                "legato:! onNoteOff() - Line 7, column 32: NoteOn with ID1280 wasn't found "
                Thinking if that would cause any problems in an exported problem if its perceived as an error ?

                https://lalalandaudio.com/

                https://lalalandsynth.com/

                https://www.facebook.com/lalalandsynth

                https://www.facebook.com/lalalandsynth

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

                  @lalalandsynth said in Changing Hise Legato To only 2 Octaves???:

                  When it does not play the sound the console throws up this error.
                  "legato:! onNoteOff() - Line 7, column 32: NoteOn with ID1280 wasn't found "

                  Hmm, I don't get that here, I'll investigate

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

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

                    @lalalandsynth said in Changing Hise Legato To only 2 Octaves???:

                    Question 1: In some cases you would not want the retriggering to happen, I wonder if that is a sampler setting or needs any programming , i tried the playback settings and could not get it to stop the retrigger.

                    I think it would be scriptable, if you have a retrigger button and read its value inside all the cases in Note Off CB maybe?

                    like this:

                    case 2:
                    				var highest = getHighestNote();	// highest held key
                    				
                    				if (highest == playedNote || !Retrigger.getValue())
                    				{
                    					Message.ignoreEvent(true);
                    					break;
                    				}
                    				
                    				var eventId = Synth.addNoteOn(1, highest, 64, 0);
                    				midiList.setValue(highest, eventId);
                    				playedNote = highest;
                    				break;
                    

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

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

                      @lalalandsynth said in Changing Hise Legato To only 2 Octaves???:

                      But one of them has a short decay and should not retrigger

                      Could you describe how it's working, what will happen with held keys, what will happen when held keys (not sounding) is released?

                      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 YEs, will give detailed explanation in a while.

                        https://lalalandaudio.com/

                        https://lalalandsynth.com/

                        https://www.facebook.com/lalalandsynth

                        https://www.facebook.com/lalalandsynth

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

                        50

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        102.0k

                        Posts