Skip to content

Player version 2.0.2 plays audio at wrong speed when WAV sample rate does not match VCV sample rate #52

Description

@cosinekitty

I noticed this while playing a 44.1 kHz recording of my voice through the Player module. My voice sounded artificially high-pitched. Then I noticed in the menu [VCV Rack / Engine / Sample rate] that my rendering sample rate was set to 48 kHz. When I changed that sample rate to 44.1 kHz to match the WAV file's sampling rate, my voice sounds correct.

It makes sense that Player is reading samples from the file and sending them to its LEFT/RIGHT output ports. When the sample rate doesn't match, the audio sounds wrong. It would be nice to resample to the target sampling rate.

I know this is not a trivial request, but as a fellow developer, I'm willing to jump in and help with the resampling changes, should you choose to do this. There are some dsp helper functions in the VCV Rack SDK that should make this mostly painless.

I will be happy to submit a PR if you are open to it. Just let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions