3 # SoX script: synth.sh (c) 2008-9 robs@users.sourceforge.net
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13 # Public License for more details.
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 # Demonstrates the use of some of the features new in SoX 14.3.0, viz
20 # nested SoX commands, the synth `pluck' type, and the overdrive
21 # effect (also used are several other effects).
22 # Music (c) 2008 robs@users.sourceforge.net. All rights reserved.
26 G0
="pl %-26 pl %-19 pl %-14 pl %-10 pl %-7 pl %-2"
27 A0
="pl %-24 pl %-17 pl %-12 pl %-8 pl %-5 pl %0"
28 C0
="pl %-26 pl %-21 pl %-14 pl %-9 pl %-5 pl %-2"
29 D0
="pl %-24 pl %-19 pl %-12 pl %-7 pl %-3 pl %0"
30 E0
="pl %-22 pl %-17 pl %-10 pl %-5 pl %-1 pl %2"
31 Bb0
="pl %-23 pl %-16 pl %-11 pl %-7 pl %-4 pl %1"
33 o
="overdrive 27 gain -11"
34 e
="delay 0 .02 .04 .06 .08 .1 remix - overdrive 33 gain -8 fade 0"
35 s
="$sox -q -n -p synth 0 0 1 60 90"
36 l
="$sox -q -n -p synth 0 0 0 50 20"
38 b
="$sox -n -p synth 0 0 0 30 20 pl"
44 r
="$sox -n -p trim 0 .25"
45 r2
="$sox -n -p trim 0 .5"
46 r3
="$sox -n -p trim 0 .75"
50 \"|$sox -n -p synth noise fade 0 .5 .48 trim 0 .15\" \
51 \"|$sox -n -p synth noise fade h 0 .26 .11 gain -35 lowpass -1 12k\" \
52 -p splice .15,.06,0 gain -14 lowpass -1 12k highpass -1 9k \
53 equalizer 14k 1.3 13 \
58 equalizer 1500 10 8 pad 0 .21 remix 1 1 reverb 10 repeat 56" \
60 \"|$sox -n -p trim 0 1.4\" \
61 \"|$s $G0 $e 2.6 .1 bend .5,200,.2\" \
70 \"|$s $Bb0 $e 2 .1\" \
72 -p pad 0 3 remix 1 1 flanger reverb 70" \
74 \"|$sox -n -p trim 0 8\" \
75 \"|$l pl %7 $o trim 0 .25\" \
76 \"|$l pl %12 $o trim 0 .2\" \
77 \"|$l pl %10 $o trim 0 .5 bend .2,-300,.1\" \
78 \"|$l pl %5 $o trim 0 .5 bend .2,-200,.1\" \
79 \"|$l pl %0 $o fade 0 .55 .1 bend .2,-200,.1\" \
80 \"|$l pl %0 $o fade h 0 2 .5\" \
81 \"|$sox -n -p trim 0 3.95\" \
82 \"|$l pl %12 $o trim 0 .5 bend .2,-200,.1\" \
83 \"|$l pl %12 $o trim 0 .5 bend .2,-200,.1\" \
84 \"|$l pl %12 $o fade 0 .8 .1 bend .2,-200,.1\" \
85 \"|$l pl %12 $o trim 0 .3 bend .1,-200,.1\" \
86 \"|$l pl %12 $o fade 0 1.95 .6 bend .0,-50,1.75 gain 3\" \
87 \"|$l pl %10 $o fade 0 2 .6 bend .0,-50,1.9\" \
88 \"|$l pl %9 $o trim 0 2 gain -1\" \
89 \"|$l pl %8 $o fade h 0 1 .3\" \
90 \"|$l pl %8 $o fade h 0 1 .1 gain 1.5\" \
91 \"|$l pl %2 pl %7 delay 0 .02 remix - $o trim 0 .25\" \
92 \"|$l pl %-5 $o trim 0 .25\" \
93 \"|$l pl %-5 $o trim 0 .25\" \
94 \"|$l pl %2 pl %7 delay 0 .02 remix - $o trim 0 .25\" \
95 \"|$l pl %-5 $o trim 0 .25\" \
96 \"|$l pl %-5 $o trim 0 .25\" \
97 \"|$l pl %2 pl %7 delay 0 .02 remix - $o trim 0 .25\" \
98 \"|$l pl %-5 $o trim 0 .25\" \
99 \"|$l pl %2 pl %7 delay 0 .02 remix - $o fade h 0 6 6\" \
100 -p gain -4 remix 1 1 flanger" \
102 \"|$sox -n -p trim 0 1.5\" \
103 \"|$b G1 $m contrast\" \
104 \"|$b A1 $c3 contrast\" \
133 \"|$b A1 $c3 contrast\" \
196 -p lowpass -1 1k remix 1p-12 1p-12" -d