SampleMap format question...
-
So whats
Duplicate ="1"
in the sample map doing?
I ask because I have some round robins to do for a client. He's used the old Kontakt trick of RR groups that use the same samples but offset up one semi-tone(and tuned down) and down 1 semi tone(and tuned up).
So its 3 different rr groups - but they are all actually using the same wav files - so I'm hoping that Duplicate = "n" is a way to tell HISE to only copy the wav data into the Ch1 file once.
-
Some guy called Lindon asked about this:
https://forum.hise.audio/topic/2583/hlac-compression-for-ch1-files-not-working-out-so-well/2 -
@d-healey said in SampleMap format question...:
Some guy called Lindon asked about this:
https://forum.hise.audio/topic/2583/hlac-compression-for-ch1-files-not-working-out-so-well/2Yeah but that guy never got a real answer to the question I'm asking:
If theres only 1 of a wav file used in a sample map what should Duplicates = ?
If theres two places the same wav file is used , what should Duplicates = ?
If theres three places what should duplicates = ?
-- can you tell I'm writing sample maps in python now?
-
I think it's a boolean value. I also just noticed this function
-
@d-healey said in SampleMap format question...:
I also just noticed this function
Nice, I forgot about this function. I think a guy named Dave suggested it back then. Just call it and don't bother about the duplicate flag, it'll then get ignored AFAIK.
-
@Christoph-Hart said in SampleMap format question...:
@d-healey said in SampleMap format question...:
I also just noticed this function
Nice, I forgot about this function. I think a guy named Dave suggested it back then. Just call it and don't bother about the duplicate flag, it'll then get ignored AFAIK.
yeah -but... Im really looking at how the ch1 file gets built for a RR SampleMap where there is actually only on set of samples - they've just been moved and retuned by the map itself...I wan to build the ch1 files with ONLY one copy of the wav files in it.... so if I set Duplicates to what? to make this happen??
-
My best guess is that if you set the second (and third) occurence of this sample to
1
before export it will write the wave file just once (you can verify this by checking the file size of the exported ch1), then when you load the map call setAllowDuplicateSamples() and it will create distinct samples from the CH1. -
@Christoph-Hart Ok thanks.