Debian Codegraph @

README

raw
1 # lv2file
2 lv2file is a simple program which you can use to apply effects to your audio files without much hassle. Possible use cases are:
3
4 * When you want to apply an effect without having to open a GUI or start a project.
5 * When you want to apply effects to a large number of files, or in an automated manner.
6 * When you need a deterministic environment to debug a plugin.
7 * You like everything to be on the command line.
8
9 lv2file uses the LV2 plugin format (http://lv2plug.in/) for the effects it uses.
10
11
12 ## Command Line Syntax
13 lv2file can be used in the following ways:
14
15 lv2file --list
16 * Lists and numbers the available plugins
17
18 lv2file --nameports PLUGIN
19 * Lists the input and control ports for plugin PLUGIN
20
21 lv2file -i IFILE -o OFILE -c CHANNEL:PORT -p PORT:VALUE PLUGIN
22 * Applies the PLUGIN to to IFILE and outputs the results to OFILE.
23
24 lv2file -i - -o - -r RATE -n CHANNELS -c CHANNEL:PORT -p PORT:VALUE PLUGIN
25 * read raw 32-bit floating point samples of sample rate RATE and CHANNELS from stdin and output to stdout.
26
27
28 ## Example
29 lv2file -c 1:voice -p pitch_correction:1 -i speechsample.wav -o outfile.wav http://hyperglitch.com/dev/VocProc
30
31 Applies the "vocproc" plugin to the file speechsample.wav, outputting it to /tmp/outfile.wav. It connects the first channel of the audio to the "voice" input on the vocproc effect, and tells vocproc to set the "pitch_correction" amount to 1.
32
33 lv2file -i speechsample.wav -o outfile.wav 2
34
35 Applies the 2nd plugin to speechsample.wav, outputting to outfile.wav. To get a listing of the plugins and their numbers, you can use lv2file --list. Note that the number is subject to change when plugins are installed or removed, so it should not be used to permanently identify a plugin.
36
37
38 ## Building and Installing
39 The following build dependencies are required:
40
41 libargtable2-dev, liblilv-dev, libsndfile-dev, lv2-dev
42
43 You can then build using
44
45 make
46
47 lv2file can be run from the source directory or copied to your bin directory using
48
49 sudo make install
50
51 ## Options
52 ### -c
53 The -c option tells lv2file to connect the channel CHANNEL in the input file to the audio port PORT of the plugin. If you connect multiple channels to the same port, they will be mixed together. The -c option is often not necessary, as lv2file will try to guess how you would like to connect the ports.
54
55 It is possible to run multiple instances of a plugin using the syntax "-c 5:2.left" which, for example, would connect the fifth channel of audio to the port labeled "left" in the second copy of the plugin. You don't need to specify how many plugins to run, lv2file automatically makes enough according to the connections you make.
56 ### -m
57 There is also a -m or --mono option which will simply mix down all of the channels together and pass them to the plugin. This will only work if the plugin has only a single audio input. This is to be used instead of manually specifying connections.
58
59 ### -p
60 The -p option is used to pass values to the control ports of the plugin, essentially telling the effect *how* to handle the audio. The syntax is simple PORT is the name of the control port, and VALUE is the value to set it to. For example "-p volume:1" sets the effects "volume" control to 1.
61
62 You should note that because lv2file uses LV2 plugins, the VALUES will always be floating point numbers. It is not possible to vary a parameter with time. It is also not possible to have different control values for multiple plugin instances. The former may be addressed at some future point, but the latter will probably never be implemented. It is outside the scope of this program. Instead, split up the channels of your audio files, and process them in batches whose parameters are all the same.
63
64 ### -b
65 The option -b, or --blocksize, controls the size of the chunks the audio is processed in. Larger sizes may be slightly faster, but will use more memory. The default is 512 frames.
66
67 ### --ignore-clipping
68 By default, lv2file will check every sample for clipping and will warn the user if any clipping occurs. However, if know that the effect won't produce clipping, or you don't care if it does, you can use this option to turn off the check for clipping. This will make lv2file run slightly faster.
69
70 ### -P
71 The -P option, or --preset is used to specify a plugin preset to load (before applying control port values).
72
73 ### -n
74 The option -n should be used to specify the input/output channel count to read from stdin and write to stdout. This must be combined with -r/--rate
75
76 ### -r
77 The option -r should be used to specify the input/output sample rate when reading from stdin and writing to stdout. This must be combined with -n/--channels.
78