Re: Enabling LADSPA When Building a SOX Binary

Christopher Stevens <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <CAFHRK0e3KgY6y4iRqXeA-kneHK8ha-9K-1d_Gsp4fFh8hfCyPw@mail.gmail.com>
Progress, hitting a final wall perhaps:

It seems like everything is in order for enabling ladspa. Awesome! The last
challenge I'm having is using a choice ladspa plugin to bring pitch to my
currently narrative thank you song voices with the vocoder plugin found
here:

http://www.sirlab.de/linux/download_vocoder_ladspa.html

Installation was pretty straightforward:

wget http://www.sirlab.de/linux/download/vocoder-ladspa-0.4.tgz
tar zxf vocoder-ladspa-0.4.tgz
cd vocoder-0.4
#edit INSTALL_PLUGINS_DIR in Makefile to taste, then
make
make install

Eric,
It looks like the example I originally found from 2012 was written by you
(cool!):
https://sourceforge.net/p/sox/patches/92/

When I attempt to run this, I'm thinking some things have changed since
then as I see errors (or I'm likely doing something wrong to start):

sox -M formant.wav carrier.wav \
-b 16 result.wav rate 44100 \
ladspa vocoder 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Result:

sox FAIL rate: usage: ...

Edit (rate to --rate):

sox -M formant.wav carrier.wav \
-b 16 result.wav --rate 44100 \
ladspa vocoder 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Result:

sox FAIL formats: can't open input file `1': No such file or directory

If I run this:

analyseplugin vocoder

The ports hint to me that I'm using it out of order within SOX perhaps?

Plugin Name: "Vocoder"
Plugin Label: "vocoder"
Plugin Unique ID: 1441
Maker: "Achim Settelmeier (adapted to LADSPA by Josh Green)"
Copyright: "None"
Must Run Real-Time: No
Has activate() Function: Yes
Has deactivate() Function: No
Has run_adding() Function: No
Environment: Normal or Hard Real-Time
Ports: "Formant" input, audio
"Carrier" input, audio
"Output" output, audio
"Number of bands" input, control, 1 to 16, integer
"Band 1 Level" input, control, 0 to 1
"Band 2 Level" input, control, 0 to 1
"Band 3 Level" input, control, 0 to 1
"Band 4 Level" input, control, 0 to 1
"Band 5 Level" input, control, 0 to 1
"Band 6 Level" input, control, 0 to 1
"Band 7 Level" input, control, 0 to 1
"Band 8 Level" input, control, 0 to 1
"Band 9 Level" input, control, 0 to 1
"Band 10 Level" input, control, 0 to 1
"Band 11 Level" input, control, 0 to 1
"Band 12 Level" input, control, 0 to 1
"Band 13 Level" input, control, 0 to 1
"Band 14 Level" input, control, 0 to 1
"Band 15 Level" input, control, 0 to 1
"Band 16 Level" input, control, 0 to 1

Thanks much for your work on this project. Also, thanks again for taking a
look at this thread!

Kind regards,

Chris

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.