# [PD] Appending two signals together to create a third

Frank Barknecht fbar at footils.org
Sat Sep 3 11:16:28 CEST 2011

```On Wed, Aug 31, 2011 at 11:51:34PM -1000, Rick T wrote:
> I have two signals Signal B and Signal C that I would like to append, which
> would create a joined signal called Signal D.  I can create Signal B and
> Signal C but the questions I have is:
>
> I created a image that may help explain it better
> http://dl.dropbox.com/u/6576402/questions/flowchart_joined2.jpg
>
> 1) How do I append one signal onto the end of another. (see image labelled
> 2)
> 2) How can I vary Signal D's Frequency, Amplitude, and Phase? (See image
> labelled 3)

Attached are two example approaches to this problem. Both involve a
phasor signal that is split into two phasors which are out of phase by
half a period using [-~ 0.5] and [wrap~]. You can use these two phasors
are in tables, see combine-tables.pd

If your source signals are not in tables, combine-signals.pd shows a
crude switching between two signals using square waves out of phase with
each other. You make these square waves from a phasor wrapped out of
phase with itself just like above. (Of course you can also just use one
square wave which you multiply by -1 and shift up by [+~ 1] after creation.)

Ciao
--
Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combine-signals.pd
Type: application/puredata
Size: 2224 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110903/d43ca07b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combine-tables.pd
Type: application/puredata
Size: 2298 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110903/d43ca07b/attachment-0001.bin>
```