login|Register
Forum > Open source hardware
Post|
看40198|回18|Favorite
Giantofstone 看全部
2017-4-2 02:24:51
Edited by Giantofstone at 2018-3-22 02:14

Hello,

from alot of searching i have found out how to play everything on your Linux Desktop converted from the unnatural standard A4 440 Hz pitch frequency to the natural scientific tuning frequencies A4 432 Hz and C5 528 in Real-Time using Ubuntu 16.04. So for the improvement, to not be alone really had to share it.

You could patch PulseAudio or ALSA with LADSPA and use the Pitch Shifter plugin in it that can handle long numbers. I used PulseAudio and could change the semitones to a higher number of -0.317667 and now everything sounds awesome. I also use a good soundcard for that.


Update 17-11-20: The sound hurts with this solution
, use at your own risk. Before starting you have to proceed with the last solution for Ubuntu 17.10 first. The sound will be much cleaner, acoustic, organic, soft and safe but with a very small delay (tested at 32bit!).

Update 18-01-12: There are alot of incompatibility issues that had been solved and the improvement is being continued thanks to the open source community. So i have easied the settings to get even better sound. Also the 17.10 solution should always be used. The sound is very rich compared to
my obstacles that are getting so problematic.

Update 18-01-17: You can also change the A4 to 444 Hz. This will change the C5 to 528 Hz that is another scientific frequency, that is a miracle tone. This will be the best cancer healer also combined with Solfeggio 60 Hz frequency and maybe anti-cancer brainwave too but thats the part of that. You can do it by changing the number of semitones to 0.156674 or with rubberband to 15.667384 cents. Before that you find out that you may have cancer, you also can collect crystals and watch this video to beat it your self: https://www.youtube.com/watch?v=3telTLkmYSk

Update 18-03-01: Have Improved the volume, changed the title after many updates. Better use the latest linux distribution.

Update 18-03-12: Cleaned up the guide.

The steps i did to make it work ware:

Step 1
Upgrade and Install ladspa-sdk with tap-plugins.

code:

  1. sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

code:

  1. sudo apt-get install ladspa-sdk && sudo apt-get install tap-plugins


Step 2
Find out your audio output sink which your speakers are connected to.

code:

  1. aplay -L

To test if the output works.

example:

code:

  1. aplay -D hw:0,0 /home/me/Downloads/test.wav


Step 3
Configure outputs by editing /etc/pulse/default.pa file.

Make a backup of default.pa file and edit it.

code:

  1. sudo gedit /etc/pulse/default.pa

Add the output form step 2 to the configuration file.

Before:

code:

  1.     ### Load audio drivers statically
  2.     ### (it's probably better to not load these drivers manually, but instead
  3.     ### use module-udev-detect -- see below -- for doing this automatically)
  4.     #load-module module-alsa-sink
  5.     #load-module module-alsa-source device=hw:1,0
  6.     #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  7.     #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  8.     #load-module module-null-sink
  9.     #load-module module-pipe-sink
After:

code:

  1.     ### Load audio drivers statically
  2.     ### (it's probably better to not load these drivers manually, but instead
  3.     ### use module-udev-detect -- see below -- for doing this automatically)
  4.     load-module module-alsa-sink device=hw:0,0
  5.     #load-module module-alsa-source device=hw:1,0
  6.     #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
  7.     #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
  8.     #load-module module-null-sink
  9.     #load-module module-pipe-sink

Remove the whole lines:

code:

  1. ### Automatically load driver modules depending on the hardware available
  2. .ifexists module-udev-detect.so
  3. load-module module-udev-detect
  4. .else
  5. ### Use the static hardware detection module (for systems that lack udev support)
  6. load-module module-detect
  7. .endif

In the same default.pa file add Ladspa plugin configuration under the line ### Make some devices default.

For the C5 528 Hz:

code:

  1. .ifexists module-ladspa-sink.so
  2. .nofail
  3. load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.hw_0_0 plugin=tap_pitch label=tap_pitch control=0.156674,0,-90,0
  4. .fail
  5. .endif

For the A4 432 Hz:

code:

  1. .ifexists module-ladspa-sink.so
  2. .nofail
  3. load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.hw_0_0 plugin=tap_pitch label=tap_pitch control=-0.317667,0,-90,0
  4. .fail
  5. .endif

Change Master to your output from step 2. The sink names can also be found by this code:

code:

  1. pacmd list-sinks

Save the file and reboot.


After
everything is done, you can play everything that uses the standard 440Hz pitch at the natural 432Hz or 528Hz frequencies. You can even use it as sound converter from 440Hz for any input to use on any device, play games, listen music, watch DVD and alot more.


To check what pitch you listen to, use the android app called Pitch Detector or Chromatic Tuner.


If you want to convert music with even higher precision at high quality to use it, you can use a plugin with Audacity called Rubberband. It can change the pitch by -31.766654 cents to 431.99999990852854 Hz at high quality, at the cost of computer performance. To install it open terminal and type next:

code:

  1. sudo apt-get install rubberband-ladspa
After that, enable this plugin in audacity. I recommend to accuraterip the original CD before editing it.


Thank you. Have fun. Be healthy. Don't catch cold. Best wishes. Have a nice day.
Giantofstone 看全部
2017-4-2 22:56:24
Edited by Giantofstone at 2017-11-15 05:30

To create a standalone Real-Time 432Hz converter without connecting computer cables you can auto startup VLC and auto open the playlist file. A USB audio capture device is required. It even still works if capture device was removed while running the system and pluged back in.

Issues:
1. Audio/Video Sync Delay (high latency pitch shifter)
2. Shut down button doesn't work.


Step 1
Install vlc

code:

  1. sudo apt-get install vlc

Step 2
To find your audio capture device in vlc click on the tab view and then playlist. Find your device then right click on it and Save Playlist to File. Select ladspa_out in vlc audio device settings.

Step 3
To auto start vlc running the playlist file of the the capture device, find your startup settings then add the following code into it

code:

  1. /usr/bin/vlc /yourfolder/yourplaylist
Giantofstone 看全部
2017-4-9 23:52:47
Edited by Giantofstone at 2018-2-23 21:36

To use ALSA you need to edit ~/.asoundrc file and add the following line to it

code:

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


To make it default you have to add some more to file. I have made a tutorial for the RetroPie Here
Giantofstone 看全部
2017-11-13 05:08:17
Edited by Giantofstone at 2018-3-12 03:47

Reserved.
Ubzilla 看全部
2018-4-2 12:56:30
Edited by Ubzilla at 2018-8-17 02:21

Found a secret! Tried the full number of semitones shifting and it seems to work even better.

A4 444.00000009 Hz: 0.15667383742
A4 432.00000009 Hz:  -0.31766653272

The numbers are already rounded off.

And this code is looking a lot better:

code:

  1. .ifexists module-ladspa-sink.so
  2. .nofail
  3. load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.dmix_0_0 plugin=tap_pitch label=tap_pitch control=-0.31766653272,-84,-3
  4. .fail.
  5. .endif
A=24db B=48db C=72db is for the PCM System Minimum.
1234NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC