Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 3076|Reply: 3

RetroPie, PiMusicBox ect. Linux ALSA 432 & 528 Hz Real-Time Tuning Engine

[Copy link]

9

Threads

56

Posts

280

Credits

Intermediate member

Rank: 3Rank: 3

Credits
280
Post time 2017-4-9 23:34:16 | Show all posts |Read mode
Edited by Giantofstone at 2018-3-12 04:13

Hello,

all past generations consoles used A4 440 Hz Audio Pitch Standard which means nothing and is bad for you. Retrorangepi 4 uses ALSA so i configured a Real-Time A4 440 Hz to A4 432 Hz audio output plugin for it and configured that to be used as default to work.

You can also use the C5 528 Hz tuning. Just change the number of semitones to 0.156674, what will change A4 to 444 Hz.



Before your start, in the main menu press start and find desktop. In the desktop find a terminal.

First step is to install ladspa-sdk and tap_plugins
  1. sudo apt-get install ladspa-sdk && sudo apt-get install tap-plugins
Copy the Code

Second step is to edit ~/.asoundrc
  1. sudo pluma ~/.asoundrc
Copy the Code
Here is the example of ~/.asoundrc file for OrangePi PC (H3), just copy and paste.
  1. pcm.snd_card {
  2.         type hw
  3.         card 1
  4.         device 0
  5. }

  6. ctl.snd_card {
  7.         type hw
  8.         card 1
  9.         device 0
  10. }

  11. pcm.dmixer {
  12.     type dmix
  13.     ipc_key 1024
  14.     ipc_perm 0666      
  15.     slave.pcm snd_card
  16.     slave {
  17.         period_time 0
  18.         period_size 1024
  19.         buffer_size 4096
  20.         rate 44100
  21.         format S32_LE
  22.         channels 2
  23.     }
  24.     bindings {
  25.         0 0
  26.         1 1
  27.     }
  28. }

  29. pcm.ladspa {
  30.     type ladspa
  31.     slave.pcm "dmixplug";
  32.     path "/usr/lib/ladspa";
  33.     plugins [{
  34.         label tap_pitch
  35.         input {
  36.             controls [ -0.317667 0 -90 0 ]
  37.         }
  38.     }]
  39. }

  40. pcm.dmixplug {
  41.   type plug
  42.   slave.pcm "dmixer"
  43. }

  44. pcm.!default {
  45.     type plug
  46.     slave.pcm "duplex"
  47. }

  48. pcm.duplex {
  49.     type asym
  50.     playback.pcm "ladspa"
  51. }
Copy the Code

Done! Save and Restart.
Now you can heal your energy while playing all your favourite games without getting annoyed and play longer.
This will change the frequency to 431.99998843001134 Hz with a pretty sound effect and 440 Hz becomes funny next to it.
There are issues getting analog sound to work but may be a way around that.

9

Threads

56

Posts

280

Credits

Intermediate member

Rank: 3Rank: 3

Credits
280
 Author| Post time 2017-8-4 20:27:35 | Show all posts

RE: Linux ALSA 432 Hz Tuning Guide with High Preci...

Edited by Giantofstone at 2018-2-23 21:40

For a Raspberry Pi you need to install Raspbian, install ladspa-sdk and tap_plugins, edit /usr/share/alsa/alsa.conf with the code under pcm.hw and manually install RetroPie. To auto start RetroPie you can edit /home/pi/.bashrc and add the line /usr/bin/emulationstation at the end of it.

This also works very good on PiMusicBox.

  1. pcm.ladspa {
  2.     type ladspa
  3.     slave.pcm "dmixplug";
  4.     path "/usr/lib/ladspa";
  5.     plugins [{
  6.         label tap_pitch
  7.         input {
  8.             controls [ -0.317667 0 -90 0 ]
  9.         }
  10.     }]
  11. }

  12. pcm.dmixplug {
  13.   type plug
  14.   slave.pcm "hw"
  15. }

  16. pcm.!default {
  17.     type plug
  18.     slave.pcm "duplex"
  19. }

  20. pcm.duplex {
  21.     type asym
  22.     playback.pcm "ladspa"
  23. }
Copy the Code



0

Threads

6

Posts

128

Credits

Registered member

Rank: 2

Credits
128
Post time 2018-4-2 13:05:10 | Show all posts
Edited by Ubzilla at 2018-8-13 02:44

The full number of semitones still works better and change -90 to -24 or -48 or -72 for PCM System Minimum. With the last 0 to -6 so it filters the sound from ALSA otherwise it will hurt your ears. Also you may optionally install tap-plugins 1.0.0 for Debian Jessie and Stretch from this link Here. With raspberry pi dmixer wasn't working. Try "hw" instead of "dmixer", the OS may be optimized for that.

Should look like this:

  1. controls [ -0.3176665327 0 -24 0 ] 432.00000009 Hz
Copy the Code

Other option is to change the percantage instead of semitones:
  1. controls [ 0 -1.81818179772 -24 0 ] 432.00000009 Hz
Copy the Code
9 is the meaning of Infinity and Enlightenment encoded in all Polygons. -24 Means Vortex and if for example playing audio files of 120db and 96 db of the dynamic range will output audio at 96 db and 72 db of the dynamic range and for health reasons shouldn't be changed. Had to do with 12 digits, it has a lot of meaning called enlightenment.


I also have made a blog here

0

Threads

2

Posts

32

Credits

Novice

Rank: 1

Credits
32
Post time 2018-10-19 02:41:33 | Show all posts
Edited by PowerFi at 2018-10-19 02:42

The safe settings without repeating decimal fraction are following:

444.00000009 Hz = 0.90909093 %

432.00000009 Hz = -1.818181797 %


Decibel Switch Works as this:

0,0
-12,-3
-24,-6
-36,-9
-48,-6
-60,-3
-72,-6
-84,-9
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-1-19 03:46 GMT+8 , Processed in 0.027781 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list