SNEX error
-
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.4nDYzIc4eC67YEoVUXcThvn9TgfkjcURdt1kFUZ85cJ6Iy0bww6P0J9YPV3t4C5BkoiXa3zNfl+LXNj88l36XbQWnui4k+M7iiYK7ceGyVELqj9sKSepTchoRn6YO+qiX+GFXgvCUr3bnl2ALUFFe5e8flMf+4s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FKK.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
-
@bfaudio I’ll check the snippet when I’m at the comp…
In the waiting, I can say that SNEX is in general very sensitive to errors, and at the same doesn’t throw much information in the console. So my advice is to add one line at a time and compile, so you’ll see where it breaks -
@bfaudio Alright so I have just checked your snippet
The problem you see occurs because the filename has to be strictly the same as the node name, in your casesampleandramp
.
So just create a new file with that name, open it, paste the code, compile, enjoy :) -
@ustk amazing thank you!