<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">Wow!!  That one line did it thanks so much. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 27, 2019 at 10:09 PM Charles Z Henry <<a href="mailto:czhenry@gmail.com">czhenry@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> fexpr~ ($y1+1)*($y1<2);<br>
$x1*($y1==0)+$x2*($y1==1)+$x3*($y1==2)<br>
<br>
might have a *lot* of high frequency content.<br>
<br>
you could replace the counter in the above fexpr~ with a slower<br>
counter and it would have a coarser effect.  That would reduce the<br>
pitch of the noise. If the counter got slow enough, it would sound<br>
more like abrubt panning between the signals instead of mixing the<br>
signals and adding noise.<br>
<br>
fexpr~ ($y1+$f4)-3*($y1+$f4>=3);<br>
$x1*($y1<1)+$x2*($y1>=1&&$y1<2)+$x3*($y1>=2)<br>
<br>
That adds a $f4 inlet, set to a float less than 1 to slow down the<br>
counter.  It will pitch the noise down into a more usable range.  At<br>
around 0.01-0.1, you'd start to hear some tones pop out (80-800 Hz).<br>
Probably at around 0.0001, it would start to sound like an arpeggio.<br>
<br>
Replace the counter with a random walk with drift on [0,3] might also<br>
be good.  It would smear out the high frequency noise.  It would give<br>
you 2 parameters to control the effect, speed and noise amplitude.<br>
<br>
Or you could try to add some cross-fading with another parameter that<br>
would cut down on the clicks.  I don't know what you had in mind for<br>
this effect<br>
<br>
Chuck<br>
<br>
<br>
<br>
<br>
On Wed, Mar 27, 2019 at 5:04 PM Charles Z Henry <<a href="mailto:czhenry@gmail.com" target="_blank">czhenry@gmail.com</a>> wrote:<br>
><br>
> there's another option you're missing which doesn't involve storage<br>
><br>
> When you do your interleaving in a literal way, think of it as the sum<br>
> of 3 signals:<br>
> A,0,0,B,0,0,C,0,0,...<br>
> 0,1,0,0,2,0,0,3,0,...<br>
> 0,0,!,0,0,@,0,0,#,...<br>
><br>
> Those signals are versions of the original, except pitched down by<br>
> factor of 3, with an additional bit of harmonic content, and then<br>
> added together.<br>
><br>
> If you didn't want to pitch down the signals, and you know that your<br>
> osc~ frequencies are low (< 4kHz should be enough)<br>
> you could just multiply by<br>
> 1,0,0,1,0,0,1,0,0<br>
> 0,1,0,0,1,0,0,1,0<br>
> 0,0,1,0,0,1,0,0,1<br>
><br>
> and add them up.  If you DID want them pitched down by factor 3, you<br>
> could adjust your inputs to osc~ to freq/3<br>
><br>
> And you can do it with a single fexpr~<br>
><br>
> [ fexpr~ ($y1+1)*($y1<2); $x1*($y1==0)+$x2*($y1==1)+$x3*($y1==2) ]<br>
><br>
> That object takes your 3 input signals $x1, $x2, $x3, makes a counter<br>
> in the first output $y1 (0,1,2,0,1,2,...) and the 2nd output $y2 has<br>
> your interleaved signal ($x1[-1], $x2[0], $x3[1], $x1[1], ...)<br>
><br>
> I'd say, give it a try, it's a nice idea, but the high frequencies<br>
> you're going to introduce may be harsh and in the range of 8kHz and<br>
> up... and the result in the low frequency range won't be much<br>
> different from simply adding them up.<br>
><br>
> Chuck<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>-- <br>|======================================================|<br>|<a href="https://stillpointx.wordpress.com/research/modulated-plasma/" target="_blank">https://stillpointx.wordpress.com/research/modulated-plasma/</a>                           <br>|======================================================|<br>"Knowledge may be the Key"<br>"But wisdom unlocks the door"<br>"Absolute Power demands absolutely nothing"<br><br>As the old maxim has it, you need find only one white crow to disprove the rule that all crows are black<br><br>"The bourgeois today burns as heretics and hangs as criminals those to whom he erects monuments tomorrow" ('Steppenwolf')</div><div><br></div><div>"There are two modes of being those in bliss and those seeking bliss,<br> may each step you take and each thought you make be made in a mindful and blissful state."<br></div><div>|======================================================|</div></div></div></div></div></div></div>