SampleMaps are not seen and not saved with project.
-
I find sometimes after saving sample maps and converting them to monoliths I need to restart HISE.
-
@d-healey that was my first thought, but after several tries, it exports and saves just one sample map
-
Tried a couple of more commits from main repository, and now even, when I save sample map from HISE ‒ all samples are being removed from sampler…
-
@Levitanus can you send me one of your sample maps?
-
@d-healey ClarinetBb TrillsLong.zip
I feel, like the samplemap itself is OK. Looks like I still have some problems or with dependences, or with compilation.It was hard to install gcc11, as its AUR package goes to endless unit-tests, and, during an hour, they were not finished. And, since compiling with gcc14 with 01 optimizations made dialogs to appear again, I found this question closed)
-
@Levitanus are you using gcc14?
-
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.
-
@d-healey thank you, I'll try it out in the evening
-
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(); }
-
@Levitanus did you compile with gcc14?
-
@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)
-
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…
-
I've only worked with GCC on Linux so not sure about setting up clang. Gcc14 could be the cause of your issue.
-
Finally, i succeeded to install gcc11, and the result is the same…
-
@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?
-
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.
-
@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 -
@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.
-
@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. -
@Levitanus Must be something specific to your OS. Do you have a virtual machine where you can try a different distro?