Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

35 lines
1.4KB

  1. <h3>Summary</h3>
  2. <p>Gradually increase or decrease audio level.</p>
  3. <h3>Audio Connections</h3>
  4. <table class=doc align=center cellpadding=3>
  5. <tr class=top><th>Port</th><th>Purpose</th></tr>
  6. <tr class=odd><td align=center>In 0</td><td>Signal Input</td></tr>
  7. <tr class=odd><td align=center>Out 0</td><td>Signal Output</td></tr>
  8. </table>
  9. <h3>Functions</h3>
  10. <p class=func><span class=keyword>fadeIn</span>(milliseconds);</p>
  11. <p class=desc>Begin increasing the audio level, to reach 1.0 (input passed
  12. directly to the output) after "milliseconds" time.
  13. </p>
  14. <p class=func><span class=keyword>fadeOut</span>(milliseconds);</p>
  15. <p class=desc>Begin decreasing the audio level, to reach 0 (no output)
  16. after "milliseconds" time.
  17. </p>
  18. <!--<h3>Examples</h3>
  19. <p class=exam>File &gt; Examples &gt; Audio &gt;
  20. </p>-->
  21. <h3>Notes</h3>
  22. <p>Cross fading can be built with 2 fade objects fed into a mixer.
  23. When one fade object is off (fully faded out) and the other on
  24. (fully faded in), if both are started at the same moment for the
  25. same time duration, their signal gains always add to 1.0. This
  26. allows 2 fade objects to work together for a smooth transition
  27. between a pair of signals.
  28. </p>
  29. <p><a href="http://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html" target="_blank">AudioNoInterrupts()</a>
  30. should be used when changing
  31. settings on multiple objects, so all changes always take effect
  32. at the same moment.
  33. </p>