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 Yeah, you have to fix that, maybe you should treat the keys outside as real note on & offs, and have the

      Message.makeArtificial();
      

      inside if statement? I don't know, you try and let us know what you've tried and how it goes.

      And consider also the note off callback, it must be treated the same way I guess

      :( That Makes Things worst,
      Can't useMessage.makeArtificial(); Inside The If Statement :(

      ulrikU 1 Reply Last reply Reply Quote 0
      • NatanN
        Natan
        last edited by

        @ulrik I Just need this to Work Inside The Range.
        and Other notes work as Normal.

        Also i Noticed If i Held a Note inside The range, and By Pressing Another Note Outside The range, It Still Does The Legato, I Just Dont Want That

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

          @natan Why not? Show what you've tried

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

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

            @lalalandsynth updated the legato script so when switching note priority while pressing more than 1 note, it will update sounding note to the relevant priority.

            noteprio.gif

            HiseSnippet 2101.3oc6Y8uaibaDdks2lH051j1fh9mLBAERI9jkrud4GNNm+cNiXemfk6kBXbHfdWJsDlhTYWJqS3fd25iPeTxaP6Lj6pcWq0xJNNWaBpfgsWxYH+32v4iyR0NT4whhTgNkJe93ALmR+N2Nik5f8CnboywG3T5CcOg0ipUjNdg7AZxHxy38BNQMpcHWEx0ic1a7.ZTDy2oTok+ZzsRkWww74Gd5dTAU5wRaxw4kJtG6DdetNs0167Mbg3HpO6bd+LV+3cN1SI2WITCAHtraSmATuqn8XOmhlsjqSoeyg9bsJrilpYQNkVYOk+3N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Z.V+A2cEBRZC+B3K2H2UxVNAic38GHXGJulI.R2fw+HvxcoCE5jVye28mpjpAAJI2K6EaeFSGx60iElE6Etf1UqAJKskOXmyXBFM6kz+Q6bBWxng.OwtmbQqezWOcgwq+hqEtDLmh7K2uTpk+08WJk8Zd6cJE1DB44tPsbcTCC8XvrKA0.TKqzRnpi84l3y1uLHou4g+M7ItyV3ykh6rURmuUli9TuP024YUow8ouqoEXcKMecwkcOEelzxwnbC941rQSG7fmuyyCo3GAhsE6yF2Ce17d3yiuG972tG97j6gOe58vmOat9fewP6NTq5aS4fFZen43rRkNTRgculc5N+Gx+YKiB
            

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

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

              This works !! wow , awesome !

              In terms of analog synth synth behaviour , one would need a way to not retrigger the envelope , or have a choice of whether to do that or not..

              https://lalalandaudio.com/

              https://lalalandsynth.com/

              https://www.facebook.com/lalalandsynth

              https://www.facebook.com/lalalandsynth

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

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

                @natan Why not? Show what you've tried

                I Just Added The Line Message.makeArtificial();
                After If Statements,
                It Just make The Notes Sustainable, and Stocking

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

                  @natan Why do you need it legato for only 2 octaves , just curious ?

                  https://lalalandaudio.com/

                  https://lalalandsynth.com/

                  https://www.facebook.com/lalalandsynth

                  https://www.facebook.com/lalalandsynth

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

                    @natan like this?

                    if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73)
                    	{
                    		Message.makeArtificial();
                    		
                    		if (Synth.isLegatoInterval())
                    		{
                    			if (eventId != -99)
                    			{
                    				Synth.addVolumeFade(eventId, 10, -100);
                    				heldNotes.push(lastNote);
                    			}
                    		}
                    		
                    		eventId = Message.getEventId();
                    		lastNote = Message.getNoteNumber();
                    	}
                    

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

                    NatanN lalalandsynthL 3 Replies Last reply Reply Quote 0
                    • NatanN
                      Natan @ulrik
                      last edited by

                      @ulrik
                      Similar To This, Let me Check Yours Thanks Lagend <3

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

                        @ulrik I am being stupid and super rusty in HISE.
                        .
                        I am unsure of how to name the switch panel in the script processor interface when I dont have access to the component list interface ...that window will only show me the main interface.

                        How can I name this panel and set it to allow all callbacks

                        ceff5f80-2b74-4edc-9823-6e5e4e013784-image.png

                        Can I not reach this window after I have created an interface ?
                        4574c903-6a5e-4fc9-ad6d-a9bbc49bb15b-image.png

                        https://lalalandaudio.com/

                        https://lalalandsynth.com/

                        https://www.facebook.com/lalalandsynth

                        https://www.facebook.com/lalalandsynth

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

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

                          if (Message.getNoteNumber() > 47 && Message.getNoteNumber() < 73)
                          {
                          Message.makeArtificial();

                            if (Synth.isLegatoInterval())
                            {
                            	if (eventId != -99)
                            	{
                            		Synth.addVolumeFade(eventId, 10, -100);
                            		heldNotes.push(lastNote);
                            	}
                            }
                            
                            eventId = Message.getEventId();
                            lastNote = Message.getNoteNumber();
                          

                          }

                          Perfect <3
                          :Thanks

                          Last Question:

                          I Need The Rest Of Notes To Not Trigger The Legato Script.

                          Let Say I Hold Note 60 ( Which is In Legato Range )
                          and Press Not 24 ( Which is not in Legato Range )

                          Note 24 Still Do the legato Thing, I Just Need it To act like Normal.
                          And Getting Throw

                          EDIT: It Looks LIke It Works :)
                          Let Me Investigate More

                          lalalandsynthL ulrikU 2 Replies Last reply Reply Quote 1
                          • lalalandsynthL
                            lalalandsynth @Natan
                            last edited by

                            @natan Is what is outside the range of your legato playing another sampler ?

                            https://lalalandaudio.com/

                            https://lalalandsynth.com/

                            https://www.facebook.com/lalalandsynth

                            https://www.facebook.com/lalalandsynth

                            NatanN 1 Reply Last reply Reply Quote 0
                            • NatanN
                              Natan @lalalandsynth
                              last edited by

                              @lalalandsynth
                              I Have an Idea to Use The Lower Octaves for Chords, and Bass Usage,

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

                                @natan I see , was just thinking if it is playin different samplers you could just set the range of the one that should be legato. THen it will not see the notes outside of the range

                                https://lalalandaudio.com/

                                https://lalalandsynth.com/

                                https://www.facebook.com/lalalandsynth

                                https://www.facebook.com/lalalandsynth

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

                                  @lalalandsynth you only need the SwitchPnl Callback, you can use a script slider with the the range from 0 - 2 so that you can switch between 0 - Last, 1 - Low and 2 - High

                                  There is the paintroutine and mousecallback, you don't need that, just add a script slider and put the code from SwitchPnl inside the sliders callback.
                                  Then you have to change all "SwitchPnl" names to the name you declare the slider to.
                                  You'll find them in the switch code in Note On & Note Off callbacks

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

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

                                    @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

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

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

                                      @lalalandsynth here I deleted the panel, commented out the paint routine and mouse callback, added a knob in the legato script with exactly the same callback as the panel, and linked it to a knob in the interface

                                      Hise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                                      

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

                                      lalalandsynthL 1 Reply Last reply Reply Quote 1
                                      • 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
                                            • First post
                                              Last post

                                            21

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.0k

                                            Posts