Why does it works with one knob, but not the other...???
-
@Sampletekk You can't use processorId/parameterId and a callback. It's one or the other.
-
@d-healey said in Why does it works with one knob, but not the other...???:
@Sampletekk You can't use processorId/parameterId and a callback. It's one or the other.
Aha, ok! How could I do a callback on the release time on the simple envelope modulator then?
-
@Sampletekk Actually I just explained in another thread how to do it for Attack time, so change Attack for Release - https://forum.hise.audio/topic/8630/display-control-parameter-on-label/4?_=1702069548952
-
@d-healey said in Why does it works with one knob, but not the other...???:
@Sampletekk Actually I just explained in another thread how to do it for Attack time, so change Attack for Release - https://forum.hise.audio/topic/8630/display-control-parameter-on-label/4?_=1702069548952
Tried this, but no luck....
inline function onknbReleaseControl(component, value) { DefaultEnvelope1.getAttribute(DefaultEnvelope1.Release, value); Console.print(value); }; Content.getComponent("knbRelease").setControlCallback(onknbReleaseControl);
-
@Sampletekk Did you remove the processor/parameter ID assignment in the property editor?
Edit: Oh and it's setAttribute not get.
-
@d-healey said in Why does it works with one knob, but not the other...???:
@Sampletekk Did you remove the processor/parameter ID assignment in the property editor?
Edit: Oh and it's setAttribute not get.
Ok, removed the processor/parameter ID for the knob in the GUI, and changed to setAttribut:
inline function onknbReleaseControl(component, value) { DefaultEnvelope1.setAttribute(DefaultEnvelope1.Release, value); }; Content.getComponent("knbRelease").setControlCallback(onknbReleaseControl);
So, now I get this:
-
@Sampletekk Snippet
-
@d-healey said in Why does it works with one knob, but not the other...???:
@Sampletekk Snippet
HiseSnippet 2284.3oc6Z0DaabbEdonVGQFYWaA2hjCAXQ.JfbSffnjrTLbA3JQIpRa8CsnrRB5Akk6Njbf1clM6NqjoMLPOzC8V60by.EnGK5kdnmpPA5gBjaAnWqK5obSm5014uk6rKIsoYjsrchNX327y68Mu48dy68VVO.aCBCwAZ4JreWefVto0azEQ5ToiEDoUacsbWVugkmuKHvXWDPast9Vgg.Gsb4xuIaI4JLoF+uyJulkqExFjLjl1AXnMXKnGjjLZcy6BccqZ4.1G5or5kLqYiQUvt3HJbxqOuluk8QVsA6XwV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EWJDaxRwSN5FfhZGLnmp.xqgdHSqyqqxfUF7aa2Q1wrhddj+ewqG4AH1SI7Vq3RKD1M0WlIo2tupsjjO59i3NO8ZdnpC031QwyJOnNfbV4A2AD5qyuPcTrzX1QwI+gJkuf5n32+J23JxlIH+JvhKQwPFhwR4RMwdXrW5OP62VdcZr7jmVokY7eJ+o.xVJQPnK6eTd8ftYF6aK+oJeLO9.zjm.ODnjpK+S.et8R8q5PWyDeKSiPcL1MhavIJYPYjAooySUWoie84mR0pJC8ze2e6uWdKpBQsdO1uAAO+H2PvV.Ta0OT5Ykk3pFxOhjoNj0rrOpM8EOjy9cB.VoJ+nd.vA3ZkRF+BXEEdPKxLsMfnXzp6K+8yHG55lU68iZY19+ToelQoad3BycSiF.6CmewC2atSrNVi+EGEWA7u1ndt+6SmRyEi8E4NHmiMvFHm34eyxf4sEY3YYGfOzV7qxhEvYJ9HTcKheoWPeaFsQor+VtzXeFZ3g11oYUeabgwciKNtabowci2bb23xi6FWYb23m772HKIiUiHXOwSlZZaWeCQRi41nWRi409+.4TG+jA
-
@Sampletekk said in Why does it works with one knob, but not the other...???:
HiseSnippet 2284.3oc6Z0DaabbEdonVGQFYWaA2hjCAXQ.JfbSffnjrTLbA3JQIpRa8CsnrRB5Akk6Njbf1clM6NqjoMLPOzC8V60by.EnGK5kdnmpPA5gBjaAnWqK5obSm5014uk6rKIsoYjsrchNX327y68Mu48dy68VVO.aCBCwAZ4JreWefVto0azEQ5ToiEDoUacsbWVugkmuKHvXWDPast9Vgg.Gsb4xuIaI4JLoF+uyJulkqExFjLjl1AXnMXKnGjjLZcy6BccqZ4.1G5or5kLqYiQUvt3HJbxqOuluk8QVsA6XwV1D5Z4tzFNPBNnAwh.B0xM4ZXmtM5fOAIV+AvPXSW.injVCJiDCWE65vPLaTsJcftN0iO1gZTlVOQIjWnDtt91PGXuwSTFWkOgQxNT0G4lHM7xmBdkTg27Jva.PJmBjlT.oqo2vN.5SRlggm2UuFh.BZYYm9pQrVsI9o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W5OP62VdcZr7jmVokY7eJ+o.xVJQPnK6eTd8ftYF6aK+oJeLO9.zjm.ODnjpK+S.et8R8q5PWyDeKSiPcL1MhavIJYPYjAooySUWoie84mR0pJC8ze2e6uWdKpBQsdO1uAAO+H2PvV.Ta0OT5Ykk3pFxOhjoNj0rrOpM8EOjy9cB.VoJ+nd.vA3ZkRF+BXEEdPKxLsMfnXzp6K+8yHG55lU68iZY19+ToelQoad3BycSiF.6CmewC2atSrNVi+EGEWA7u1ndt+6SmRyEi8E4NHmiMvFHm34eyxf4sEY3YYGfOzV7qxhEvYJ9HTcKheoWPeaFsQor+VtzXeFZ3g11oYUeabgwciKNtabowci2bb23xi6FWYb23m772HKIiUiHXOwSlZZaWeCQRi41nWRi409+.4TG+jA
You didn't declare variable.
Write itconst var DefaultEnvelope1 = Synth.getModulator("DefaultEnvelope1");
-
HiseSnippet 2269.3oc6Z8zaabbEeonVGQFaWagzhjCAXgOI2jRHJIKECiBtlThtTV+gVTVIAs.JK2cH4.s6La1cVIQEXfbnG5szq4l+HzK8PuoVfdn2JP9.zz1S4l9Fz9lY2k6rTjxzLzR1FgGDzalcdueyadu27ducq6QMQ99TOkL41sqKRIy0Uazkv5ToiAlnTaUkL2PsggiqMxSaaBRobWWCeejkRlLYeD+QxjaZEwuyJU1v1fXhRFRQYOJ1DsA1AyRFst9iw11UMrP6hcjd5kzqYRIUn1z..NYUmWw0v7.i1nsL3O1TpJYt1ZVXF0qAyfg7UxLcYpU2FcnGQBe98v93l1HNQQkF.iBGtJ01hiX9nJU5fsspGus8U.lVOQIjMTI7dpahsv8FOQYbKwDZIqPVejYpzvKaJ3UTFdyKAuA.oLRPZ5PHca0FldXWVxLb77tp0HLjWKCyzGMgOqxT3oTqPgmfvJ3Xb.ppGPzaEysz7y+wZvet6CxCZdel1gFdZqhZYDXyVibHxl5hJp8q0DVDEZiXaRsBrMfs3b2o+G6N.SvDaLAo0JfXxvThFk7XBsYQNB7n1yYRcboD.KeLHH6.zcy+U4yAS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A19nMPj1xu8yyJEgqZD2.VektT1v7f1vseDqc63gLRUwRcOjEx1HkL9M3JR7.pKMsMPX8qU2M5ihIZn2SuZuuTk4N+6+7yzJdu8Wnv8zZfL2e9E2emBGYbnh3i.H7HP7ZVC+WaJ0MLmBoAViXES9lkAyaKxvwvzituY3mZEOfyLhQ.cKQbnmScSNsVuuwJU04KLO+Eqi22zjG56WUTQYvqYgwXMKNFqYowXM2aLVyxiwZVYLVymbgqgm7vCCXTmvqBgApuVXxfYVqWxfYU9+.TsT5dA
-
@DabDab said in Why does it works with one knob, but not the other...???:
const var DefaultEnvelope1 = Synth.getModulator("DefaultEnvelope1");
Woohoo! Not so easy for an old Cobol programmer, but I'll get there! Thanks a million!