<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Is there any way to use generator and SineWave as input to some FX like pitch shift and filter? Also I need to send two signals out of the application and they need to be separated either by panning or output selection (i have 4 outs :: NI Komplete Audio 6).
 &nbsp;What would be the best way to accomplish this. &nbsp;I have been playing around with this for setting sinewave &nbsp;generator as an input:
<div><br>
</div>
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
&nbsp;<span style="color: #1b39f5">for</span> ( <span style="color: #1b39f5">unsigned</span>
<span style="color: #1b39f5">int</span> i=0; i&lt;nBufferFrames; i&#43;&#43; ) {</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
<span class="Apple-tab-span" style="white-space:pre"></span>*outputSamples&#43;&#43; =</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
<span class="Apple-tab-span" style="white-space:pre"></span>(1.0 - data-&gt;pan) * data-&gt;pitshift-&gt;tick( data-&gt;pitshift-&gt;tick</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
<span class="Apple-tab-span" style="white-space:pre"></span>( (*inputSamples&#43;&#43; =sine-&gt;tick()) ) );</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
<span class="Apple-tab-span" style="white-space:pre"></span>*outputSamples&#43;&#43; =</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
<span class="Apple-tab-span" style="white-space:pre"></span>data-&gt;pan * data-&gt;pitshift-&gt;tick( data-&gt;pitshift-&gt;tick</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9.5px/normal Helvetica; ">
<span class="Apple-tab-span" style="white-space:pre"></span>( (*inputSamples&#43;&#43; =sine-&gt;tick()) ) );</div>
<div>but it breaks at the return last frame in Sinewave.h&nbsp;</div>
<div><br>
</div>
<div>One Last Question, i am eventually going to need to implement this in a gui that is currently in OpenGL C&#43;&#43;, tips or tricks would be greatly appreciated</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>-Alex</div>
</div>
</body>
</html>