Scriptnode Synth - How to Play a Tempo Sync Sample?
-
Hi ,
I'm trying to implement timestretch for audio samples in HISE. Specifically, I want to achieve:
The sample maintains its original duration regardless of the played note (decoupling pitch from playback speed)
Playback speed automatically syncs with the DAW/HISE tempo.. but, in this implementation:
Higher notes speed up and pitch up the sample
Lower notes slow down and pitch down the sampleHiseSnippet 1720.3oc4X8zaaTDEeWmLN0og9OUjfa9.GRgRjcSRSKbH1wIgFQcpU1zHNXIqI6NNdjWOiYmYShaER8.RvANBH0SkuFbqRbhaHwMNAeC52.3M6rN6t1Nt1tIoUBWoFOu2Ly626+uwU731Dgf6YXN6tcZSLLmCY0gIaTpAlxL1ZcCyqfJiERhWVMo05zFKDDGCSyo9BEAyLSaD74UqtF1EyrIQjLL1iSsIOj1hJinVovWRcc2D6P1k1J1tWpvV1bVItK2GvyTnbFsw1MwGP1Fq1VJjwCvhFFleL59KubdrS8Upmew72eem51jEWI2cWZk6fW9d0quRt7KsnyJ0WB.Y5MbnRtmkDKIB3RWi6zwpA+HlV.6QEz8cIpE4Mr.IqIaTpA00oRWiivvvDUIxTMk1TcSTYpC8D5QlrqEvHazIhazLSMLHkeLfjYLHMsFRWGYY6QaKi3nvykQaw.OXcL3ahCE8dMLeIpDG1.StPKbSxldvhSNv72MWtamE9ua8408Y1RJmkky1lKIOhM+sl8oylY1uY1r8xpd8AxSIFOtqKwafrUgCdC6fyy7asOw61YOD65SNYif5mzlldzro1ZsN1F4rsXT4iZSBWuI20QYqTeueOfQnYC91i2ZcrDqbJgzf80l3IoJ3XtN4PHMP6hxfVmHZJ4sgDg97ePjC2w2EKSFNoRzBY.1iD9PkihInxNwSDGiXrbCMFaTg30QUnR6FCFioF.FAK04AFCyLeOzF0qSrkQ.bZzle0jlFN5hOSWwqyrBpjFH9OLjBi6PxFPlHnBhW9gTO8OF05osG45ocS3uMZbRt5oF5ziVxUxX1X6e.UxR+Vn35YSf+awbyD0+yzEiVzVscIavNj3BEfBv3MfJN0w9txtTSF0Uly3savYT63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ZQOYCtufTqnM7GXlIQsOsVDaWNuMbHJlwqo+dwGTrVIqZ2e4ZZphlXVSQ.yZ6iU+xphZEasvQ3CMh72ZiPjuFY9iO+85o8vzienpQgwKT4JnJfCZevDDe3i2AhVe0pIiVGtoXoB8giBunv3U23pnc3boZFQe3wJ8V29YOsvDXK5ycT3edx2NzJGQynNpFDgQOi2sFm2rEN3keS1uA9Ew6Tags830BmqVEreo.JPo.VP4iLnxp0YyabXulY0r10rsSdU8cv6LoGbwI8fKMoGb4I8f2cRO3JS5Au2q+fpeJ3vPU0z1PZQkMz0jM2fg22U2jv3+.SQbtLC
-
You'll need a timestretcher.
These are generally either done using phase vocoding or granular.It's a trick. Samples naturally are repitched by changing speed. To do otherwise requires a dsp that will create this effect.