<div dir="ltr">why not just make a half speed phasor~, retrigger the phase to zero with a normal metro, and then multiply the output by 2?<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, May 9, 2013 at 10:09 AM, Ivica Ico Bukvic <span dir="ltr">&lt;<a href="mailto:ico@vt.edu" target="_blank">ico@vt.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Assuming you want a pulse in non-signal domain, you could use disis_phasor~ (see <a href="http://l2ork.music.vt.edu/main/?page_id=56" target="_blank">http://l2ork.music.vt.edu/main/?page_id=56</a> for download links) which outputs a bang every time ramp is crossed. This is only accurate to the nearest sigvs size (by default 64 bytes) as there is no guarantee that you will get a msg interrupt exactly at the time ramp has crossed.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">HTH<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:pd-list-bounces@iem.at" target="_blank">pd-list-bounces@iem.at</a> [mailto:<a href="mailto:pd-list-bounces@iem.at" target="_blank">pd-list-bounces@iem.at</a>] <b>On Behalf Of </b>Ed Kelly<br>
<b>Sent:</b> Wednesday, May 08, 2013 5:00 PM<br><b>To:</b> PD List; pddev<br><b>Subject:</b> [PD] Rewriting a unified phasor / metro object for reading tables<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><div><div><p class="MsoNormal" style="background:white"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Hi Lists(s),<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I&#39;m rewriting phasor~ and unifying it with metro so that a pulse is generated from the boundaries of each ramp - so that bars of music can be read using tabread~ objects with a sample-accurate metro.<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I&#39;m sure someone will say this can already be done, but it has to be dropped into the Ninja Jamm patch, so there isn&#39;t really time to rewrite the rest of the patch.<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">I don&#39;t fully understand the way phasor~ wraps, but I have the object firing out bar numbers correctly. I&#39;m putting clocks in for 16ths and 24ths of the beat, initiated on each wrap. I need to minimise CPU, so what I want to know is this:<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Does phasor~ always start from 0 and go to 1, i.e. is there always a signal value of 0 at the start of the ramp and a signal value of 1 at the end? As I write this, my common sense tells me it should be &quot;yes&quot; but I want to make sure. I suppose I should just try it really...<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Cheers,<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Ed<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:white"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> <u></u><u></u></span></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Ninja Jamm - a revolutionary new musix remix app from Ninja Tune and Seeper, for iPhone and iPad<br>
<a href="http://www.ninjajamm.com/" target="_blank">http://www.ninjajamm.com/</a><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:white"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Gemnotes-0.2: Live music notation for Pure Data, now with dynamics!<br>
<a href="http://sharktracks.co.uk/" target="_blank">http://sharktracks.co.uk/</a> <u></u><u></u></span></p></div></div></div></div></div></div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>