The delay module temposync slider popup
-
@pcs800 You don't need this
const var LDelayParamID = 0; const var RDelayParamID = 1; const var LFeedbackParamID = 2; const var RFeedbackParamID = 3;
HISE already has built in constants - you can find them by right clicking on the module header and selecting Dump parameter ID and values.
Then you can use it like this
Delay1.DelayTimeLeft
.Your sync button isn't triggering the callback - Console.print is your friend here. You have the button connected via processor/parameter ID.
-
@d-healey Thank you! It works now!
-
@d-healey
I have noticed with this particular plugin, that if I have it on a track in a daw, then save the project and re-open it, there's no effect from the plugin until I move one of the knobs. Then it comes right back.
Is there a refresh or some kind of code to put in onit at the top that will "kick it in gear" without the user having to move a knob?Maybe move a knob onit, and then right back to the position it was saved?
-
@pcs800 If the controls are have saveInPreset enabled then they should be triggered automatically.
-
@d-healey Every component in the project has saveInPreset enabled.
-
@pcs800 Which DAWs have you tested? Is it just what's in the snippet you posted earlier, or is there additional stuff?
-
@pcs800 I noticed 2 things in your snippet. 1 is the mix knob is all the way to zero. The other is the delay time is super short.
But assuming that is not the issue it could be related to the nature of the delay. I don't know if this is necessarily true for this particular delay. However, some models are designed to output the difference between the delay time and the input signal. This happens to me in Gen~ all the time where the delayed signal isn't processed until there is a change in the delay time itself.
So you're solution might work, you maybe able to script it to change values with a delayed callback, and then an even later delayed callback to set it back to it's initial value.
I don't recommend this though. I would recommend just building your own delay in scriptnode.
-
I would highly recommend using two controls and hide the one that isn't enabled as this will work much better with the data model - otherwise you have to ensure that when restoring the preset the correct value will be used for the slider.
-
@d-healey Here's the latest snippet
HiseSnippet 2960.3oc6as7aabbFeoj2DYZqX4.enGJBVKTfR0XQuj5EsCpE0KJqZRYZRI4jFTHOZ2gjCzxcX1codDCW3.zC8Vu1bn.4ufhdLG80Bj.DffdqGbu0i8OfB3NO1Gy9fTqkkc4gPCIqcl4a99M+999lGe6v5VXMnsM1RJS1cNsGTJyUkadpoSm05.PlRastTlqHWakpJqCM.mJs5o8.11PcoLYFeSZCxb4KIw9Le4UAF.SMXPQRR6gQZvpntHmfRqW9AHCiJ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sys.Ok.jIn2lru4PGSlTVlwnuAV9ypzmofnIzTm8vqHebqr.84LtUVvqRQuhI7u4+rrXtomSQjzZN3K+OYhGl8TnfGGd9gOKoud.aYRB9cpiM.VQc9unnxP2V+gGgRGRJizyh7gt6ldDGjLS+nMHmRtN3+WF62EA2uKzQWflEdeM9cufFpMAqDx31js19kkqQeVoP7aNB4P3n80zB2UwDr34Uv4NuBN+4UvENuBt34UvkNuBV5rEj9cVZk9N3t7XC2aEC+VqQVlP7Atig3J7BeCiXJjk7UutlD8X4Hp5ML0EyNSk9FFwZCsvHsilYX5yK9mW6le+e46WloSx3hV1Suwecy+0W9GVl.S5xKTTtj7bKk2bmEePo0Vcy1qkO+daTAntag58m2P6vs1j9S9UVu9mhdzi+sE1sB4uakOedI+aZo3sjgupEepBoZ02fkd8LY1vDPh+4k9+.vZz4EF
Daws testing in: Mixcraft 10 and Reaper
-
@HISEnberg I now have the mix set to default to value: 0.2000000029802322
The delay times both have default values of 0.0, but that shouldn't be a problem if a user sets the delay in a project to the time they want, it should restore that way the next time it's opened. -
-
@Christoph-Hart You are saying to add another slider for both left and right delay times, and hide them, and then code them to adjust +1 then -1, or similar?
-
@pcs800 I don't know if this is the cause of the issue, but for
RFeedback
you have the pluginParameterName set to DelayTimeRight and you have isMetaParameter enabled.For
LFeedback
you have the pluginParameterName set to DelayTimeLeft and isMetaParameter is not enabled.Calling this in
on init
will have no effect because thesyncButton
has saveInPreset enabled, so it's callback will be triggered after on init completes, overwriting the value set here.setSyncState(syncButton.getValue() > 0.5);
-
@d-healey Thanks for noticing these things. I have fixed them all, but it makes no difference to the issue I am having.
I think I will try the hidden knob idea, unless you have a better suggestion. -
@pcs800 I think that's a good idea
-
@d-healey
I created a bump for the 4 sliders which are controlling delay time.
and it doesn't seem to help.
Can you have a look at this?HiseSnippet 3254.3oc6as7aabbFeor2DYY6D4zbnGBJlHTfPWayrj5EsSqE0KpnXRKFRI6jZXXOb2gjS0xc1r6RIqXnBWfdn250lCEH+ETz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GO60K9J5DCDaM4vWJsx.WzdVFj5PKp9vegkCBJGWtykUCSyLXX9wiZ7JyzL8ITinX4SjWl+YcFuMwu5Q+rgrF2mdlzNDm9oTvHEijZ8mcuX4+lYT0KZZ+5EIi1ZoUtnKIRtA3WJxD0L5SeETynWDzufr+OJMzOiZ3V6lvvdL+jGHmTMHt4M3otlzv87iB2UrCKvHOvdRC3KNpJi97GGtp4NC7rGLwg7kkQtcZHWrS7ILXWVB1e+Qxd3KjbaJY.4YDfImf2rnV4EWTqrRJ4vOo2vfTsPerD7AFUN4RNxFFPa+RNN+n2T22exapK+KjV+lxmuwI8W.vtzQ6FIWJY6WEtKCe+umUsNwXfIzK90QmUhEeBrkqkuC3r64sEcceIGn+6JmY2Q8rBwqn1fsI8zw3TofQEkWIXz+l8eYUw0XNBfmWs5m8J5Z7Okj7unP9uoXaAbIGd9GYoG6JxH+ldieKejoHeEIje4nwteGxDpQNrAUfUcPegT0yp7w3zZkkgTpBBQa9S1hctLqxJNdKVSx.VEGDEJflf9tzsPG6vyz1xME60uJdVi8LCBsPVF7G9ezO9DKxdNmOwhADk8JlN72HCuLlaE3Tjntli9mICMwC2dJ0v8ime3yS6GRy1VzfeuFDSnSRm+yJUYreWKiOBkMk.SzYQdG+cSOgCRtoexFjyp1.9Ckw90Qv8qCYzGp6Pdjt3hWvB0ll2BcdawWa+Bp0YOCJN7ksfddb7iz0iOTCwXoSKiyeZYbgSKiKdZYboSKiKeZYr7IyH6W22pC7H8EwF9WIFwENitLg7CBGC4U3k9s3wEHujrACcK1ulFYQuokgbgZpNvzbn9vZLQ+X0Kl87R+o0e+u6O+cqvkIcdwZ6ou6eYq+8W96WgBS1xKLTtr57KWvZ2ktS40WaqtqWnv81rJTauhMFrfo99auE6uEVciFeF9Su+ut3dUoeuSgBETBuGlxWQFwpVhTEJ0arIun64xsoEjF+KZ8+CnKwBZH
-
That looks weird and shouldn't be necessary. Did you try the hidden knob suggestion?
-
@d-healey no I did not. I started to and then I thought about it and thought, if I'm just going to bump these why don't I just bump the ones that are already there. Or is it a different strategy? The other thing about this project is the link button that links and unlinks the two delay knobs and two feedback knobs, stops working as I make changes to the project. But to get it working again all I have to do is compile the code that's already there and then they start working again
-
@pcs800 Can you send me the project - the whole folder? So I can test it.
-
@d-healey Sure, I will PM you a link