Pitch Shifter and Speed Shifter for VS1005 / VSOS

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
User avatar
Henrik
VLSI Staff
Posts: 1294
Joined: Tue 2010-06-22 14:10

Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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
Attachments
FtPitch100.zip
Pitch / Speed shifter library. Install the .DL3 file to your SYS/ folder, then read the README.TXT file.
(45.18 KiB) Downloaded 465 times
PlayDir102.zip
Command-line example on how to use the Pitch / Speed shifter in a playback program.
(20.69 KiB) Downloaded 449 times
Good signatures never die. They just fade away.
User avatar
Henrik
VLSI Staff
Posts: 1294
Joined: Tue 2010-06-22 14:10

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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
Good signatures never die. They just fade away.
kenc
User
Posts: 11
Joined: Tue 2021-02-09 3:41
Location: Ontario, Canada

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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.
User avatar
Henrik
VLSI Staff
Posts: 1294
Joined: Tue 2010-06-22 14:10

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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
Good signatures never die. They just fade away.
kenc
User
Posts: 11
Joined: Tue 2021-02-09 3:41
Location: Ontario, Canada

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post by kenc »

Thank you very much, Henrik!

Cheers,
Ken C.
kenc
User
Posts: 11
Joined: Tue 2021-02-09 3:41
Location: Ontario, Canada

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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
User avatar
Henrik
VLSI Staff
Posts: 1294
Joined: Tue 2010-06-22 14:10

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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
Good signatures never die. They just fade away.
kenc
User
Posts: 11
Joined: Tue 2021-02-09 3:41
Location: Ontario, Canada

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post by kenc »

Awesome! Thanks, Henrik! :D

Best,
Ken C
User avatar
Henrik
VLSI Staff
Posts: 1294
Joined: Tue 2010-06-22 14:10

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post 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
Good signatures never die. They just fade away.
jtlechem
User
Posts: 16
Joined: Tue 2022-05-10 23:54

Re: Pitch Shifter and Speed Shifter for VS1005 / VSOS

Post by jtlechem »

Would this work on a vs1053? Trying to figure out how to do speed/tempo shift without changing pitch. Ideally on a standalone system without a computer or keyboard - just a soundboard, microcontroller, and some buttons or a knob.
Post Reply