HISE Logo Forum
    • Categories
    • Register
    • Login

    SampleMaps are not seen and not saved with project.

    Scheduled Pinned Locked Moved General Questions
    23 Posts 2 Posters 886 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.
    • d.healeyD
      d.healey
      last edited by

      I can see two issues with your sample map.

      • It needs to have a .xml file extension - this isn't added automatically by HISE on Linux for some reason.
      • Your samples need to be in your project's Samples folder.

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

      LevitanusL 1 Reply Last reply Reply Quote 1
      • LevitanusL
        Levitanus @d.healey
        last edited by

        @d-healey thank you, I'll try it out in the evening

        1 Reply Last reply Reply Quote 0
        • LevitanusL
          Levitanus
          last edited by

          So I've compiled a debug version of HISE, saved a new samplemap from it with Project_Folder paths. And still makes no sense. After saving a new samplemap, it removes samples from sampler. And throws 2 errors:
          JUCE Assertion failure in ExternalFilePool.cpp:879

          juce::MemoryInputStream* PoolBase::DataProvider::createInputStream(const String& referenceString)
          {
          	if (metadata.isValid())
          	{
          		auto item = metadata.getChildWithProperty("ID", referenceString);
          
          		if (item.isValid())
          		{
          			auto offset = (int64)item.getProperty("ChunkStart");
          			auto end = (int64)item.getProperty("ChunkEnd");
          
          			if (input != nullptr && (input->getTotalLength() > offset + metadataOffset))
          			{
          				input->setPosition(offset + metadataOffset);
          
          				MemoryBlock mb;
          				input->readIntoMemoryBlock(mb, (size_t)(end - offset));
          
          				return new MemoryInputStream(mb, true);
          			}
          		}
          		else
          		{
          			for (auto i : metadata)
          				DBG(i.getProperty("ID").toString());
          		}
          
                  DBG("WARNING: Not found: " + referenceString);
          		return nullptr;
          	}
          	else
          	{
          		jassertfalse;
          		return nullptr;
          	}
          }
          

          JUCE Assertion failure in ModulatorSamplerData.cpp:983

          void SampleMap::load(const PoolReference& reference)
          {
          	LockHelpers::freeToGo(sampler->getMainController());
          
          	ScopedValueSetter<bool> iterationAborter(sampler->getIterationFlag(), true);
          	SimpleReadWriteLock::ScopedWriteLock sl(sampler->getIteratorLock());
          	clear(dontSendNotification);
          
          	currentPool = getSampler()->getMainController()->getCurrentSampleMapPool();
          
          	
          
          	if (!FullInstrumentExpansion::isEnabled(getSampler()->getMainController()))
          	{
          		if (auto expansion = getSampler()->getMainController()->getExpansionHandler().getExpansionForWildcardReference(reference.getReferenceString()))
          		{
          			currentPool = &expansion->pool->getSampleMapPool();
          		}
          
          		sampleMapData = currentPool->loadFromReference(reference, PoolHelpers::LoadAndCacheWeak);
          	}
          	else
          	{
          		// Remove the "{PROJECT_FOLDER}" wildcard or it won't find it in the pool...
          		auto ref = PoolReference(getSampler()->getMainController(), 
          							reference.getReferenceString().fromLastOccurrenceOf("{PROJECT_FOLDER}", false, false),
          							FileHandlerBase::SampleMaps);
          
          		sampleMapData = currentPool->loadFromReference(ref, PoolHelpers::LoadAndCacheWeak);
          	}
          
          	currentPool->addListener(this);
          
          	if (sampleMapData)
          	{
          		auto v = sampleMapData.getData()->createCopy();
          
          		parseValueTree(v);
          		changeWatcher = new ChangeWatcher(data);
          	}
          	else
          		jassertfalse;
          
          	sendSampleMapChangeMessage();
          
          }
          
          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Levitanus
            last edited by

            @Levitanus did you compile with gcc14?

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

            LevitanusL 1 Reply Last reply Reply Quote 0
            • LevitanusL
              Levitanus @d.healey
              last edited by

              @d-healey yes, with gcc14 with 01 optimizations. I ran the 11th installation again this morning before going out to work, but in an hour it was not yet installed. Hope, that it succeed wile I'm out)

              1 Reply Last reply Reply Quote 0
              • LevitanusL
                Levitanus
                last edited by Levitanus

                How is about clang? Makes it sense trying to build it with clang (LLWM)? And general possibility? I found no signs of compiler in make file, but I'm very unfamiliar with make…

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

                  I've only worked with GCC on Linux so not sure about setting up clang. Gcc14 could be the cause of your issue.

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

                  1 Reply Last reply Reply Quote 1
                  • LevitanusL
                    Levitanus
                    last edited by

                    Finally, i succeeded to install gcc11, and the result is the same…

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

                      @Levitanus said in SampleMaps are not seen and not saved with project.:

                      the result is the same…

                      Can you make a minimal project that has the issue and send it to me?

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

                      1 Reply Last reply Reply Quote 0
                      • LevitanusL
                        Levitanus
                        last edited by

                        I also feel, that with the last added sampler, it started to behave very strange. For example, it didn't receive MIDI-signals. But in 1–2 attempts, the samplers started to work normal. Before I started to convert samplemaps.

                        1 Reply Last reply Reply Quote 0
                        • LevitanusL
                          Levitanus
                          last edited by

                          @d-healey said in SampleMaps are not seen and not saved with project.:

                          Can you make a minimal project that has the issue and send it to me?

                          I would say, it's any project in my case…
                          test.zip

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

                            @Levitanus When I load your project I see the sample map available in the dropdown. Also I recommend saving your project as an xml rather than a .hip if you're not already.

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

                            LevitanusL 1 Reply Last reply Reply Quote 0
                            • LevitanusL
                              Levitanus @d.healey
                              last edited by

                              @d-healey Yes, that's the issue, I don't…
                              I've just tried with your last development commit, and still does not work, also tried to clear all possible hise resources in home folder.

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

                                @Levitanus Must be something specific to your OS. Do you have a virtual machine where you can try a different distro?

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

                                1 Reply Last reply Reply Quote 0
                                • LevitanusL
                                  Levitanus
                                  last edited by

                                  So, the reason was, that I selected expansion type as full. I'm not sure, what expansions are in general, but it blocked any samplemaps from working.

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

                                    @Levitanus Ah that makes sense. Expansions are a system for adding additional content (sample maps, samples, presets) to a plugin.

                                    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

                                    24

                                    Online

                                    1.8k

                                    Users

                                    12.1k

                                    Topics

                                    105.4k

                                    Posts