ScriptNode - Unison Effect Using Clone Module
-
Hey!
Working on fx and making a serum hyper-like fx where there’s a multiple voices and each of those voices run through a chorus delay, planning building off this snippet:
Click Me!
Question is, how do I make a unison effect with multiple voicings such that the voices are panned - basically some even distribution of left and right depending on the number of voices which I’m planning on 3-5. I’ve read that the clone module can do a unison effect in the docs, and @Christoph-Hart said he’s made one before, but the problem is that I couldn’t really understand how the clone module could be used to do thisThanks!
-
@Casmat Yes that's possible and I would recommend this approach:
- Create a single chorus network with parameters for phase, amplitude and LFO frequency of the delay modulation (frame-based modulation of a jdelay node). If you're at it, add a panner to the effect with a public Pan parameter so you can connect that later. Use a modulation range of 10ms for a subtle detune or more if you want more, but this will also add more latency to the detuned signal.
- Compile this into a single node, then add this to a clone container (the clone system is a bit finnicky so it's best to just give it a single node that will be duplicated). Make sure you set the processing mode to Parallel, then create as much copies as you want (you can make this even dynamic to control the amount of unisono voices)
- Use clone cables to set varying values for each parameter. Use the random mode for the phase, the bipolar one for the amplitude and anything for the frequency.
I would give you a snippet, but since this process involves compiling a node and reusing it, you'll better off following that recipe.
-
-
@Christoph-Hart couple questions:
- havent used scriptnode a lot so how do I compile something so it becomes a single node?
- In the snippet when the frequency is turned up, the modulating of the delay creates a highpitched sound, is that just because the note played is a sine wave or is there something im missing?
HiseSnippet 2212.3oc6Z8raabbFeVJszRTxMw01HEE8.QPOn.nHrKkhjU6AQ8OZKDKYBQEE2Csti1cH4Tsbms6NTRrAAnG6sdN2ZeC50dyO.8P.Ze.BPeAxaf52LytbmkZIMEkkRUQoAr878My78+eeyvg0CYNjnHVHxX1i5EPPFya1nmOu81swTezd6fLlwzoMKraDZqdA3nHhKxvXpmK3ZL6zH4mueisvdXeGRJID5XF0g7RZGJOkZ8peN0yqF1kbDsi1rWo5dNL+sYdrtflLkoEJ.6bJtE4.rXZELQFE20kxYgM3XNIBYL8VL2dMZyN2WM+ioQzS7HhA1nFvFoHWi44JzXAUz1sodt0Sr3HDxvrdp8Okx9eh49TWZe5o9gOT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S05X+LaFLNyNsOU6UR+tM10GehGoAArF2Wkd6D8MnqWDQ93j15KLkbEcxu.G5BwEmLuC0Ti5GbvPexirOIm17y4EhJda8qOX5w6QqF8ONh6AOCYl2Xa1DcrAUbH0c8Oi3AkoRc7GaF+5wITyVmsOymk7LOoY.GR3gzVsHg55dtFzlbN14zTJOo5gDOh3FPZmL6kvM2wgxagNY9B6q86Mla75mXpT2xBvgx2j31cZZ1HeJ4oFqmR98t9N4Oq7cbEJfed+IR+Ql.ldkxxvc4e3i22EuX8cgL5fcBYuwQ8P+B.iYjT.61W9iraVy8EiKaiNS+3Wcf1NuwwI4N74ulJSvZVdBVyJSvZ9rIXMqNAqYsIXMOajqQzwO995h7efP8ckmD0vPcBHYo.5+.JRe6MB
-
@Christoph-Hart Tried compiling as DLL but isn’t working and error pops up, how do I get it compiled to a single node that can be used in scriptnode? Got the chorus fixed but I’m confused on how to use the clone module properly, where do I put the clone cable and I don’t see a “bipolar” option in the drop-down and where am I supposed to connect those cables to, all parameters in the chorus or just the clone child one? Do I put the chorus inside the clone child and create new chain modules to be “voices”? I’m mainly trying to control three parameters that the user will access: Rate - frequency, Depth - mod gains, and Mix - gain knob below all the chorus.
Here’s the updated chorus:
HiseSnippet 2379.3oc2Z07aaibEmTxirsrS2ltIXK5IgEEEN.dEDk8ZG2dvxelXrwNBVd8ldX2zwjij3JJNrjirs5hEnWJPuUzKEXus+Gr8ZO07mPAVz64ZOTz8Xuk9lYHEGJSZKq3uRU.B77l2Lyu48wu2PxotO0jDDP80zm9f9dDM8YQM56xZuQarsq1NapoOExrM0uWf1588vAADKMc87Og2q9zSnI98CqtN1A6ZRhEoocH01j7L6t1rXo0q8I1NNaisHGX2UQ6EqsiI0cCpCsGfj7nJZdXyN3Vj8vb0xgzzKrkkMi52fgYj.M8IVmZ0uQa5ItR8OzNv9HGBuggVCXhjh2l5XwQLWp1FsscrpGsiCzzzQ0i2+4k6+Gf101xdf7X6vOVzQo3QnZOzykDd4S.OCU3UQAdo.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IdQMCwJGeBEsTGaxyHl8fG1FLIPQ3AIdWiFgAeXu2RiPXh1kd+GMtg25HfD+zaiMd5EjinCSG6iQNx5TZmtXwGVZrtv.peaxGJ6bFzmgOlHt6MhBLOTztI0uaomPfm+QZ8y3N37se4+46F06fi2HeGbjeD+C7wtAdz.hg5LOTeUU6aSBqmaR0khhzpzenyidEe6sMr8LT8mQBUluopUG6lXxf1IVOdrlxwd2xEejCoAA1MVOONfWcB54DPDWcAC0AFKtpp3mh8s.+hYhuRc9y65HYLlWGoBWWWGoIFsuh84Cu2AtWBI9n6SGgwF17yZuk6wDGHyTfweBJ75jDIMYp0tTWZz28M1ouOg4a2pEIAkTpan0XLrYmXIOn19DGB+I9TNV4yrcIXewiiOd1BiK8EPHU+0OEIgaINePo2F+1MZX14d2RxOR2sjqb7N92yja3LTfx7cGO8Gf.Z7pkDt6R2996ahqvxMwZzEa5Seoo7l+vILlRHA12thac6znc4sKYncr5SH2EJ67RSynWEQ5io5XLlEFiwr3XLlOdLFyRiwXVdLFyiO2wvq3G9ru73ePP8sDG9TWWdnG4Ez3+QybqNd
-
@Casmat said in ScriptNode - Unison Effect Using Clone Module:
The nodes you want to clone should be in a clone container, you then control parameters within the container using either a clone cable, or clone pack.
In this example I'm cloning 16 oscillators, but the principal is the same for effects.
HiseSnippet 2616.3oc6c17aabbE.enHGIKEIGaGEjdTG5AGXWgcWt7KzCh5CJa4ZIxXp33f1.i0KGJNPK2kc2k1hMn.8+fd18Tu0q8PuVff7ePtTzisGxwTzbn8TQcdy9A2YkHoHoDsWhLqALzNe9l26MueugG1olskNwwwxFkZ4i60gfRsJtdOS2V61RiZhNXOTp0wOTytskIUupiN0vPyEZ8N85n43PZfRkJ8CXsL0xYPdO+6s1QyPyTmDUDB8TKpN4wz1T2nRqU9W.i19ZMHGSay0Z0xGnaYtqkgUWPpRikPczzOU6DxQZrls.FkZwJMnfTT2Uyk3fRkYGqF8p2x5Ul9s+oTG5KLHrWjQ0gAxu38sLZvjXVonca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