Author Topic: Pitch sample without affecting length/speed?  (Read 884 times)

Offline Grid

  • Shy artist
  • Posts: 8
  • Operating System: Windows 10
Pitch sample without affecting length/speed?
« on: January 24, 2021, 23:34:24 »
Hey! I've tried searching on the forums on and off before and on the internet and I haven't been able to find an answer that helps with my workflow or that tells me a process with good results.
I'm trying to find if there's a way I can pitch up certain samples without altering their speed too badly, e.g. certain kicks or stabs, which in theory should be easier to work for pitching up & down without affecting them too much as opposed to straight up long loops & samples. I haven't been able to find anything that works other than bouncing the samples to another program like a DAW then bouncing them back in, but I'd like to do this purely in OpenMPT. Is there a way around this? Thanks!

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 913
  • Operating System: win7x64
Re: Pitch sample without affecting length/speed?
« Reply #1 on: January 24, 2021, 23:58:09 »
In the sample view,  pitch shift/ time stretching.
^^

Offline Grid

  • Shy artist
  • Posts: 8
  • Operating System: Windows 10
Re: Pitch sample without affecting length/speed?
« Reply #2 on: January 25, 2021, 00:04:09 »
Doing this will usually make it sound echoed/reverbed and rather strange for me. I'm using the .IT format for most of my work and attempting to pitch stuff with that never sounds like the 'original' but pitched, it sounds like an off recording of the original sample.

Offline Rakib

  • Crazy artist
  • ****
  • Posts: 913
  • Operating System: win7x64
Re: Pitch sample without affecting length/speed?
« Reply #3 on: January 25, 2021, 00:07:52 »
Buy autotune and load the samples there? The pitch engine in openmpt is not the best but is usable for many applications.
^^

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,316
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: Pitch sample without affecting length/speed?
« Reply #4 on: January 25, 2021, 08:15:57 »
Please note that it is simply mathematically impossible to build a perfect pitch shifter or time stretcher. There are a few commercial ones that work surprisingly well despite these physical limitations, but it will never be perfect. Autotune may for example work well with vocals but I have doubts it would get the job done for kicks and stabs. You can give Rubberband a try (which is free, but not compatible with OpenMPT's license so we don't use it), but I can tell you that both "classic" ways of implementing pitch shifting and time stretching (namely resynthesizing the frequency spectrum with fast fourier transformation, and temporal overlapping of small snippets of audio, both used by the pitch shifter and time stretcher in OpenMPT respectively) do not handle drums very well. It's just in the nature of time stretching to smear transients.

What may be more helpful in your specific case is editing the samples by hand, e.g. to apply a fadeout to make a kick shorter, or delete small bits of it, or copy&paste bits to make it sound longer. I personally would never use a time stretcher for that.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline peterpiper0815

  • Active artist
  • *
  • Posts: 10
Re: Pitch sample without affecting length/speed?
« Reply #5 on: January 25, 2021, 16:35:50 »
To avoid destroying the original Attack of (for example) a kick you can copy the sample cut away the trasient, pitchshit (I noticed that a high quality and low FFT setting works good for kicks) and copy/paste it back to the end of the original sample. Now cut away the original release part of the sample. Yes, its not a one click solution but it can give good (at least interesting) results.




Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,316
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: Pitch sample without affecting length/speed?
« Reply #6 on: January 25, 2021, 18:35:23 »
And to make this solution even better, you can also apply the Pitch Shift operation to sample selections starting from the next OpenMPT update. :) I completely forgot that I only implemented that option for time stretch, not pitch shift.

Other pitch shifters like Rubberband do something similar and re-sychronize at transients.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.