How can I achieve this pitch mod?
-
I'm trying to achieve a specific pitch modulation on a Sine Wave Generator.
On NoteOn I'd like the pitch to start 12 semitones above the played pitch, then drop to the original pitch with adjustable time and hold that original pitch for the sustain portion of the note.
On NoteOff I'd like the pitch to fall to 12 semitones below the original pitch, with adjustable time.
I'm struggling to do it with just one AHDSR. I've been able to get some of the way there with 2 AHDSR envelopes modulating pitch, one controlling the attack portion with a -12st offset, and another controlling the release with a +12st offset - image below.
But this method is very quirky with the timing, it's very touchy to get it sounding right and it doesn't play well with the audio envelope release.
How can I do this with one AHDSR?
-
@dannytaurus Table envelope
-
@d-healey I can't get a Table Envelope to go up on the attack and down on the release.
Can you give a minimal example screenshot?
-
EDIT: Actually, I can make it go up on the attack and down on the release but I can't stop it jumping an octave at the note off point.
-
HiseSnippet 1005.3oc0WE0aaaCDlJ1rX1YqaYnnqOpWFP5VQgsiiSL5C0IN1cFqNwHxsauUvPQESDIRMJJuYLLrm2+p8SX+T5+fsiR1wRwtoNtoKa5AAc2wi7S28cGIGnjTVTjTgrJObRHCY8oXmIB8n1iHbAp2QHq6i6ShzLkcppCmDRhhXtHKqBuvnvpTQTxyae9gDehfxlqBgdsjSYujGv0y0Nn02y886RbYC4AYFc8V8nRQaouLFvSAbETHgdA4b1wDyv1.i9NRzHj02f2s1Nz5t64Vq1tMaPIMXM8HddU2wsd8F62r5NMI02uAqxtHq60wkqkJGMQyhfI8Po6DmQxeVjt.ulGwOymYDphbfUNUMp8Htu6fYAmHDxBOXdnpPZn5A39bW9k5mGx9hDC1y8HaPyZiqCRUuAPxJCjJlBosvNTEOTO2hAOah6IfLnGAxMYgR5XQV+ItsDFfP+z.xErtJP3RG1tQkJOwFd83m4EKnZtTXKEGK0rSDa+3x+Z4Rk+sx1W0jm2RsYVFkz2moVpYCcPccNtsHN3Ll5I1iI9wrKGH76mOlduUKlRS+qyLPonmfqOIjMUtqz20DqLeuXF.MMrAe8pdGQzDSRYpNXbgLklafi0QrwPYPZJpD9HVzEZYHTHrP9CXNR2XehNOcxTnM0.DOxkCMIJQDWOIag3MfiU4Z4XqJD2BOfqoiVNF2XIXDhTeLv3zJyOC2wyiQ0yAXQb2ebcKCW8k+9oK+lXGtfkzGMYweXhr8OPFyreASvTlfW0qoU5espsRCW4VomP0vxOTQDQgxnbSrCKfOTJLQg4JeUDzHf8SmZxlY02VRTK0zaedW3mbo93PzwpDZwAAxXgNGMnP97PwUqzMeEQlwuj9jEuCZce6TVcGV4ma2kRyvnCOHzm0QLl4Cs2Rv3WB8y7Hw95YZySr6KExvQRAmlMqeJSq3meNSkE6K8G5.sFNDvbMOn0oLeFIKC9OZ8Rf4QTPbhslwha9NsKMe8HbJbsMUi1eH4shqVd68r+zsQ26Beb6dmK1tYJH+b7PxYWglsUpN6OXV1g7PoOQ8N1WZABWqeeABGnJcPIHJYeequFWq9Su7oYa303SfWdeqQduTYzzY5c52dWwujGvuaOl7FqHk3qlxj++EQ9Q3YQ3+yA66hSlbpLVyEm2m.kA+BbEliiCbfCDPYvpKDLeXxwVaX1TOUthQN8DAB2Dg+FdlZrpQ1ZpwpyL9uxZDPnJ4ano2Avvh+jDMv+sH4lgkfqnBx1UQI2KHaKf.X272Po4mpEbr1553Nqqi0WWG2cccrw553dqqi6+9czbXqCh0xfzxTDp+fNoMFs5HLcISpHP+C.4vhmC
-
@d-healey Thanks for the snippet. It's pretty much the same as how I did it. But there's a pitch jump when you release the key. Does that happen for you too?
I'm using the HISE Controller to test it but I can't see why that would make a difference.
-
This post is deleted! -
@d-healey Figured it out.
Seems you have to set the Attack from +12st to 0st, then the Release from +12st to -12st.
-
@dannytaurus Aha that's it! Nice.
-
@d-healey Thanks for your help, as always!
-
D dannytaurus marked this topic as a question
-
D dannytaurus has marked this topic as solved
-
@dannytaurus a bipolar ahdsr with the sustain set to -6dB will do the same.
-
@Christoph-Hart That would be perfect if I could adjust the release curve - is that possible?
-
@Christoph-Hart Nevermind, found this post https://forum.hise.audio/topic/1259/ahdsr-release-curve?_=1749402810437
Still, would be lovely to have release curve for AHDSR, if it's doable.