HISE Logo Forum
    • Categories
    • Register
    • Login

    batch editing XML sample maps

    Scheduled Pinned Locked Moved General Questions
    13 Posts 3 Posters 367 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.
    • LindonL
      Lindon @d.healey
      last edited by

      @d-healey well if it was the same for all then it would be trivial - I'd just use Notepad++

      no sadly, each SampleMap has its own layout - and there are round robins in there too, and thus the lowest zone(s) are different from sample map to sample map

      So psudo code I'd need it to:

      • find what the lowest value for LoKey is across all zones
      • for each zone that has a LoKey= this value, then set it to some defined value

      HISE Development for hire.
      www.channelrobot.com

      d.healeyD A 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lindon
        last edited by

        @Lindon In that case I'd use HISE itself.

        There's some info here (read the comments too) https://forum.hise.audio/topic/64/fun-with-regex

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

        LindonL 1 Reply Last reply Reply Quote 0
        • A
          aaronventure @Lindon
          last edited by

          @Lindon if I were you, I'd ask chatgpt to write a shell script for the scenario you described.

          I had a bunch of seemingly random tasks like this that it was able to write a shell for in 1/2/3 attempts.

          1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey well that looks fun but as usual its documented like not at all..
            so i did this:

            const var Sampler1 = Synth.getSampler("Sampler1");
            
            for(sample in Sampler1.createSelection(".*"))
            {
            	Console.print(sample);
            };
            

            and get nothing back...

            HISE Development for hire.
            www.channelrobot.com

            LindonL d.healeyD 2 Replies Last reply Reply Quote 0
            • LindonL
              Lindon @Lindon
              last edited by

              @Lindon oh hold on I have to load each sample map in turn...

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon

                Works here

                97f89711-5c65-4e3d-b646-5ac61b956b20-image.png

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

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

                  @Lindon said in batch editing XML sample maps:

                  @Lindon oh hold on I have to load each sample map in turn...

                  Yes, but you can do that programatically.

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

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @d.healey
                    last edited by

                    @d-healey yep - working here too - thanks that should save some time...

                    HISE Development for hire.
                    www.channelrobot.com

                    LindonL 1 Reply Last reply Reply Quote 0
                    • LindonL
                      Lindon @Lindon
                      last edited by

                      @Lindon now all I need is a way to programatically save the altered samplemap....

                      HISE Development for hire.
                      www.channelrobot.com

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

                        @Lindon ed339c65-a386-4ae3-9200-80a05f0e7b8e-image.png

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

                        LindonL 1 Reply Last reply Reply Quote 1
                        • LindonL
                          Lindon @d.healey
                          last edited by

                          @d-healey wow you just and only just beat me to it... 😊

                          HISE Development for hire.
                          www.channelrobot.com

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

                          11

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.8k

                          Posts