How to add Portamento
-
@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
-
@d-healey Excuse me, I meant for the Legato, I'll test it then.
-
@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. -
@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 ?
-
@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.
-
@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.gp2d8XbgQy8MLusUKVhBhsy1Z2A8YIIfugo4hOg1vrxRF5Ou4w6xBYBOnXKCiSkbO3o7HtpX21MNhGFdHyGNgGUh50ZzzSJ1SFJSQ6YQq5F8Ydmy5BOiQjsfkw2yR5YX9sV9tq4FroGa8McWaUOuU2biU2ZCOfED.q69vMVayf0BXd0W0v7FG3yUx3NJlBRPgtqzePmdxeVjofS4I7yBAZgqQGTyYaarWOdne6gNmDCCSq1EtpEybU20pE2mOZ+BW1WnOvtfixNMyEllI49dXRlkLokxLo6X0wKl2WUbBYO2zpo.ifnKAFyTxn0v72s1ShDHTOHhcNbXLtXDCNqWu9J13epscPpvSwkBao3YRE7bgSsp+Z0JUupp8aeTPvDOiTSrLLDhm3wT5P7zXzQjFcFDuh8ErvTXDg30ebe5MlMepW1stDgRQSAW879P95Ckg9juhd9ci.F4tM7oWzbelhQAk78P55CwJN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lWr7UdY.vTd5mo2Au2B8+ajJVsn01tuEpaF1G+UddiKp2gwUmWF+t4kw0lWFe37x35yKiaLuLt4+LizqarSpRFkUZZXzp8A5tjllGHXXVtthv3u0e.4gB
-
@tsempire Does the snippet do what you want?
-
@d-healey Yes, except that when you play two notes in a row, the first one cuts off. Do you know why?
-
@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.
-
@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?
-
@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.
-
@d-healey
The best thing would be to have a Glide button with a range from 0 to 100% to adjust it.
For example, when pressing and holding the C3 key, the next note (E3) should glide or pitch upwards.
Okay, I understand that Sampler1 doesn’t work with this — I see the problem. But how can we make it work with Sampler1? -
@tsempire said in How to add Portamento:
should glide or pitch upwards.
How do you define "glide".
@tsempire said in How to add Portamento:
But how can we make it work with Sampler1?
That's what we're discussing. First we need to define what it is we want.
-
@tsempire sounds like you might be looking for this post:
-
@d-healey
I think the Glide should work like a pitch wheel when you move it upward, the note’s pitch rises. It should be a knob that goes from 0 to 100% to control how strong the effect is.
That means when playing a melody on the keyboard, the first note doesn’t glide, but when the second note is played, it creates a pitch bend. The longer you hold the note, the more the pitch smoothly returns back to 0%.
-
@Lindon Thanks, I tested it and it works well, except that when I exported the plugin, it sometimes bugs when pressing several keys on the keyboard to play an oriental-style melody. One of the notes gets stuck and keeps playing continuously, even if I change presets. The bug only disappears after restarting the plugin.
-
@tsempire said in How to add Portamento:
think the Glide should work like a pitch wheel when you move it upward
Are you sure this is what you want? If you play C then push the pitch wheel to + 3 you get a glide up to D, but then what happens when you play E you will get a F#.
-
@d-healey I’m not sure I understand. For example, if I press and hold the C3 note and then play any other note, like E3, the E3 note should pitch.
Here’s a video with @Lindon script, but it contains a bug.
https://www.youtube.com/watch?v=o_uZ9SbgaP8
HiseSnippet 2943.3oc6ZstaabbElzxLIj4NPKxemJzeP4PcgT1N1wMohhbk0hvafKkbLBZCVt6PxoZ4ND6tTLrAFnuA8MpHu.EnOB8QnuAsemY1kbWIYEUAmKNsDxRbNy49s4ry5dARGdXnLHW9RCVNimK+6TvZoezjFSrE94LalK+aWXpzWN1S3xyc3xY1ggb2b4yuwSIDxW7t4Te9W+9Cs8r8c3qAkK2oRgCukXpHZMzdG7EBOuirc4CDSSg88OvzQ52P5ImCkYiB6kalsyY1i4crIztSgbGaGNIW96Un1ngN0F8I6+npOt5i+j6+3pUeviFd+8p439fGu+9Obe2Q0dj8CeDH5MLbEQx.qH6HdXt728Po6RqIxE9ZAbpHTLziSKplyBRVC9HomKYhDzbMlH7b6k3kBykKegdq8Yan8Y+pBsEthUvW669.0Fr0Tj1Al+NYUuMxndUSqd6kR8tBUJeJU5tZU5CKX4DHlEsdGcrzzOhGLx1IarTiat7eWgFRffezNSsOieT.VrhfxObu8pvvu15Iil66DIj9LoeGYDuqe4sJ8skJV5EkXWbqQitx8HwDH873AW41TpQv0QXY+4SGxCpvN21aNeEhv7y5SK7x8ooC4NZqNEhReSeQT2Yb+WVhPtXWE91IlMsiro.QLLf2LdPjfTg7M4mix.cXoXgl7vyhjyPgvkhYHaQ5N2yNJaJDUnEuA7AYhaTvwOTDsLcg3Eyqt6MKu55S6uop6GVnmHxYxUqu24JzW309gVeiqRe2BFiFwchVqr2svQe40VR9JWUdqWRS12QU3gU7fpuJ5xN6F2kM+FuV0j7G0j4+es2ujp89Hsp71Edl84bU8mRQ90p0ijASYOki5Oxmdc0f+iW80fcchfJLHv1OblLjWMMms3SECj97vLPu.E0tRJx.sIOZteVVqAkAKxUbDbEUSmTm.LElu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BCc.IlzJzDBjNfCEfajNTCCohCOoYWWPSfOFPiY0E6QqKWIck.U96I0YU.cUKcpHgTPJbfSonC+PMHFqXG57Y9D8iSPQNG0LADnDNSTdSDnRQyn3JgR+6Fm1qSjuw48TUBg+O.Y9EQlO8SohivoKBnI68Dl32wtjR.ne7GGmrgVR3QLhxp1BkMgTsnaVVqNyC3qC5hv0cPMNGm8VGUhmmIGPjD.TjqoO9LDec05gKUjZ5d0job5uHafdm.9T7rXFdb5QaKKzHMDd5yV4cJU5mnWfxa7p5Enr9VV16ZeYJ52gBzPfZj5pMdu3q1vhx5BxI.SJUX00poz+U2Bze4Odvs5swP3hGQwmTg7u4MQteSt7ExWBhbI8ER1HVNyR7m4ouTqo1quErC9qGLM8EId+C9w6dne07tEeesN9lEpebSq9wpV1YtxnZzkOMahzWj4Z55yw3ZiGyyb6eWoUnmeqw7fy4Yu2RG6kWBpF40P97CzPZwglkFwiQl350+1CTraEfuK3.q4gQYtxWRm831gqk2e+ucfgiDQD9szq+8bCeEtgYFuaAsQxT4j+790S7dI5pNh7yak8cJnRKdcvu99EhSXesvw9dEhqkdcv0dsuQsM9e92n10elUaw2vds4cm9QE5F5TioB2re5i28kyiD9iaaiiJoIMvTqVx4AN732+B8esk72glaRudujgPr39tpE+a7Idypz57waVMYyewHio1NAxu1QO0Hc34aof.equ5+5XEKzlVypdgYEwmoBWwW63jkUWhvZ2VB2+1R38usD9faKgO71R3mbaI7Qe+DRuL05yijS00h4x0tmgZ19740uOYUYYt+i5uV6C
-
@tsempire said in How to add Portamento:
I’m not sure I understand. For example, if I press and hold the C3 note and then play any other note, like E3, the E3 note should pitch.
Play C3, move your pitch wheel +3, it will bend to D3.
Now you want to play E3, you have three choices:
- Let go of the pitch wheel and it will bend back down to C3, then you can play E3
- Push the pitch wheel up more to bend the original C sample up to the E
- Press E and quickly release the pitch wheel, you'll get a very fast glide down from F#
I don't think this is not how you want the portamento script to behave.
-
@d-healey said in How to add Portamento:
Push the pitch wheel up more to bend the original C sample up to the E
I think it’s more like option 2:
Push the pitch wheel up more to bend the original C sample up to the E.