Skip to content

Instantly share code, notes, and snippets.

@jordanluyke
Last active June 4, 2018 03:59
Show Gist options
  • Save jordanluyke/d42f97d3d8c531e028eda3283fe8164b to your computer and use it in GitHub Desktop.
Save jordanluyke/d42f97d3d8c531e028eda3283fe8164b to your computer and use it in GitHub Desktop.
Alsa 432 Hz pitch shift guide

Alsa 432 Hz Pitch Shift Guide

  • Install

    sudo apt-get install ladspa-sdk tap-plugins
    
  • Find hardware ID

    aplay -L
    wget -P ~/Downloads http://www.kozco.com/tech/piano2.wav
    aplay -D hw:0,0 ~/Downloads/piano2.wav
    aplay -D hw:1,0 ~/Downloads/piano2.wav
    
  • Load in /etc/pulse/default.pa

    load-module module-alsa-sink device=hw:1,0
    
  • Remove

    ### Automatically load driver modules depending on the hardware available
    .ifexists module-udev-detect.so
    load-module module-udev-detect
    .else
    ### Use the static hardware detection module (for systems that lack udev support)
    load-module module-detect
    .endif
    
  • Add

    .ifexists module-ladspa-sink.so
    .nofail
    load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.hw_1_0 plugin=tap_pitch label=tap_pitch control=-0.3176665363342928,0,-90,0
    .fail
    .endif
    

Calculator: http://www.sengpielaudio.com/calculator-centsratio.htm

Credit: http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=2629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment