home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Sound / SoX / CHEAT.eft < prev    next >
Text File  |  1999-07-18  |  10KB  |  281 lines

  1. This is a cheat sheet of examples using SOX to
  2. add effects on sound files.
  3.  
  4. Introduction:
  5.  
  6. The core problem is that you need some experience in using effects
  7. in order to say "that any old sound file sounds with effects
  8. absolutely hip". There isn't any rule-based system which tell you
  9. the correct setting of all the parameters for every effect.
  10. But after some time you will become an expert in using effects.
  11.  
  12. Here are some examples which can be used with any music sample.
  13. (For a sample where only a single instrument is playing, extreme
  14. parameter setting may make well-known "typically" or "classical"
  15. sounds. Likewise, for drums, vocals or guitars.)
  16. Single effects will be explained and some given parameter settings
  17. that can be used to understand the theorie by listening to the sound file
  18. with the added effect.
  19.  
  20. Using multiple effects in parallel or in sequel can result either
  21. in very perfect sound or ( mostly ) in a dramatic overloading in
  22. variations of sounds such that your ear may follow the sound but
  23. you will feel unsatisfied. Hence, for the first time using effects
  24. try to compose them as less as possible. We don't regard the
  25. composition of effects in the examples because to many combinations
  26. are possible and you really need a very fast maschine and a lot of
  27. memory to play them in real-time.
  28.  
  29. And real-time playing of sounds will speed up learning the parameter
  30. setting.
  31.  
  32. Basically, we will use the "play" front-end of SOX since it is easier
  33. to listen sounds coming out of the speaker or earphone instead
  34. of looking at cryptical data in sound files.
  35.  
  36. For easy listening of file.xxx ( "xxx" is any sound format ):
  37.  
  38.     play file.xxx effect-name effect-parameters
  39.  
  40. Or more SOX-like ( for "dsp" output ):
  41.  
  42.     sox file.xxx -t ossdsp -w -s /dev/dsp effect-name effect-parameters
  43.  
  44. or ( for "au" output ):
  45.  
  46.     sox file.xxx -t sunau -w -s /dev/audio effect-name effect-parameters
  47.  
  48. And for date freaks:
  49.  
  50.     sox file.xxx file.yyy effect-name effect-parameters
  51.  
  52. Additional options can be used. However, in this case, for real-time
  53. playing you'll need a very fast machine.
  54.  
  55. Notes:
  56.  
  57. I played all examples in real-time on a Pentium 100 with 32 Mb and 
  58. Linux 2.0.30 using a self-recorded sample ( 3:15 min long in "wav"
  59. format with 44.1 kHz sample rate and stereo 16 bit ). 
  60. The sample should not contain any of the effects. However,
  61. if you take any recording of a sound track from radio or tape or cd,
  62. and it sounds like a live concert or ten people are playing the same
  63. rhythm with their drums or funky-groves, then take any other sample.
  64. (Typically, less then four different intruments and no synthesizer
  65. in the sample is suitable. Likewise, the combination vocal, drums, bass
  66. and guitar.)
  67.  
  68. Effects:
  69.  
  70. Echo
  71. ----
  72.  
  73. An echo effect can be naturally found in the mountains, standing somewhere
  74. on a moutain and shouting a single word will result in one or more repetitions
  75. of the word ( if not, turn a bit around ant try next, or climb to the next
  76. mountain ).
  77.  
  78. However, the time difference between shouting and repeating is the delay 
  79. (time), its loudness is the decay. Multiple echos can have different delays and
  80. decays.
  81.  
  82. Very popular is using echos to play an instrument with itself together, like
  83. some guitar players ( Brain May from Queen ) or vocalists are doing.
  84. For music samples of more than one instrument, echo can be used to add a
  85. second sample shortly after the original one.
  86. This will sound as doubling the number of instruments playing the same sample:
  87.  
  88.     play file.xxx echo 0.8 0.88 60.0 0.4
  89.  
  90. If the delay is very short then it sound like a (metallic) roboter playing
  91. music:
  92.  
  93.     play file.xxx echo 0.8 0.88 6.0 0.4
  94.  
  95. Longer delay will sound like a open air concert in the mountains:
  96.  
  97.     play file.xxx echo 0.8 0.9 1000.0 0.3
  98.  
  99. One mountain more, and:
  100.  
  101.     play file.xxx echo 0.8 0.9 1000.0 0.3 1800.0 0.25
  102.  
  103. Echos
  104. -----
  105.  
  106. Like the echo effect, echos stand for "ECHO in Sequel", that is the first echos
  107. takes the input, the second the input and the first echos, the third the input
  108. and the first and the second echos, ... and so on.
  109. Care should be taken using many echos ( see introduction ); a single echos
  110. has the same effect as a single echo.
  111. The sample will be bounced twice in symmetric echos:
  112.  
  113.     play file.xxx echos 0.8 0.7 700.0 0.25 700.0 0.3
  114.  
  115. The sample will be bounced twice in asymmetric echos:
  116.  
  117.     play file.xxx echos 0.8 0.7 700.0 0.25 900.0 0.3
  118.  
  119. The sample will sound as played in a garage:
  120.  
  121.     play file.xxx echos 0.8 0.7 40.0 0.25 63.0 0.3
  122.  
  123. Chorus
  124. ------
  125.  
  126. The chorus effect has its name because it will often be used to make a single 
  127. vocal sound like a chorus. But it can be applied to other instrument samples
  128. too.
  129.  
  130. It works like the echo effect with a short delay, but the delay isn't constant.
  131. The delay is varied using a sinodial or triangular modulation. The modulation
  132. depth defines the range the modulated delay is played before or after the
  133. delay. Hence the delayed sound will sound slower or faster, that is the delayed
  134. sound tuned around the original one, like in a chorus where some vocal are
  135. a bit out of tune.
  136.  
  137. The typical delay is around 40ms to 60ms, the speed of the modualtion is best
  138. near 0.25Hz and the modulation depth around 2ms.
  139.  
  140. A single delay will make the sample more overloaded:
  141.  
  142.     play file.xxx chorus 0.7 0.9 55.0 0.4 0.25 2.0 -t
  143.  
  144. Two delays of the original samples sound like this:
  145.  
  146.     play file.xxx chorus 0.6 0.9 50.0 0.4 0.25 2.0 -t 60.0 0.32 0.4 1.3 -s
  147.  
  148. A big chorus of the sample is ( three additional samples ):
  149.  
  150.     play file.xxx chorus 0.5 0.9 50.0 0.4 0.25 2.0 -t 60.0 0.32 0.4 2.3 -t \
  151.         40.0 0.3 0.3 1.3 -s
  152.  
  153. Flanger
  154. -------
  155.  
  156. The flanger effect is like the chorus effect, but the delay varies between
  157. 0ms and maximal 5ms. It sound like wind blowing, sometimes faster or slower
  158. including changes of the speed.
  159.  
  160. The flanger effect is widely used in funk and soul music, where the guitar 
  161. sound varies frequently slow or a bit faster.
  162.  
  163. The typical delay is around 3ms to 5ms, the speed of the modulation is best
  164. near 0.5Hz.
  165.  
  166. Now, let's groove the sample:
  167.  
  168.     play file.xxx flanger 0.6 0.87 3.0 0.9 0.5 -s
  169.  
  170. listen carefully between the difference of sinodial and triangular modulation:
  171.  
  172.     play file.xxx flanger 0.6 0.87 3.0 0.9 0.5 -t
  173.  
  174. If the decay is a bit lower, than the effect sounds more popular:
  175.  
  176.     play file.xxx flanger 0.8 0.88 3.0 0.4 0.5 -t
  177.  
  178. The drunken loundspeaker system:
  179.  
  180.     play file.xxx flanger 0.9 0.9 4.0 0.23 1.3 -s
  181.  
  182. Reverb
  183. ------
  184.  
  185. The reverb effect is often used in audience hall which are to small or to many
  186. visitors disturb the reflection of sound at the walls to make the sound played
  187. more monumental. You can try the reverb effect in your bathroom or garage or
  188. sport halls by shouting loud some words. You'll hear the words reflected from
  189. the walls.
  190.  
  191. The biggest problem in using the reverb effect is the correct setting of the
  192. (wall) delays such that the sound is relistic an doesn't sound like music
  193. playing in a tin or overloaded feedback distroys any illusion of any big hall.
  194. To help you for much realisitc reverb effects, you should decide first, how
  195. long the reverb should take place until it is not loud enough to be registered
  196. by your ears. This is be done by the reverb time "t", in small halls 200ms in
  197. bigger one 1000ms, if you like. Clearly, the walls of such a hall aren't far
  198. away, so you should define its setting be given every wall its delay time.
  199. However, if the wall is to far eway for the reverb time, you won't hear the
  200. reverb, so the nearest wall will be best "t/4" delay and the farest "t/2".
  201. You can try other distances as well, but it won't sound very realistic.
  202. The walls shouldn't stand to close to each other and not in a multiple interger
  203. distance to each other ( so avoid wall like: 200.0 and 202.0, or something
  204. like 100.0 and 200.0 ).
  205.  
  206. Since audience halls do have a lot of walls, we will start designing one 
  207. beginning with one wall:
  208.  
  209.     play file.xxx reverb 1.0 600.0 180.0
  210.  
  211. One wall more:
  212.  
  213.     play file.xxx reverb 1.0 600.0 180.0 200.0
  214.  
  215. Next two walls:
  216.  
  217.     play file.xxx reverb 1.0 600.0 180.0 200.0 220.0 240.0
  218.  
  219. Now, why not a futuristic hall with six walls:
  220.  
  221.     play file.xxx reverb 1.0 600.0 180.0 200.0 220.0 240.0 280.0 300.0
  222.  
  223. If you run out of machine power or memory, then stop as much applications
  224. as possible ( every interupt will consume a lot of cpu time which for
  225. bigger halls is absolutely neccessary ).
  226.  
  227. Phaser
  228. ------
  229.  
  230. The phaser effect is like the flanger effect, but it uses a reverb instead of
  231. an echo and does phase shifting. You'll hear the difference in the examples
  232. comparing both effects ( simply change the effect name ).
  233. The delay modulation can be done sinodial or triangular, preferable is the
  234. later one for multiple instruments playing. For single instrument sounds
  235. the sinodial phaser effect will give a sharper phasing effect.
  236. The decay shouln't be to close to 1.0 which will cause dramatic feedback.
  237. A good range is about 0.5 to 0.1 for the decay.
  238.  
  239. We will take a parameter setting as for the flanger before ( gain-out is
  240. lower since feedback can raise the output dramatically ):
  241.  
  242.     play file.xxx phaser 0.8 0.74 3.0 0.4 0.5 -t
  243.  
  244. The drunken loundspeaker system ( now less alkohol ):
  245.  
  246.     play file.xxx phaser 0.9 0.85 4.0 0.23 1.3 -s
  247.  
  248. A popular sound of the sample is as follows:
  249.  
  250.     play file.xxx phaser 0.89 0.85 1.0 0.24 2.0 -t
  251.  
  252. The sample sounds if ten springs are in your ears:
  253.  
  254.     play file.xxx phaser 0.6 0.66 3.0 0.6 2.0 -t
  255.  
  256. Other effects ( copy, rate, avg, stat, vibro, lowp, highp, band, reverb )
  257. -------------
  258.  
  259. The other effects are simply to use. However, an "easy to use manual" should
  260. be given here.
  261.  
  262. More effects ( to do ! )
  263. ------------
  264.  
  265. There are a lot of effects around like noise gates, compressors, waw-waw,
  266. stereo effects and so on. They should be implemented making SOX to be more
  267. useful in sound mixing technics coming together with a great varity of
  268. different sound effects.
  269.  
  270. Combining effects be using then in parallel or sequel on different channels
  271. needs some easy mechanism which is real-time stable.
  272.  
  273. Really missing, is the changing of the parameters, starting and stoping of
  274. effects while playing samples in real-time!
  275.  
  276.  
  277. Good luck and have fun with all the effects!
  278.  
  279.     Juergen Mueller        (jmueller@uia.ua.ac.be)
  280.  
  281.