<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">There are also ways of noticing when a connection is attached to the inlet and that the connection is a signal, and you can reset phase at those times instead.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 25, 2018 at 3:52 PM Matt Barber <<a href="mailto:brbrofsvl@gmail.com">brbrofsvl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Only good way to do this is to reset phase when the dsp graph changes. [cyclone/cycle~] does this, in fact:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default">static void cycle_dsp(t_cycle *x, t_signal **sp)</div><div class="gmail_default"> cycle_gettable(x);</div><div class="gmail_default"> x->x_conv = 1.0 / sp[0]->s_sr;</div><div class="gmail_default"> cycle_phase_reset(x); // <------------------------------RESET PHASE</div><div class="gmail_default"> dsp_add(cycle_perform, 5, x, sp[0]->s_n,</div><div class="gmail_default"><span style="white-space:pre-wrap"> </span> sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec);</div><div class="gmail_default">}</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 25, 2018 at 3:40 PM Jonathan Wilkes <<a href="mailto:jon.w.wilkes@gmail.com" target="_blank">jon.w.wilkes@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br>
<br>
Check out the following patch (attached):<br>
<br>
1. Click [bang(. You'll get a block of ones.<br>
<br>
2. Disconnect the output of [sig~ 0] from the input of [osc~ 440].<br>
<br>
3. Click the [bang( again. You'll get output based on the floatarg 440.<br>
<br>
4. Now re-connect [sig~ 0] to [osc~ 440]. You'll get indeterministic output.<br>
<br>
Is there any workaround to make the output deterministic in this case?<br>
<br>
-Jonathan<br>
_______________________________________________<br>
L2Ork-dev mailing list<br>
<a href="mailto:L2Ork-dev@disis.music.vt.edu" target="_blank">L2Ork-dev@disis.music.vt.edu</a><br>
<a href="https://disis.music.vt.edu/listinfo/l2ork-dev" rel="noreferrer" target="_blank">https://disis.music.vt.edu/listinfo/l2ork-dev</a></blockquote></div>
</blockquote></div>