Extra "ports" of juce-based plugins using the distrho build system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

205 lines
6.2KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>protoplug: Module stereoFx</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <a href="http://osar.fr">
  20. <div class=osarlogo> </div>
  21. </a>
  22. <br/>
  23. <a href="http://osar.fr/protoplug">
  24. <h1>protoplug</h1>
  25. </a>
  26. <span class="proto_subtitle">Lua API reference</span>
  27. <ul>
  28. <li><a href="../index.html">Index</a></li>
  29. </ul>
  30. <h2>Contents</h2>
  31. <ul>
  32. <li><a href="#Functions">Functions</a></li>
  33. <li><a href="#Class_stereoFx_Channel">Class stereoFx.Channel </a></li>
  34. </ul>
  35. <h2>Modules</h2>
  36. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  37. <li><a href="../modules/plugin.html">plugin</a></li>
  38. <li><a href="../modules/script.html">script</a></li>
  39. <li><a href="../modules/midi.html">midi</a></li>
  40. <li><a href="../modules/gui.html">gui</a></li>
  41. <li><a href="../modules/polyGen.html">polyGen</a></li>
  42. <li><strong>stereoFx</strong></li>
  43. </ul>
  44. <h2>Classes</h2>
  45. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  46. <li><a href="../classes/juce.AffineTransform.html">juce.AffineTransform</a></li>
  47. <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
  48. <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
  49. <li><a href="../classes/juce.ColourGradient.html">juce.ColourGradient</a></li>
  50. <li><a href="../classes/juce.Component.html">juce.Component</a></li>
  51. <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
  52. <li><a href="../classes/juce.Font.html">juce.Font</a></li>
  53. <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
  54. <li><a href="../classes/juce.Image.html">juce.Image</a></li>
  55. <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
  56. <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
  57. <li><a href="../classes/juce.Line.html">juce.Line</a></li>
  58. <li><a href="../classes/juce.Path.html">juce.Path</a></li>
  59. <li><a href="../classes/juce.Point.html">juce.Point</a></li>
  60. <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
  61. <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
  62. <li><a href="../classes/juce.Rectangle_int.html">juce.Rectangle_int</a></li>
  63. </ul>
  64. <h2>Examples</h2>
  65. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  66. <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
  67. <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
  68. <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
  69. <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
  70. <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
  71. </ul>
  72. </div>
  73. <div id="content">
  74. <h1>Module <code>stereoFx</code></h1>
  75. <p>Use this module to create a stereo effect.</p>
  76. <p>
  77. <p> Example at <a href="../examples/classic-filter.lua.html#">classic-filter.lua</a>.</p>
  78. <p> This module acts as a layer that conceals the <a href="../modules/plugin.html#processBlock">plugin.processBlock</a> function,
  79. manages stereo channels, and exposes the <a href="../modules/stereoFx.html#stereoFx.Channel">stereoFx.Channel</a> prototype for you
  80. define per-channel audio processing. Initialize it by calling <a href="../modules/stereoFx.html#init">stereoFx.init</a> .</p>
  81. <p> The <a href="../modules/stereoFx.html#">stereoFx</a> global is available to every protoplug script after including the
  82. main protoplug header :</p>
  83. <pre><code>require "include/protoplug"
  84. </code></pre>
  85. </p>
  86. <h2><a href="#Functions">Functions</a></h2>
  87. <table class="function_list">
  88. <tr>
  89. <td class="name" nowrap><a href="#init"><span class="proto_prefix">stereoFx</span>.init ()</a></td>
  90. <td class="summary">Set up channels.</td>
  91. </tr>
  92. </table>
  93. <h2><a href="#Class_stereoFx_Channel">Class stereoFx.Channel </a></h2>
  94. <table class="function_list">
  95. <tr>
  96. <td class="name" nowrap><a href="#Channel:processBlock"><span class="proto_prefix">stereoFx.Channel</span>:processBlock (samples, smax)</a></td>
  97. <td class="summary">Override to process a channel's audio block.</td>
  98. </tr>
  99. <tr>
  100. <td class="name" nowrap><a href="#Channel:init"><span class="proto_prefix">stereoFx.Channel</span>:init ()</a></td>
  101. <td class="summary">Override to handle initialisation.</td>
  102. </tr>
  103. </table>
  104. <br/>
  105. <br/>
  106. <h2><a name="Functions"></a>Functions</h2>
  107. <dl class="function">
  108. <dt>
  109. <a name = "init"></a>
  110. <strong><span class="proto_prefix">stereoFx</span>.init ()</strong>
  111. </dt>
  112. <dd>
  113. Set up channels.
  114. This function must be called by any script that wishes to use this module.
  115. </ul>
  116. </dd>
  117. </dl>
  118. <h2><a name="Class_stereoFx_Channel"></a>Class stereoFx.Channel </h2>
  119. This class represents a channel (ie. left or right).
  120. <br><br>
  121. <dl class="function">
  122. <dt>
  123. <a name = "Channel:processBlock"></a>
  124. <strong><span class="proto_prefix">stereoFx.Channel</span>:processBlock (samples, smax)</strong>
  125. </dt>
  126. <dd>
  127. Override to process a channel's audio block.
  128. Define the audio processing of a single channel in this function.
  129. </ul>
  130. <h3>Parameters:</h3>
  131. <ul>
  132. <li><span class="parameter">samples</span>
  133. a C float* serving as input and output
  134. </li>
  135. <li><span class="parameter">smax</span>
  136. the maximum sample index (nSamples - 1)
  137. </li>
  138. </ul>
  139. </dd>
  140. <dt>
  141. <a name = "Channel:init"></a>
  142. <strong><span class="proto_prefix">stereoFx.Channel</span>:init ()</strong>
  143. </dt>
  144. <dd>
  145. Override to handle initialisation.
  146. Override this method to perform initialisation tasks on each channel,
  147. for example to create any per-channel fields.
  148. </ul>
  149. </dd>
  150. </dl>
  151. </div> <!-- id="content" -->
  152. </div> <!-- id="main" -->
  153. <div id="about">
  154. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
  155. </div> <!-- id="about" -->
  156. </div> <!-- id="container" -->
  157. </body>
  158. </html>