Space char in Faust parameter names corrupts the XML
-
Ahoi @Christoph-Hart
It seems a reproducable problem that having a space character in faust parameters (sliders) and compiling it to a hardcodedFX corrupts the XML as attributes in xml cannot have spaces... it may be a good idea to disallow spaces in parameter names at all or replace them by an underscore or at least display a warning message... took me a few days to figure it out and I'm still making the same mistake with every new project ;)I bet this problem will come up more often, the more people start using faust, as the faust GUI capabilities are quite elaborate and need some work to play nicely with HISE
-
As a general rule in programming, never use spaces for names unless it's for display purposes. But it would be nice if HISE gave a warning that you were doing something that is going to cause the xml to be invalid.
-
@d-healey same problem with / character which appears a lot in Dry/Wet or L/R sliders
-
@Morphoice Special characters often behave in unexpected ways in programming. Stick to letters, numbers, and underscores for anything that isn't for display and you should be fine.
-
@d-healey true. you just never think about it with faust as the mere GUI labels are turned into the actual parameter names... also faust has pathnames as labels to represent certain groups which make them incompatible with HISE so far
e.g.
freq = vslider("h:Oscillator/freq",440,50,1000,0.1);
-
@Morphoice said in Space char in Faust parameter names corrupts the XML:
the mere GUI labels are turned into the actual parameter names
Ah ok, I wasn't aware of that, I haven't used Faust much