HISE Logo Forum
    • Categories
    • Register
    • Login

    How to add Portamento

    Scheduled Pinned Locked Moved Scripting
    69 Posts 9 Posters 11.6k 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 @beatbossb
      last edited by ulrik

      @beatbossb I think I wrote that script, it's a glide up/down to pressed key script, in the picture below:
      if key pressed, the sounding note will start 2 semitones under the pressed key and glide up to the pressed key during the amount of time set (102ms)

      Skärmavbild 2025-01-03 kl. 09.28.14.png

      You could try this one, I think it will do what you had in mind
      It's a monophonic portamento script (at least I think portamento is the correct name, someone with more knowledge please chime in)

      HiseSnippet 2132.3oc4Y8taabbD+NQcB4naMZ9CB5G2PDjdxflVTQQVwFJQVxRIpwxVPT1onAAAqtaOxs7tcYtcOovTHfh9h09HzGi9w7FzNyt2QdTjhhVH1en0vvf6tyryu4+yd93LYHSojYNt0Oc3.li6uwqyPgt2d8nbgygO0w8tdGQUZVFwt0tCGPUJVjiqasuB2v0eYGye9kubWZBUDxFukiyqj7P1y3ob83cOdmugmjb.MhcJOsB0aryggRwdxDYNfmZdq4LfF1m1k8bJR1RdNeMU0yw8ddQs2nc7VgzM2p8FqGFt9VOb8O+ggLZbLay1e1C2Xq3Mhogqsti6J6Gw0xrNZplobbWdWYzvN8jWHrB3UbE+rDFtnsSGPx1sOPlDgpH9am85wShNtzPobbb8NdrYql0r8AdGwi3i1er462YNfLlipFP2klDd0l.dsuN3MCH4VARKagz650ILiOPO9DDO2w6PA3MAyCaBnXo0w8e5smDHPnakR6yNHCVLhgfMWaslD3eV8ww4hPMWJHRwykZ1KDAqV+uV2u9k0IW8n33YdFJlLYRBKalGigFYyiw.Qd5YrrljyoI4rQDBp+j1zUVLaZnUqqPnTbnfqew.Vw5wAEsmgGvovrA+5kG9TplhNkh8.5FvxzbDNtOkcNjRXcQ9dOko5qkCfjho7ePjiLJOgpmLbBS5JN.rG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LH
      

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

      1 Reply Last reply Reply Quote 0
      • B
        beatbossb
        last edited by

        @Ulrik

        Thank you

        1 Reply Last reply Reply Quote 0
        • B
          beatbossb
          last edited by

          @weezycarter

          Did you ever get the Glide to work?

          1 Reply Last reply Reply Quote 0
          • tsempireT
            tsempire
            last edited by

            Does anyone have a real Portamento that does the job properly? I've been looking for months 🤒

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

              @tsempire Everyone seems to mean something slightly different when they say portamento. How do you mean it?

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              tsempireT 1 Reply Last reply Reply Quote 0
              • tsempireT
                tsempire @d.healey
                last edited by

                @d-healey

                I'm looking for a portamento effect like in Kontakt, for the Balkan and Oriental styles.

                Even when I tested the glide, it doesn't sound right. I've looked everywhere on the forum and tried scripted things for months without success.

                This is what I've been trying to find for months, the glide and Portamento

                https://www.youtube.com/watch?v=cI8b6NSLQgA

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

                  @d-healey

                  Is this what the latest version is?

                  Legato.js

                  d.healeyD tsempireT 2 Replies Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @tsempire
                    last edited by

                    @tsempire No

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

                    1 Reply Last reply Reply Quote 0
                    • tsempireT
                      tsempire @tsempire
                      last edited by

                      @tsempire Is there a latest version of the script ?

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

                        @tsempire The script you linked to is the latest version of my legato script, but it's not a portamento script so won't be useful to you

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

                        tsempireT 1 Reply Last reply Reply Quote 0
                        • tsempireT
                          tsempire @d.healey
                          last edited by

                          @d-healey Excuse me, I meant for the Legato, I'll test it then.

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

                            @tsempire said in How to add Portamento:

                            This is what I've been trying to find for months, the glide and Portamento

                            11 minute video in a language I don't understand isn't much help here.

                            Can you give me a break down of how it should work from a user's perspective?

                            Press 1 key, what should happen?
                            Press 2 keys at the same time, what happens?
                            Hold 1 key and press another, what happens?
                            etc.

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

                            tsempireT 1 Reply Last reply Reply Quote 0
                            • tsempireT
                              tsempire @d.healey
                              last edited by tsempire

                              @d-healey I'm almost there. The problem is that the notes get cut off when they are played. The notes should pitch correctly. Do you understand me better now ?

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

                                @tsempire said in How to add Portamento:

                                Do you understand me better now ?

                                Not really. Imagine I'm DaveGPT and you need to explain to me what you want.

                                Free HISE Bootcamp Full Course for beginners.
                                YouTube Channel - Public HISE tutorials
                                My Patreon - HISE tutorials

                                tsempireT 1 Reply Last reply Reply Quote 1
                                • tsempireT
                                  tsempire @d.healey
                                  last edited by tsempire

                                  @d-healey A glide effect (also called portamento) makes the pitch slide smoothly from one note to another instead of jumping instantly.

                                  When you play two different notes:

                                  Without glide → the first note stops and the second starts instantly.

                                  With glide → the pitch slides gradually from the first note to the second, creating a smooth transition

                                  HiseSnippet 1358.3oc2XssaaaDDkz1LnRoInoHnnOxZjGnJbBDcc7EXDD4qoBNJQvxwo8of0jCkVXxcUIW5Z0FCzOs9IzOkzuf1YVRIRkHqpHj1fTAAKt6N214xYF51wROHIQFaXV8jA8ACyO2py.gp2d8XbgQy8MLusUKVhBhsy1Z2A8YIIfugo4hOg1vrxRF5Ou4w6xBYBOnXKCiSkbO3o7HtpX21MNhGFdHyGNgGUh50ZzzSJ1SFJSQ6YQq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eMxDSE9YYLai6e0Ggwcr9PMtyzFwIaxFzpPRUZDqamiX0gBswFbepy2n3rg1nGA0+aMaLWCIQzF0G6NQsMt4Lo3KQOhIoyACeHh66GBsk3LHzrIiroiZfuYS+N7eAJ2GKhcYwxerQRZP.mjokcThAgdgCXZo0TT4l12qAg.RuAUAB3mBy3MVynJCswN7n9gvAhKfPLFoswuDCJArzP0vcGugTKoP1umTv8J2e+XPEy61EhKa6S7BsiRgutWwN2swwPHvJOqx8Z7TrNiE2RGDlKew6+6TMw30WakYt5nr8mtylu3+umM+XYphK51hgIgTILBs2AGI1CPsKDPHAdZt.Aykst9PDiNfvWu3uvO4G5RqMyOzc3g+mniHlWr7UdY.vTd5mo2Au2B8+ajJVsn01tuEpaF1G+UddiKp2gwUmWF+t4kw0lWFe37x35yKiaLuLt4+LizqarSpRFkUZZXzp8A5tjllGHXXVtthv3u0e.4gB
                                  
                                  
                                  d.healeyD 1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @tsempire
                                    last edited by

                                    @tsempire Does the snippet do what you want?

                                    Free HISE Bootcamp Full Course for beginners.
                                    YouTube Channel - Public HISE tutorials
                                    My Patreon - HISE tutorials

                                    tsempireT 1 Reply Last reply Reply Quote 0
                                    • tsempireT
                                      tsempire @d.healey
                                      last edited by

                                      @d-healey Yes, except that when you play two notes in a row, the first one cuts off. Do you know why?

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

                                        @tsempire said in How to add Portamento:

                                        Yes, except that when you play two notes in a row, the first one cuts off. Do you know why?

                                        Not sure what you mean, I'm able to play continuously with that snippet.

                                        Free HISE Bootcamp Full Course for beginners.
                                        YouTube Channel - Public HISE tutorials
                                        My Patreon - HISE tutorials

                                        tsempireT 1 Reply Last reply Reply Quote 0
                                        • tsempireT
                                          tsempire @d.healey
                                          last edited by

                                          @d-healey Indeed, it works on a Sine Wave Generator1.

                                          But when I use a Sampler1 with samples,

                                          when I hold down the E5 key and then play another note above it, like G#5, the E5 note stops playing immediately, even though I’m still holding the key down.

                                          Do you understand better now?

                                          Demo :
                                          https://www.youtube.com/watch?v=-GqEBsoQHeY

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

                                            @tsempire said in How to add Portamento:

                                            But when I use a Sampler1 with samples,

                                            I know exactly why that happens. The script won't work with samples.

                                            Give me every single detail of what you want. How is the glide speed controlled? What role (if any) does velocity play? How should notes "glide"? - do you just want to pitch shift up/down or do you want to trigger the destination note too and transition into it with a crossfades, etc.

                                            Free HISE Bootcamp Full Course for beginners.
                                            YouTube Channel - Public HISE tutorials
                                            My Patreon - HISE tutorials

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

                                            16

                                            Online

                                            2.0k

                                            Users

                                            12.8k

                                            Topics

                                            110.6k

                                            Posts