Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

40 linhas
1.8KB

  1. <h3>Summary</h3>
  2. <p>Combine up to 4 audio signals together, each with adjustable gain.
  3. All channels support signal attenuation or amplification.</p>
  4. <h3>Audio Connections</h3>
  5. <table class=doc align=center cellpadding=3>
  6. <tr class=top><th>Port</th><th>Purpose</th></tr>
  7. <tr class=odd><td align=center>In 0</td><td>Input signal #1</td></tr>
  8. <tr class=odd><td align=center>In 1</td><td>Input signal #2</td></tr>
  9. <tr class=odd><td align=center>In 2</td><td>Input signal #3</td></tr>
  10. <tr class=odd><td align=center>In 3</td><td>Input signal #4</td></tr>
  11. <tr class=odd><td align=center>Out 0</td><td>Sum of all inputs</td></tr>
  12. </table>
  13. <h3>Functions</h3>
  14. <p class=func><span class=keyword>gain</span>(channel, level);</p>
  15. <p class=desc>Adjust the amplification or attenuation. "channel" must
  16. be 0 to 3. "level" may be any floating point number from 0 to 32767.
  17. 1.0 passes the signal through directly. Level of 0 shuts the channel
  18. off completely. Between 0 to 1.0 attenuates the signal, and above
  19. 1.0 amplifies it. All 4 channels have separate settings.
  20. </p>
  21. <h3>Examples</h3>
  22. <p class=exam>File &gt; Examples &gt; Audio &gt; SamplePlayer
  23. </p>
  24. <p class=exam>File &gt; Examples &gt; Audio &gt; Synthesis &gt; PlaySynthMusic
  25. </p>
  26. <p class=exam>File &gt; Examples &gt; Audio &gt; Analysis &gt; SpectrumAnalyzerBasic
  27. </p>
  28. <p class=exam>File &gt; Examples &gt; Audio &gt; Analysis &gt; DialTone_Serial
  29. </p>
  30. <p class=exam>File &gt; Examples &gt; Audio &gt; MemoryAndCpuUsage
  31. </p>
  32. <h3>Notes</h3>
  33. <p>Signal clipping can occur when any channel has gain greater than 1.0,
  34. or when multiple signals add together to greater than 1.0.</p>
  35. <p>More than 4 channels may be combined by connecting multiple mixers
  36. in tandem. For example, a 16 channel mixer may be built using 5
  37. mixers, where the fifth mixer combines the outputs of the first 4.
  38. </p>