選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

44 行
2.0KB

  1. /*
  2. CHORUS and FLANGE effects
  3. Both effects use a delay line to hold previous samples. This allows
  4. the current sample to be combined in some way with a sample that
  5. occurred in the past. An obvious effect this would allow would be
  6. an echo where the current sample is combined with a sample from,
  7. say, 250 milliseconds ago. The chorus and flange effects do this
  8. as well but they combine samples from only about 50ms or less ago.
  9. CHORUS EFFECT
  10. This combines one or more samples up to about 50ms ago. In this
  11. library, the additional samples are evenly spread through the
  12. supplied delay line.
  13. E.G. If the number of voices is specified as 2 then the effect
  14. combines the current sample and the oldest sample (the last one in
  15. the delay line). If the number of voices is 3 then the effect
  16. combines the most recent sample, the oldest sample and the sample
  17. in the middle of the delay line.
  18. For two voices the effect can be represented as:
  19. result = sample(0) + sample(dt)
  20. where sample(0) represents the current sample and sample(dt) is
  21. the sample in the delay line from dt milliseconds ago.
  22. FLANGE EFFECT
  23. This combines only one sample from the delay line but the position
  24. of that sample varies sinusoidally.
  25. In this case the effect can be represented as:
  26. result = sample(0) + sample(dt + depth*sin(2*PI*Fe))
  27. The value of the sine function is always a number from -1 to +1
  28. and so the result of depth*(sinFe) is always a number from
  29. -depth to +depth. Thus, the delayed sample will be selected from
  30. the range (dt-depth) to (dt+depth). This selection will vary
  31. at whatever rate is specified as the frequency of the effect Fe.
  32. I have found that rates of .25 seconds or less are best, otherwise
  33. the effect is very "watery" and in extreme cases the sound is
  34. even off-key!
  35. When trying out these effects with recorded music as input, it is
  36. best to use those where there is a solo voice which is clearly
  37. "in front" of the accompaninemnt. Tracks which already contain
  38. flange or chorus effects don't work well.
  39. */