<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Phase shift of tone and output to audio interface]]></title><description><![CDATA[<p>Hi,</p>
<p>I've had on the forum to find similar problems and although they exist I've struggled to implement what posts have suggested. This is mostly because i am new to Pure Data and finding it hard to understand the language used and the help and tutorials don't seem to help much either.</p>
<p>I'm looking to produce a script that will take a single tone (with frequency variability) and split it into two channels, one of which will allow variation of the amplitude and phase. These two signals then need to be outputed to my audio interface which will allow two channel output.</p>
<p>The variations in phase and amplitude need to occur in realtime which is why i've been guided towards using pure data, otherwise i would have done it in MatLab. An easy to use GUI is needed for test subjects to use but i need to also be able to record the values for phase and amplitude though.</p>
<p>I greatly appreciate any help you can give for any parts of this problem.</p>
<p>Thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 15:14:52 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/7950.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Dec 2013 16:49:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Phase shift of tone and output to audio interface on Mon, 23 Dec 2013 16:49:21 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I've had on the forum to find similar problems and although they exist I've struggled to implement what posts have suggested. This is mostly because i am new to Pure Data and finding it hard to understand the language used and the help and tutorials don't seem to help much either.</p>
<p>I'm looking to produce a script that will take a single tone (with frequency variability) and split it into two channels, one of which will allow variation of the amplitude and phase. These two signals then need to be outputed to my audio interface which will allow two channel output.</p>
<p>The variations in phase and amplitude need to occur in realtime which is why i've been guided towards using pure data, otherwise i would have done it in MatLab. An easy to use GUI is needed for test subjects to use but i need to also be able to record the values for phase and amplitude though.</p>
<p>I greatly appreciate any help you can give for any parts of this problem.</p>
<p>Thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface</guid><dc:creator><![CDATA[salfordranger]]></dc:creator><pubDate>Mon, 23 Dec 2013 16:49:21 GMT</pubDate></item><item><title><![CDATA[Reply to Phase shift of tone and output to audio interface on Mon, 23 Dec 2013 21:28:21 GMT]]></title><description><![CDATA[<p>so you want to take the output from your tone wherever that is, take one signal into a *~ and a phase shifter (which could be accomplished by writing and reading to a variable delay line (delread~ and vd~) or another filter allpass maybe. make a dac~ and then take another cord from the outlet of your tone and plug it in to one of the inlets. take the output from the phase shifter and *~ into the other inlet and they will be sent to your audio interface</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/2</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Mon, 23 Dec 2013 21:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to Phase shift of tone and output to audio interface on Tue, 24 Dec 2013 09:35:15 GMT]]></title><description><![CDATA[<p>Hi, thanks for the reply.</p>
<p>I should have been more clear that the tone would be generated from pure data too rather than from a separate device or program.</p>
<p>Although a delay is a way of producing a phase shift it makes calculating the phase more difficult when i will be switching to different frequencies. Is it possible to phase shift from the signal directly rather than introducing a delay line?</p>
<p>Also how do you map the dac channels to audio devices?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/3</guid><dc:creator><![CDATA[salfordranger]]></dc:creator><pubDate>Tue, 24 Dec 2013 09:35:15 GMT</pubDate></item><item><title><![CDATA[Reply to Phase shift of tone and output to audio interface on Tue, 24 Dec 2013 15:24:17 GMT]]></title><description><![CDATA[<p>[phasor~]<br />
|<br />
[cos~]</p>
<p>outputs a (co)sine wave</p>
<p>any constant number added to the phasor~ output will change the phase of that sine wave.</p>
<p>so,</p>
<p>[phasor~]<br />
|<br />
[+~0.25]<br />
|<br />
[cos~]</p>
<p>will be 90 degrees out of phase with that original wave.</p>
<p>[phasor~]<br />
|<br />
[+~ 0.5]<br />
|<br />
[cos~]</p>
<p>will be 180 degrees out of phase,</p>
<p>etc...</p>
<p>to vary the amplitude, just use [*~]</p>
<p>*** note: you should use a single phasor~ and split the output signal, like this:</p>
<p>[phasor~]<br />
|\<br />
| [+~ 0.5]<br />
| |<br />
| [cos~]<br />
|<br />
[cos~]</p>
<p>...that will ensure that both your waves keep the same phase relationship.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/4</guid><dc:creator><![CDATA[mod]]></dc:creator><pubDate>Tue, 24 Dec 2013 15:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to Phase shift of tone and output to audio interface on Thu, 26 Dec 2013 11:52:04 GMT]]></title><description><![CDATA[<p>thanks that's really helpful. The scripts now working and I've tried a few tests.</p>
<p>I've found that i need an extra output channel though so the test will work more effectively, however my audio interface only does 2 channel rather than two stereo which i thought it would do to begin with.</p>
<p>Is it possible to use both the laptop's audio output as well as the audio interface?</p>
<p>I looked through the audio device menu and it gives the option of using multiple devices for audio out but when i come to selecting the number of channels for each device it gives me an warning or error saying,<br />
&quot;separate audio device choice not supported\; using sequential devices.&quot;<br />
Does it not allow me to or am i setting it up wrong?</p>
<p>Thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/7950/phase-shift-of-tone-and-output-to-audio-interface/5</guid><dc:creator><![CDATA[salfordranger]]></dc:creator><pubDate>Thu, 26 Dec 2013 11:52:04 GMT</pubDate></item></channel></rss>