Sample Start
-
@d-healey @Lindon Got it working after re-enabling the enable button! I'm starting to rethink this sample start thing, how would I make it so I have a knob on my ui, which controls the sample start, but based on percentages of the sample time?
For example:
SCENARIO 1:
knob value: 0%
sample 1 length after mod: 1 second length
sample 2 length after mod: 2 seconds lengthSCENARIO 2:
knob value: 50%
sample 1 length after mod: 0.5 Second
sample 2 length after mod: 1 second -
@Casmat said in Sample Start:
@d-healey @Lindon Got it working after re-enabling the enable button! I'm starting to rethink this sample start thing, how would I make it so I have a knob on my ui, which controls the sample start, but based on percentages of the sample time?
For example:
SCENARIO 1:
knob value: 0%
sample 1 length after mod: 1 second length
sample 2 length after mod: 2 seconds lengthSCENARIO 2:
knob value: 50%
sample 1 length after mod: 0.5 Second
sample 2 length after mod: 1 secondConnect your UI knob to your Offset constant modulator
-
@Lindon connected with processer id, put parameter as intensity, and mode as linear. have put my min as 0 and max as 50000 with middle as 25000. However, when the knob is at 0, the samples don't play at the start, i feel like turning the knob does something as the sound slightly changes, but it doesn't feel right. just to reinforce and make sure, by percentage and what I hope to happen is that when the knob is at zero, I want it to be at the very start of the sample, the normal playback, and when the knob is turned all the way up to the max, the start is at the very end of the sample. The middle on the knob represents the middle sample start point of all samples regardless of their sample length, hence the percentages.
-
@Casmat look at the modulator you are using for sample start - it's values are 0 to 1. this is a percentage of the length of the sample - so attach this to a percentage knob in your UI and it should set the start point accordingly, where 1 = start and 0 = end of your offset range
-
@Lindon ahh, yup, makes sense, the values seem flipped such that 100% is 0% and reverse, way to flip without code in parameter settings?
-
@Casmat said in Sample Start:
@Lindon ahh, yup, makes sense, the values seem flipped such that 100% is 0% and reverse, way to flip without code in parameter settings?
-write the code
-
@Lindon darn! Thanks!
-
@Casmat really..?
theSamplerOffsetModulator.setIntensity(1-value);
-
@Lindon as a way to prove my thanks, here's a hise doubloon:
-
I feel another t-shirt coming on...
-
-
-