HISE Logo Forum
    • Categories
    • Register
    • Login

    Space char in Faust parameter names corrupts the XML

    Scheduled Pinned Locked Moved Bug Reports
    6 Posts 2 Posters 201 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MorphoiceM
      Morphoice
      last edited by

      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

      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

      1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey
        last edited by d.healey

        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.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        MorphoiceM 1 Reply Last reply Reply Quote 0
        • MorphoiceM
          Morphoice @d.healey
          last edited by

          @d-healey same problem with / character which appears a lot in Dry/Wet or L/R sliders

          https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Morphoice
            last edited by

            @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.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            MorphoiceM 1 Reply Last reply Reply Quote 1
            • MorphoiceM
              Morphoice @d.healey
              last edited by

              @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);
              

              https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Morphoice
                last edited by

                @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

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                32

                Online

                1.8k

                Users

                12.0k

                Topics

                104.5k

                Posts