Page 1 of 1

Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Tue 2017-03-14 15:47
by Henrik
Hello!

Here is a brand new driver, called FTOPITCH.DL3. It connects to stdout, and offers a combined pitch shifter / speed shifter.

WHAT IS A PITCH / SPEED SHIFTER?

Normally, if you increase the playback speed of an audio file, the song will play at a higher tempo, and also at a higher pitch. Equally, if you slow playback down, both tempo and pitch get lower.

In some applications (e.g. karaoke, or language learning machines), it is desirable to be able to change pitch and tempo separately.

A pitch shifter can change playback pitch without changing playback tempo.

A speed shifter can change playback tempo without changing playback pitch.

FTOPITCH.DL3

FTOPITCH.DL3 offers both functions. It has been optimized to give best quality when the audio sample rate is between 32 and 48 kHz. Se the accompanying README.TXT file to see how to change pitch / speed from the C code or from the command line.

PlayDir

A new version or PlayDir is included, which shows how to program the shifter. It has 6 new keys:
  • '+' - Increase pitch by 0.5%.
  • '-' - Decrease pitch by 0.5%.
  • '=' - Reset pitch.
  • 'f' - Make playback Faster by 0.5%.
  • 's' - Make playback Slower by 0.5%.
  • 'b' - Go back to Base speed.
Kind regards,
- Henrik

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Tue 2017-05-23 14:47
by Henrik
The Pitch shifter / Speed shifter as well as the newest PlayDir programs are now an integral part of the VSOS 3.42 Root and Libraries Source Code package, available at the end of this thread:
viewtopic.php?t=680

Kind regards,
- Henrik

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Tue 2021-02-09 3:45
by kenc
Henrik,

Is there any way to make this work on a VS1010D? The comment in main.c for the FtPitch solution says "This driver is specific to VS1005g".

Thank you!

Ken C.

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Tue 2021-02-09 9:31
by Henrik
Hello Ken,

I had a quick look at the source code to remind me if there is anything VS1005-specific, and at least at a quick glance I couldn't find anything. So, at least by this quick look it looks possible to port the project to VS1010. Please ask again in a few days if you don't hear from me before that.

Kind regards,
- Henrik

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Tue 2021-02-09 16:31
by kenc
Thank you very much, Henrik!

Cheers,
Ken C.

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Tue 2021-02-16 19:54
by kenc
Henrik wrote:
Tue 2021-02-09 9:31
Please ask again in a few days if you don't hear from me before that.
Hi Henrik. If you're too busy for this now, maybe you could give me some suggestions on what I need to do to port this to VS1010D? Does the FtOpitch driver need to be ported as well or will it run on the VS1010D as-is?

Thanks!
Ken C

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Wed 2021-02-17 14:55
by Henrik
Hello Ken!

I've got the VS1010 port of the Speed /Pitch shifter working just two minutes ago.

Now I need to clean the code and make an example player that shows how to adjust the settings.

The player will probably be released tomorrow for VS1010. I will write an announcement in the VS1010 forum when it's ready and put a link here.

Kind regards,
- Henrik

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Wed 2021-02-17 15:07
by kenc
Awesome! Thanks, Henrik! :D

Best,
Ken C

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Posted: Thu 2021-02-18 13:24
by Henrik
Hello Ken!

The VS1010d port of the Pitch / Speed Shifter is now available here:
viewtopic.php?f=15&p=14023#p14023

Kind regards,
- Henrik