Sample Start Offset in Samples?
-
Does anyone know if there's a way to specify the sample start point in samples? (I realize you can normalise the value to a 0-to-1 value, but some precision is probably lost there.)
Also…I'd like to set a different sample offset for each MIDI note number. Any idea how I should do that?
Looks like I want Message.setStartOffset, and I'm guessing that's measured in samples.
Thanks!
-
@clevername27 said in Sample Start Offset in Samples?:
Looks like I want Message.setStartOffset, and I'm guessing that's measured in samples.
Yep
-
-
@d-healey Thank you, Dave.
-
@d-healey I don't suppose I can use negative values (as in before the time-stamp for the Event)?
-
@clevername27 No, if you want a delay you'd need to stop the real event and play an artificial one
-
@d-healey Could you please explain what you mean in more detail? (I know it's late.)
-
Actually I just noticed there is a function called
Message.delayEvent(samples);
which will probably do what you want. -
@d-healey said in Sample Start Offset in Samples?:
Message.delayEvent(samples)
OMG that's amazing!!! It doesn't require me to create artificial notes!!!!!! THANK YOU!