Samplemap and Number of Samples, strange errors
-
I have a strange problem with the Sample Map management but I can't figure out what's going on.
My project is based on this:
https://github.com/christophhart/hise_tutorial/tree/master/CustomSampleImportSome Samples from some Samplemaps I can manage them well, no problem: I see the playhead, I see and edit EditLoop and EditRange correctly. Like This:
With other Samples from other Samplemaps this doesn't happen and the only difference is the velocity structure and the number of samples.
So should I assume that if I have multiple samples per samplemap I can't allow the user to edit them, while if I only have one the user can edit ranges and loops?
-
What I Think Might Be Missing:
- I suspect I need a way to explicitly select which sample in the map I'm working with.
- The
sound
variable needs to be dynamically updated based on the sample selected for editing, but Iām not sure how to implement that effectively.
reference: https://github.com/christophhart/hise_tutorial/tree/master/CustomSampleImport
-
@Mighty23 said in Samplemap and Number of Samples, strange errors:
I suspect I need a way to explicitly select which sample in the map I'm working with.
Yes, Christoph's project just works with a single sample so you will need to change it.
Looks like it's this line - https://github.com/christophhart/hise_tutorial/blob/master/CustomSampleImport/Scripts/SampleLoadSave.js#L81C2-L81C44
So you need to create the desired selection and from that selection pick out the sample you want to work with.
-
@d-healey said in Samplemap and Number of Samples, strange errors:
So you need to create the desired selection and from that selection pick out the sample you want to work with.
This is bad news but at least I know where it comes from, thank you very much for the clarification.