HISE Logo Forum
    • Categories
    • Register
    • Login

    Samplemaps for future usage

    Scheduled Pinned Locked Moved General Questions
    53 Posts 3 Posters 2.6k 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.
    • C
      coreyu21 @d.healey
      last edited by

      @d-healey interesting. I’ll have a look when I get home. Is this possible fix on the most current build? I believe I’m using a late January build

      1 Reply Last reply Reply Quote 0
      • A
        arminh
        last edited by

        I think expansion system is still bugged.
        Now i see presets created in expansion packs but i have much crazier issue. I have 2 samples and everything is ok but when i change them few times samples starting sounds strange. Maybe something is wrong with code?

        Content.makeFrontInterface(600, 500);
        
        const var expansions = Engine.getExpansionList(); 
        const var expansionNames = []; 
        var sampleMaps;
        
        const var Sampler = Synth.getSampler("Sampler");
         
        
        for (e in expansions){
            var p = e.getProperties();
            expansionNames.push(p.Name);
        }
        
        
        //cmbExpansions
        const var cmbExpansions = Content.getComponent("cmbExpansions");
        cmbExpansions.set("items", expansionNames.join("\n"));
        
        inline function oncmbExpansionsControl(component, value)
        {
            Engine.setCurrentExpansion(component.getItemText());
            sampleMaps = expansions[value-1].getSampleMapList();
            cmbSampleMap.set("items", "");
        	cmbSampleMap.set("items", sampleMaps.join("\n"));
        };
        
        Content.getComponent("cmbExpansions").setControlCallback(oncmbExpansionsControl);
        
        //cmbSampleMap
        const var cmbSampleMap = Content.getComponent("cmbSampleMap");
        
        
        inline function oncmbSampleMapControl(component, value)
        {
        	Sampler.loadSampleMap(sampleMaps[value-1] + ".xml");
        	//Console.print();
        };
        
        Content.getComponent("cmbSampleMap").setControlCallback(oncmbSampleMapControl);
        
        1 Reply Last reply Reply Quote 0
        • A
          arminh
          last edited by

          Tommorow i'll record video because it's really strange

          1 Reply Last reply Reply Quote 0
          • A
            arminh
            last edited by

            Here's video https://streamable.com/dbejyy

            Now i have problems with samples. When i load first sample map everything sounds good but when i change it to next in the same category samples starting to sound strange. They are pitched down and there's only 4 samples. I have to change the extension and then I can go back and choose a different sound and then it will play normally (but not always, sometimes i must do this few times).

            1 Reply Last reply Reply Quote 0
            • A
              arminh
              last edited by

              @d-healey you could check if my code is written correctly? Because i dont have any other idea what's wrong...

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

                I can't see anything wrong with your code. Are you samples monoliths or wavs? Where are the sample maps located, and where are the samples located?

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

                A 1 Reply Last reply Reply Quote 0
                • A
                  arminh @d.healey
                  last edited by

                  @d-healey i creating monoliths like you said in empty project and then copies them to expansion folder.
                  Samplemaps => Expansions => Expansion Names => Samplemaps
                  Samples => Expansions => Expansion Names => Samples

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

                    @arminh Still a mystery then :(

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

                    1 Reply Last reply Reply Quote 0
                    • C
                      coreyu21 @arminh
                      last edited by

                      @arminh instead of manually moving the sample monoliths into the expansion folder. Have them created in the expansion folder so the link is correct. I believe if you move the samples from main folder to expansion folder, it gets buggy. Make sure to refresh your expansion afterwards

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        arminh @coreyu21
                        last edited by

                        @coreyu21 that's how my samples looks when i creating samplemaps and monoliths in expansions tab
                        alt text

                        1 Reply Last reply Reply Quote 0
                        • A
                          arminh
                          last edited by

                          Ok, i put my wavs to samples folder in expansion and i can create ch1 but when i open expansion in hise and locate folder with all samples i get information that ch1 files are not found. I must keep them in expansions folder. Is there option to store expansion samples wherever i want?

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

                            @arminh Same as you do for non-expansions, use a Link text file.

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

                            1 Reply Last reply Reply Quote 0
                            • A
                              arminh
                              last edited by

                              Ok now everything works like a charm! But i have the same issue which @coreyu21 have. After reloading project i can't hear any sounds from plugin because DAW didn't save plugin state.

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                coreyu21 @arminh
                                last edited by

                                @arminh gonna have to wait and see what @Christoph-Hart has planned. The new scriptnode build has new expansion features. But I’m not sure if they’re completely functional, as I’ve been trying to figure out the correct way to use it the last few days. Looks very promising🙂

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  arminh @coreyu21
                                  last edited by

                                  @coreyu21 i tried latest scriptnode but i can't even create expansion because hise is immediately closed

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

                                    @arminh Expansions be broken in the latest build :(

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

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      arminh @d.healey
                                      last edited by

                                      @d-healey this is the only feature which i really need :(

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

                                        @arminh Me too

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

                                        C 1 Reply Last reply Reply Quote 0
                                        • C
                                          coreyu21 @d.healey
                                          last edited by

                                          yea not workin correctly yet..Unless we all want to tackle the c++ side of things, we will have to be patient🙂

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

                                          32

                                          Online

                                          1.7k

                                          Users

                                          11.7k

                                          Topics

                                          101.9k

                                          Posts