Solved.
Simply copied 'setKeyColour();' out of the 'inline function' keyboard part of the script and put it on its own line.
Solved.
Simply copied 'setKeyColour();' out of the 'inline function' keyboard part of the script and put it on its own line.
@oskarsh said in Help with assigning knobs...:
@d-healey DavidGPT trained on all the forum knowledge
Hi All,
Im trying to learn about using SNEX in Scriptnode, copying and pasting examples found on here like the saturation, sample reduce etc.
I keep getting the same error when I try and compile:
"snex_node - Line 88(20):Parsing error: Expected: TypeActual: $identifier"
Sample snippet:
HiseSnippet 2493.3oc2Y0saajaEdFaOIQZSw9SSA5kbCJRFW3HKk0aZ.Rri+UMFM1QqkW2.Tr0fdFJKVOhbVNbjs1E498An20Gihd+9HTf9hzmf1dNjbzLR1Iwwc2zr0I1Zly4Pxy467GIE6LMSDyhOLSvSSYZOO+Y6njQrrLoxyu19iRYd92Ln6Hgt+F8obg21a54+IAciT7TcuyN7nbdRLS4s9nTZVFK1y2e1eKJmes47L+7Oex5zDpHhURxy6.IOh8L9.ttjZmU+c7jj1zX197AUjdoU2NRJ1PlHyAcZ1fldoznSnGy1khhMSfm+01JlqkptZplk44O25x3Qc6KOUXk+.dF+nDF9RKutvDYI2VBpdrkp2F8ACYrsmAHQPEjXVKRbqfc3w7wzKQjOxvfTNhp3g+LSpdyNg50pp50rh5cApjeEUZNqJ8wNeQIGTe9ffsEZlpGEf8pphUVO+uOXCIHfP2X.8DVaE7x3AD9flMWf.+Y9G0KWDo4RAQJ1UpYOWDNe8usds5urNYZV85cg7vkQISRXpKjM5oUutAFJxGbDSs.YHMImMVPv7mDSCd0XZUWdj0pqHnTrsfqedJS7pBD7bPE7zWt8lTMEcDNZfboLklipf+lrgPTs0sTKXSV1IZYJDWeNeFDsHiySn5ICgv7FGC.ClvugNGQFWOpZd0OXwUWVU7iC5v0Q8uXcblKPGAj5GCczkM9yB1pWOVjtTAmKn8K9QJ0alyiQ0codvZhK9McuRZ+hVWXR22ETFfmpXoTEaeYmD5nvL5fzD1dfNt.4nDYzIc4eC67YEoVUXcThvn9T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ND17e6KcRAgbaclMNwrtPSsLMoJIv7V.ikfeiYmYF4zgAcb.DLYiu73PWWfgNfA7hcHKuLo47D.irW5NIrEbf4GrDDgq6CgorTvy7MLqmFGTMq5Xvod1grLA1tX+FJp3XV3vEvFKK.SQilFDCgLSBqK1G7AtxLSk.gKVFwT22zUvd3drzkIkC9u9TITzRvPnlpFQh4C432cRlaHGA0ugh6Gi0.kFOMNul1vv7Z5.iRNQWvPmQrXkVmyWsan0.d6p++10..iPdY8W9n5ddmaKO290ukmyFjLdSO9OL3wOAHPFZ+FkV91fi31DlHRFCA4Ke6ub+126g29IqTu9iK+BEVbEXY+OvguUI5
The line number changes depending on what I'm trying to compile but the same error.
Can anyone with more experience show what I'm doing wrong?
Thanks,
Chris
Hi All,
A question about using oversampling.
If I wanted to use oversampling in scriptnode, do I need to create a switch with multiple oversampling nodes in each option to give the user choice, then put the processor inside those nodes, thereby potentially quadrupling the processing?
I made a quick snippet to illustrate this:
HiseSnippet 1478.3oc6Y0saaaCFkxNzM1sq+.DfscmuLEnvv+0t.rKZZbh2L1RhQUVPuyfVhNlvRjBRzI1qX2uWg81rGo9Fz8QQYYIam3elqAJPSAZLI+H046vy4iNTzQRJ2lZ2Ify77nRDxHaaegEMHP3iLxe0XOJx3IXywbY+F8ILNp0oHimhOmDHo9E0ccxXORP.0FYXj8WTcXjeOT3Oe5smPbHbK5ztPnqELK5uybYxo8193ei43zjXSuh4lH55G2xRvaHbDCA7jEWF4QrFPtgdAQEVFLxH2Y1Lov2TRjz.HlSD1iM6Ktiqi+ZV.qqCU0nBxDVHc2nF8YN1w4Z.j46kHyypy7CvmyrYw8OkAdd3.EmNijbfQlGBRUVCHYj.R6ogzKvlV9LO4zQT34w3VbXCoGAn5jPQGKx3ewMDP.bYIWx.ZSenQ7DN7MkK+phv+8xet2PtkjI3EE7KDR5k7CeYgOVHeg+pPwYGpWuENl5w3Kbbn9KbX0tq+CMwC4Cc6R8eUwaINCowABoeZNM2pwoV5rNQfBdKNSdo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tpJqkULdRek3E2W6gp7My3NyLVa6aFqsllwiVIy3QKyLdzN2LVcSLiU+JyLV8alwclYr912LVeELiOKgKpxalwM9iKzMpBaQWCP5H1w9wZaher1WY9wZeyO9kyOduMRQB3UiD1+34IAfXtWRH9lVVsKTHw8Ck5VElvknMwckh.NQHF3RBuAyM6cIrKtuUWhkunSzsooxz8C6A7s7P0dd74p1Eqftc1sLWlMqikU5kZtIVcSmXsMch02zI95MchuYSm3OsoS7nkOQ06qL51nTJevh09rPQngwYbRWmnqnh51kZaSs0u2BkVMtGNcTSliV+2iodEAYT+RijGqq+WxNvaxKcSW89+.P7AEII
Or is there a better way?
Chris
@HISEnberg ahhh right thanks, I’ll try it when I get home. Very much still learning :)
@HISEnberg Sorry took a minute to get back to this, snippet below:
HiseSnippet 2321.3oc6as0TiajEVBn49LaRkjJuxijJSboa9VsOjfAbFGvfwlPAOQIK01VfjZORx.dRkZec+Ys+j1+A61s5VVR1RXaYyLY1Empx3VceZc5y478cNc6lFNHMnqKxgieqKG1GxwuKn0PaudG1S0vlq1Qb7uETW00C5rG8QUF1W00Epywyu5uRd.+Vqw4+4e+yUTMUs0fgOhi6JjgF7TCKCuvm13WNwvzrppN7RCqHiV4WpogrODYhFf0mUABb8U0tWsK7LUxvVAvwu9w5FdHmVdpdPW7XpfzG1pG5Qa53uxv0nsIjzPjqEdhnOl6vdFl5MBVqtbb7q0HbkuJck+sf5F5FiddnE3q76XuPIhZC3W44TIw4Pk3inRqQUouFzRywnuWXOD8YGPMarCoiJ1TGUUniki+eANDgGfsWNK06gUcvMFIv9EDDd2d3+2O726LvVyy.YuGx9LjG7b68+gs+is2Z6+b68FuqNcRrOxqwAYZBcRrah2044Dbe6AVsgNuauGTMG.GMP7xOtMc8YylpQW0QFHxtlsg248gr1UQl5DaE46S5A3XlM7298ZGo5oRbJrmgGWenimAQc3OB9.Npl5h1BbDz8dOTebb8D9ObjCRefopW7vIBtg0A1dDyGRbT1tFdCihqliXLgmMFaVUwuFzvvSq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Bx3ATtL4H4EDYGl8Hp.t3mON2mdixtflPWn2TqSMVzZBE08ZzxqQKyPUBIj9W90z+YnVwzarfkgF+mvi5mXWfx49h7Eq2Y6VFF49iF6dgD3.3FW61gdecI2sFtkyEhI9TLapc7aLTLMezcqIStlJHz8Vp9W45r8mMwm3qVNocpWs7fNCuZ4VpZNnaY2qXhYYS+mfA11rpBqSZisdOv7ii9ShvxP23VMs3S0DBJkUAkypfJYUv7YUvBYUvhYUvRSWPxeTWrepdBTgiqdii8Ce44O1VssI62u++BPyRVmE
I've created (attempted) a splitter that splits the signal between stereo, Freq split, MS and dual mono.
This is the last thing that has issues, and although I can export the whole plugin with this in it as a script fx, it crashes every daw I've got, which im assuming is linked to the error I get when trying to export as dll.
Chris
sorry to awaken this but now I keep getting this error when trying to export dll's:
"hi_dsp_library/node_api/nodes/Container_Chain.h:97:15: non-const lvalue reference to type 'ProcessData<NumChannels aka 0>' cannot bind to a value of unrelated type 'ProcessData<1>'
obj.process(d);"
Can anyone point me in the right direction for this?
Thanks,
Chris
@HISEnberg That seems to have fixed it! right, I know for future don't rename things inside script node templates.
@HISEnberg Yeah I renamed containers so I could more clearly see what's happening.
Ill try remove/add and see.
Thanks!
Chris
@orange @HISEnberg Thanks for input, unfortunately the error doesn't seem to be related to any of those tips.
The list of errors seems to pertain to the DspNetworks/Binaries/Source/ folder for each network.
example errors are:
"DspNetworks/Binaries/Source/Tone_v1.h:128:8: expected unqualified-id
using = parameter::empty;"
"DspNetworks/Binaries/Source/Tone_v1.h:137:59: no member named 'Tone_v1_t_plist' in namespace 'Tone_v1_impl::Tone_v1_t_parameters'
using Tone_v1_t_ = container::chain<Tone_v1_t_parameters::Tone_v1_t_plist<NV>, "
and on and on.
Still only happening with networks with switches.
Chris.