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czab6K7cJWwGUmLAqRASGrnyrq.C1xjMo4moMOu0GMp4WjL2+.8MW4zA
-
@CyberGen yes you're right, so what is monophonic mode?
Has it to do with only 1 audio channel or does it mean something else?
What do you suppose should happen if you set the envelope in "monophonic" mode?
Sorry I couldn't help -
@ulrik In monophonic mode, the envelope responds to one note at a time, typically retriggering the attack phase, as opposed to polyphonic mode where each note gets its own independent envelope.
-
@ulrik you did help by confirming. Thank you.
-
@CyberGen Thank you for explaining
-
If you switch an envelope to monophonic, it looses its ability to kill voices. Normally I'm detecting if an envelope is not in the signal chain and throw an error, but this use case slips through.
Just add another envelope that you leave in poly mode and you should be good.
-
@Christoph-Hart I'm not sure I understand.
I added a second envelope. If the mono env is first in line, I still get unwanted note stacking. If I put it second in line, the retrigger behavior is not the desired one.
Is this what you mean?
HiseSnippet 2235.3oc6a0DaabbEdWQsIhzN1wM1wotMsKHb.nADXHonkDahinknnjRjrXMUbbPZqypkCI2pk6Pr6PIy5Z.CzePN0dsEH.sGC5gzBjhBzCsVn4PJZS.RgQS.5I0Fzhj1KFEEnWZa5alcWtyRxPwJpU1l05Dm26My79l279dyLTrfIVEYYgMEDCuVy5HAwCKUroAo5bUUzLDVJmf3CHUBUCKLay5JVVnRBhhgVfpSL7nBr+t8LypnqXnh7DIHbIrlJZYsZZDOoEx9bZ554UJgVSqFm0oytjJ1XNrNtA3GgjRHTWQcCkJnKnPMaDIvIlujFAaVjnPPVBhiNKtTyhUwaYXa+kzrzVWGQajTnHLP1hyi0KQ8X5mElqpldoBt30RPPTpfG5CYi9iKshVIsVx8VEdXlBYudvudHNhe2KjO2KIu6kfy85hKIx4RiZ6RGSpnpoVchmFp+bHokLHHyxJvxNuqXaqvH0BIMGFrvfDulxFn7lPiV8H1jIRLt7DIRblmJRjHvZuEQdSES4srRJeNYV7OdEDg4drVwhBphBV6Y64WLWwKNuwlHcbcTJ9tsBtTCcEX4HVTlQxsrhNB7SGYYM3imCLnhlAh12WPYSDQAVqnZh4274v0VGOK9pTez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exWb6d79joe5EEm4kBGTwsyMDySl+tMrw8eSyfhsE123IEdr9imDr6.Jts39W9V23I6V9lGO42Zhy8V+mS9wAE1V5NI1dF0ew6T4mDX0.d16juoPh26ids2W6sCp31JCwbIWYHFaabu9dxUJLO62rknn8u0A1OjFg+KPFpZFW```
-
Yes, this is intended behaviour, the voices still play polyphonically but have another monophonic modulation envelope on top.
If you're trying to make a mono synth, you need to do something completely else. Check the Monophonic Glide Synth snippet for a starting point.
-
@Christoph-Hart The note sticking problem effectively gets solved by the double envelope. Although now I have 12 new envelopes in my project for only 3 sound sources!
I'm not trying to make a monosynth.
How do I get the envelope to return to the attack phase with each new note and affect all sustained notes simultaneously, regardless of note polyphony?
-
@CyberGen said in Gain AHDSR Monophonic not working?:
How do I get the envelope to return to the attack phase with each new note and affect all sustained notes simultaneously, regardless of note polyphony?
It seems to work with a Table Envelope in mono mode
HiseSnippet 2297.3oc2a8EiabTFe26ts8rSZtFZRSHPgUVoRNkSN19bt6LsomyYe+q4tbGwWSSUAR2a8X6ka8NlcGe2YBQpR7G0mfWAIjnOV0G.jJpR7.jSzGJBZkJJhhDOcPEnV3kHDR7BP4alcW6Yscbbr8dIm8CQd9luYluey222u4alyYMSrJxxBaJHFX8pkQBhGVJaUCRwzEUzLDVJif3CIkCUBKLa0xJVVnbBhhCu.sOw.iHv9b6YlUQWwPEUWjfvUvZpnk0JoQpKcsTWTSWedkbn00JwochTKohMRi0wU.6XXonBkUT2To.5RJT0FRBLh4xoQvlYIJDjkf3HyhyUMaQ71F15eEMKsMzQzFwDxBSjs34w54nVLUpP5hZ54VyEuVBBhRqUG8Cai9iIshVNsZxquK7nrNjqOB98Cwg7ZdC6w7hwadQ4LuVXRhblzH1lzQkxpZpUlTuGp8bHokLHHy7Jv1NuoXqqvPe8gkRiAMLHQJorIZdSnQsQDdxnQGWdhnQOySGL3YepfvtuEQdKES4sshIedYVDPjBHBy.YsBGB5JDneccuvhYxd44L1BoiKihyOrUv4pnq.aHgCwTRtlVz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a2qtqmXM6TqlzooXRAAWr8lO9o+GiW43o7IrcpdvucZuwjeXq7amt4XxOrle6uey+1y7m9Ouie429LCvmA7YGf4RdhAXtjO2.LWxmuG7aQ5.tjHsiK4G7c+dOwa7u7MtjI6Ar8h6d2eexWb2179jIdlEEm4kB3W9syO.ySN+CZXi62OQuhsE5a7jBmry3IA81m7aK1+x2ZEOYqx2pyS9cl37uy+6DehegsktehsmU8W9dE9Y91Y.O28y2TH5G7wu9eT6c8K+1JCvbIWa.FaadPOlbk0ly9mAmn8Orc1+6HD9+.cqZqG
-
Thanks for the help.
I'm abandoning the idea of including this feature in my little synth project for now. I wanted to mimic the envelope behavior of some of my analog synths. However, since I already have 12 envelopes (3 synth groups * amp, flt, ptc, wav), it doesn't make a lot of sense to double that and to wrestle with the table envelope on top of the AHDRS envelope just for this feature.
I'll just keep them all in poly for now. I'll revisit this down the line.
Thanks again. :folded_hands_medium-light_skin_tone: -
@CyberGen maybe use global envelopes?
-
@Lindon That is a good option. Thank you for the suggestion.
I had thought about it. I guess the main reason why I don't go that route is that I like to keep envelope independence. I have things set up in a way that independence plays a role in an effort to produce uncommon textures. The other thing is that the idea of having different types of envelopes stacked over each other for a single purpose still doesn't sit well with me. I can't exactly get it to behave the way I want. And I'm not sure, but I think there isn't a way to control hold, decay, and sustain stages for the table envelope. So the whole thing just becomes too convoluted.
I would still like to have mono envelopes. Interesting sounds can be produced that way. But I think this may not be the right project for all that.