HISE Logo Forum
    • Categories
    • Register
    • Login

    Rename Monolith Files?

    Scheduled Pinned Locked Moved Unsolved Scripting
    13 Posts 4 Posters 212 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.
    • ChazroxC
      Chazrox @Lindon
      last edited by

      @Lindon ah man, I knew it. lol. I think im just gonna resort to deleting the sample map and redo it. Is deleting the .xml and the file in the samples folder a good way to do this?

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

        @Chazrox delete the .ch file then rename your sample map and recompress it

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

        ChazroxC 1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @d.healey
          last edited by Chazrox

          @d-healey delete the .ch file and rename the .xml? Then resave it as monolith or recompile? Im just making sure, I dont wanna mess anything up rn. lol.

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

            @Chazrox said in Rename Monolith Files?:

            Then resave it as monolith

            This.

            @Chazrox said in Rename Monolith Files?:

            or recompile

            And this

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

            ChazroxC 1 Reply Last reply Reply Quote 0
            • ChazroxC
              Chazrox @d.healey
              last edited by Chazrox

              @d-healey after deleting it looks like this. The samples disappeared and it says I have to reconvert it to single files to edit. Do I change the save mode in the xml file? To be clear, I already converted these to monolith files, then decided I need to rename.

              Screenshot 2025-09-11 at 3.25.09 AM.png

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

                @Chazrox yes change the save mode to 0

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

                ChazroxC 1 Reply Last reply Reply Quote 0
                • ChazroxC
                  Chazrox @d.healey
                  last edited by Chazrox

                  @d-healey I didnt know deleting the .ch1 file would delete the samples in the sample map. I just wanted to rename it. Im pretty much redoing from scratch now.

                  deleted my samples in samplemaps for like 5 sample maps.... 😭
                  Screenshot 2025-09-11 at 3.40.12 AM.png

                  Samples gone, still doesnt release it from "Monolith" mode even after changing the save mode...So I just deleted the samplemap and the sample .ch1 files thinking that would just give me a clean slate but now I get errors saying that its looking and cant find the files that I deleted..... 🤒

                  Screenshot 2025-09-11 at 3.46.35 AM.png

                  its still looking for the old one....
                  Screenshot 2025-09-11 at 3.46.57 AM.png

                  P d.healeyD 2 Replies Last reply Reply Quote 0
                  • P
                    paper_lung @Chazrox
                    last edited by paper_lung

                    @Chazrox here's a way I renamed them with code, basically what Lindon suggested above :)

                    // Create a Script Reference for the Sampler Module
                    const var s = Synth.getSampler("Sampler1");
                    
                    // get the list off all SampleMaps that are saved in the SampleMaps project folder
                    const var list = Sampler.getSampleMapList();
                    
                    // A remapping table
                    const var RemappingCollection = [
                        { "nastyOldName": "OldStupidName", "niceNewName": "HappyAsLarry" },
                        { "nastyOldName": "DumbDumbDumb", "niceNewName": "SmartyPants" }
                    ];
                    
                    // Make a display list based on the new mapping
                    const var displayNames = [];
                    
                    for (i = 0; i < list.length; i++)
                    {
                        reg original = list[i];
                        reg friendly = original; // fallback if not found
                    
                        // Check mapping collection
                        for (j = 0; j < RemappingCollection.length; j++)
                        {
                            if (original == RemappingCollection[j].nastyOldName)
                            {
                                friendly = RemappingCollection[j].niceNewName;
                                break;
                            }
                        }
                    
                        displayNames.push(friendly);
                    }
                    
                    

                    I'm then using .set("items", displayNames.join("\n")); attached to a combobox which is getting the sample map list via s.loadSampleMap(component.getItemText());

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

                      @Chazrox said in Rename Monolith Files?:

                      didnt know deleting the .ch1 file would delete the samples in the sample map

                      It doesn't, what did you do?

                      @Chazrox said in Rename Monolith Files?:

                      Samples gone, still doesnt release it from "Monolith" mode even after changing the save mode..

                      Something strange going on.

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

                      ChazroxC 1 Reply Last reply Reply Quote 0
                      • ChazroxC
                        Chazrox @d.healey
                        last edited by

                        @d-healey I didnt completely figure it out what I may have done wrong. I just started those from scratch and left it alone. ha. I'll let you know if I figure out what I did.

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

                        26

                        Online

                        1.9k

                        Users

                        12.5k

                        Topics

                        108.6k

                        Posts