DSP(1) General Commands Manual DSP(1) (NAME) dsp - (SYNOPSIS) dsp [options] path ... [effect [args]] ... (DESCRIPTION) dsp . (OPTIONS) (Global options) -h . -b frames ( ). -i . -I . -q . -s . -v (Verbose). -d (Dithering). -D . -E . -p . -P -p . -V . -S (sequence). / (Input/output options) -o . -t type . -e encoding (Encoding). -B/L/N big/little/native endian. -r frequency[k] . -c channels . -R ratio . -n : -t null null. / : $ dsp -h (Input combining modes) (concatenate) . . (sequence) . / . (truncate) . resample / remix / . (Signal generator) sgen ( ) . () path : [type[@channel_selector][:arg[=value]...]][/type...][+len[s|m|S]] type 'sine' () 'delta' . 'sine' : freq=f0[k][-f1[k]] (). len f1 . 'delta' : offset=time[s|m|S] (offset) . : $ dsp -t sgen -c 2 sine@0:freq=500-1k/sine@1:freq=300-800+2 gain -10 (EFFECTS) (Complete effects list) lowpass_1 f0[k] . highpass_1 f0[k] . allpass_1 f0[k] . lowshelf_1 f0[k] gain (lowshelf) . highshelf_1 f0[k] gain (highshelf) . lowpass_1p f0[k] (EWMA). lowpass f0[k] width[q|o|h|k] . highpass f0[k] width[q|o|h|k] . bandpass_skirt f0[k] width[q|o|h|k] (constant skirt gain). bandpass_peak f0[k] width[q|o|h|k] (constant peak gain). notch f0[k] width[q|o|h|k] (notch) . allpass f0[k] width[q|o|h|k] . eq f0[k] width[q|o|h|k] gain (peaking) (). lowshelf f0[k] width[q|s|d|o|h|k] gain . highshelf f0[k] width[q|s|d|o|h|k] gain . lowpass_transform fz[k] width_z[q] fp[k] width_p[q] . fz width_z fp width_p . DC . highpass_transform fz[k] width_z[q] fp[k] width_p[q] (Linkwitz transform) (: ). lowpass_transform Fs/2 . linkwitz_transform fz[k] width_z[q] fp[k] width_p[q] highpass_transform. deemph (de-emphasis) (CD). biquad b0 b1 b2 a0 a1 a2 (Biquad). gain gain_dB . mult multiplier multiplier. add value DC. crossfeed f0[k] separation Linkwitz/Meier/CMoy/bs2b. matrix4 [options] [surround_level] ( /) (). +- +- +-. . ( ) . / : matrix4 surround_delay=15m -6 :2,3 lowpass_1 10k : ( - ) . surround_level - . decorrelate ( -m) (: decorrelate 'surround_delay' ). . . : no_dir_boost . show_status ( ). signal 'effect.signal()'. linear_phase ( matrix4_mb) FIR IIR. matrix4 fir . surround_delay=delay[s|m|S] . . filter_type=filter[:stop_dB[:stop_dB]] ( matrix4_mb) . filter butterworth chebyshev1 chebyshev2 elliptic () . () stop_dB . chebyshev1 chebyshev2 . elliptic . . chebyshev1 chebyshev2 elliptic : . matrix4_mb [options] [surround_level] matrix4 . matrix4 . remix selector|. ... . (selector) . '.' . : remix 0,1 2,3 . remix - . . st2ms / (mid/side). ms2st / . delay [-f [order]] delay[s|m|S] . delay : 's' () 'm' 'S' . delay ( -- ). . -f (Thiran allpass interpolation) . order . . resample [bandwidth] fs[k] Sinc. . fir [input_options] [file:][~/]filter_path|coefs:list[/list...] FFT (Non- partitioned). (tap) . fft_len (verbose) . list . . input_options ( ) : -t type . -e encoding . -B/L/N big/little/native endian..TP -r frequency[k] . -c channels . . ``any'' . fir_p [input_options] [max_part_len] [file:][~/]filter_path|coefs:list[/list...] /FFT . zita_convolver . max_part_len . list . . input_options fir . zita_convolver [input_options] [min_part_len [max_part_len]] [file:][~/]filter_path|coefs:list[/list...] FFT zita- convolver. min_part_len ( ). {min,max}_part_len . list . . input_options fir . hilbert [-pz] [-a angle] taps FIR (Hilbert transform). . . -p fir_p fir . -z zita_convolver ( ) . -a ( - ). decorrelate [-m] [-s seed] [stages] ``Frequency-Dependent Schroeder Allpass Filters'' . (doi:10.3390/app10010187). -m . . . -s (seed) . noise level[b] TPDF. level dBFS `b' . dither [shape] [[quantize_bits] bits] (dither) (noise shaping). shape ( ) : ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ flat TPDF (). sloped TPDF . sloped2 TPDF sloped. lipshitz E [1] 4k 12k. wan3 F [2] 4k. wan9 F [2] 3.5k 12k. bits . quantize_bits . `auto' . bits `auto' . bits . quantize_bits . quantize_bits bits ( ) . : watch ladspa_dsp bits `auto' . [1] S. P. Lipshitz, J. Vanderkooy, and R. A. Wannamaker, ``Minimally Audible Noise Shaping,'' J. AES, vol. 39, no. 11, November 1991 [2] R. A. Wannamaker, ``Psychoacoustically Optimal Noise Shaping,'' J. AES, vol. 40, no. 7/8, July 1992 ladspa_host [~/]module_path plugin_label [control ...] LADSPA. / ( ). . `-' ( ) . `LADSPA_PATH' . stats [ref_level] DC (dBFS) RMS ( dBFS) (dB) () . ref_level RMS ref_level (dBr). watch [-e] [~/]path . `@' ( << >> ). : o . o . . . `inotify' . ( rename(3) ). -e . `#EOF#' ..SS " (Selector syntax)" --------------------------------------------------------- - 2- n -4 1,3 1-4,7,9- n : `1,3' `3,1' . . (Filter width) : ----------------------------------------------------------------------------------------------------------------------------- q Q-factor (). s Slope ( ). d dB/octave ( ). o . h . k . : `d' f0 ( Room EQ Wizard Behringer DCX2496) . (Butterworth) : `bw[.n]' `' `n' . Q . : lowpass 1k bw6.0 lowpass 1k bw6.1 lowpass 1k bw6.2 . : lowpass_1 1k lowpass 1k bw5.0 lowpass 1k bw5.1 (File paths) `$PWD' . . `~/' `$HOME' . : ----------------------------------------------------------------------------------------------------------- %r %k %c %% `%' (Channel selectors and masks) (`:') ( << >> ) . : :0,2 eq 1k 1.0 -6 eq . . . . (`{ ... }') ( << >> ). . : :1,3 { :0 gain -6 :1 gain +6 } `1,3' . `:0' ( ) `:1' ( ) . (block scope) . . . (Effects files) `@' : @[~/]path/to/file << >> . ( << >> ). `#' . (`\') `#' `\' . : gain -4.0 # This is a comment lowshelf 90 1s +4 eq 3k 1.5 -3 ('!') . wisdom FFTW FFTW3 (wisdom) . dsp '$DSP_FFTW_WISDOM_PATH' . ladspa_dsp '$LADSPA_DSP_FFTW_WISDOM_PATH' . FFTW FFTW_MEASURE . (wisdom) . (EXAMPLES) file.flac (bass boost) alsa hw:2: dsp file.flac -ot alsa -e s24_3 hw:2 lowshelf 60 0.5 +4 : dsp -pn [effect [args]] ... | gnuplot LR4 . : dsp stereo_file.flac -ot alsa -e s32 hw:3 remix 0 1 0 1 :0,1 highpass 2.2k 0.7071 highpass 2.2k 0.7071 : :2,3 lowpass 2.2k 0.7071 lowpass 2.2k 0.7071 : : dsp file.flac @eq.txt LADSPA (LADSPA FRONTEND) (Configuration) ladspa_dsp : o $XDG_CONFIG_HOME/ladspa_dsp o $HOME/.config/ladspa_dsp ( $XDG_CONFIG_HOME ) o /etc/ladspa_dsp 'LADSPA_DSP_CONFIG_PATH' () ( ) . config config_ ( ) . ladspa_dsp ( config) ladspa_dsp: ( config_) . - . . : input_channels . . . output_channels . . LADSPA . . LC_NUMERIC 'LC_NUMERIC' . 'C' LADSPA . . 'none' 'LC_NUMERIC' LADSPA ( ). effects_chain . . : # This is a comment input_channels=1 output_channels=1 LC_NUMERIC=C effects_chain=gain -3 lowshelf 100 1s +3 @/path/to/eq_file effects_chain . (loglevel) 'LADSPA_DSP_LOGLEVEL' 'VERBOSE' 'NORMAL' 'SILENT' . : resample LADSPA . (EXAMPLES) . (BUGS) (metadata). (plot) . noise . . (LICENSE) ISC . dsp-2.0 DSP(1)