<?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[Obtaining Minimum Number and holding]]></title><description><![CDATA[<p>Trying to attach a sub oscillator to a 6 note polyphonic synth.</p>
<p>cannot get the sub osc (monophonic in a subpatch) to recognise the lowest note that is being played.</p>
<p>i have tried a lot of combinations of moses, spigot, min, max, minmax. but cannot get it too work.</p>
<p>i can get it too recognise lets say note 55, and obviously hold this note if note 62 is pressed after - ie no voice stealing.</p>
<p>but i cannot get it to change to 62 if note 55 is turned to note off. ie it will not play another note till a key is depressed again.</p>
<p>any help on this?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 00:04:30 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/4940.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Mar 2011 18:39:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Sun, 27 Mar 2011 18:39:37 GMT]]></title><description><![CDATA[<p>Trying to attach a sub oscillator to a 6 note polyphonic synth.</p>
<p>cannot get the sub osc (monophonic in a subpatch) to recognise the lowest note that is being played.</p>
<p>i have tried a lot of combinations of moses, spigot, min, max, minmax. but cannot get it too work.</p>
<p>i can get it too recognise lets say note 55, and obviously hold this note if note 62 is pressed after - ie no voice stealing.</p>
<p>but i cannot get it to change to 62 if note 55 is turned to note off. ie it will not play another note till a key is depressed again.</p>
<p>any help on this?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding</guid><dc:creator><![CDATA[umma08]]></dc:creator><pubDate>Sun, 27 Mar 2011 18:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Sun, 27 Mar 2011 20:35:47 GMT]]></title><description><![CDATA[<p>i'm at work, so i can't try out, if it works, but you could try to store the midi note-values in an array (multiplied by result of velocity values connected to [&gt; 0]), indexed by the voice number from [poly] and use [Uzi] and [tabread] to serialize the values in the array, so that you can find the samllest number.</p>
<p>[notein]<br />
| |<br />
[poly 12 1]<br />
| | \<br />
| [expr $f1*($f2&gt;0)] &lt;------- note value is zero in case of note off<br />
\ /<br />
X<br />
/ \<br />
[tabwrite array1] &lt;------- write to the array, voice # is index</p>
<p>to check the values for the smallest one:</p>
<p>[bang( &lt;----- should be banged by a [poly] out,<br />
| immediately after structure above (t b f)<br />
|<br />
[t b b b]<br />
| | |<br />
| | [arraysize array1] &lt;---- send arraysize to uzi, so it counts<br />
| | | from 1 to arraysize<br />
| | |<br />
| [Uzi]<br />
| |<br />
| [- 1] &lt;-------- begin counting at zero to arraysize-1<br />
| |<br />
| [tabread array1] &lt;---- read array1 at index<br />
| |<br />
| [deny 0] &lt;--------filter note offs<br />
| |<br />
| [t f f f]<br />
| / X<br />
| | [&lt;] &lt;------compare with previous number<br />
| | | if smaller, let it pass spigot<br />
| [spigot]<br />
| |<br />
[float]<br />
|<br />
[nbx\ &lt;-- actual lowest number in the array</p>
<p>no guarantee that this works - as i said before, i'm at work and can't verify, what i tell you here. but this could give you an idea, how it could be done.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/2</guid><dc:creator><![CDATA[toxonic]]></dc:creator><pubDate>Sun, 27 Mar 2011 20:35:47 GMT</pubDate></item><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Sun, 27 Mar 2011 22:12:34 GMT]]></title><description><![CDATA[<p>that is an astounding response., and a credit to open source.</p>
<p>now i understand why i was having such a nightmare with it!</p>
<p>i will try tomorrow and let you know. but serious thankyou due.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/3</guid><dc:creator><![CDATA[umma08]]></dc:creator><pubDate>Sun, 27 Mar 2011 22:12:34 GMT</pubDate></item><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Mon, 28 Mar 2011 18:31:34 GMT]]></title><description><![CDATA[<p>sorry, i tried it at home, and it didn't work, like i hoped it would do.<br />
nevertheless, i found a similar way to get it work.<br />
have a look at the attachment.</p>
<p>edit: for some reason, i cannot upload files anymore, i get an error message...<br />
so, copy the following text in a textfile, and rename it to &quot;lowes_note.pd&quot; (or whatever..):</p>
<p>#N canvas 730 109 586 557 10;<br />
#X obj 107 32 notein;<br />
#X obj 115 87 poly 12 1;<br />
#X obj 115 174 tabwrite array1;<br />
#X obj 140 113 expr $f1*($f2&gt;0);<br />
#X obj 115 138 swap;<br />
#X obj 88 62 t b f;<br />
#X obj 88 197 t b b b;<br />
#X obj 127 221 arraysize array1;<br />
#X obj 107 252 Uzi;<br />
#X obj 122 298 tabread array1;<br />
#X obj 122 320 deny 0;<br />
#X obj 122 277 - 1;<br />
#X obj 122 341 list prepend;<br />
#X obj 155 366 l;<br />
#X obj 122 366 list-sort asc;<br />
#X msg 122 390 \$1;<br />
#X floatatom 122 418 5 0 0 0 - - -;<br />
#X obj 194 26 table array1;<br />
#X connect 0 0 5 0;<br />
#X connect 0 1 1 1;<br />
#X connect 1 0 4 0;<br />
#X connect 1 1 3 0;<br />
#X connect 1 2 3 1;<br />
#X connect 3 0 4 1;<br />
#X connect 4 0 2 0;<br />
#X connect 4 1 2 1;<br />
#X connect 5 0 6 0;<br />
#X connect 5 1 1 0;<br />
#X connect 6 0 12 1;<br />
#X connect 6 1 8 0;<br />
#X connect 6 2 7 0;<br />
#X connect 7 0 8 1;<br />
#X connect 8 2 11 0;<br />
#X connect 9 0 10 0;<br />
#X connect 10 0 12 0;<br />
#X connect 11 0 9 0;<br />
#X connect 12 0 13 0;<br />
#X connect 12 0 14 0;<br />
#X connect 13 0 12 1;<br />
#X connect 14 0 15 0;<br />
#X connect 15 0 16 0;</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/4</guid><dc:creator><![CDATA[toxonic]]></dc:creator><pubDate>Mon, 28 Mar 2011 18:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Mon, 28 Mar 2011 19:42:42 GMT]]></title><description><![CDATA[<p>hmm. the first way didn't work, as you and i both found out.</p>
<p>the second way, i havent a clue how to implement.</p>
<p>i assume make it an .rtf file first with text edit by copy and paste - then rename the rtf file to a .pd file, then open with pd?</p>
<p>that certainly doesn't work. stream of errros and a time window.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/5</guid><dc:creator><![CDATA[umma08]]></dc:creator><pubDate>Mon, 28 Mar 2011 19:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Mon, 28 Mar 2011 20:46:01 GMT]]></title><description><![CDATA[<p>on what os are you? you can do it with every simple text editor.<br />
on win, use the windows editor, copy the code inside the file and save it as &quot;lowest_note.txt&quot;<br />
after that, close the windows editor and rename the file to &quot;lowest_note.pd&quot;<br />
on linux you can use gedit or geany or whatever, it's the same procedure....</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/6</guid><dc:creator><![CDATA[toxonic]]></dc:creator><pubDate>Mon, 28 Mar 2011 20:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Obtaining Minimum Number and holding on Mon, 28 Mar 2011 21:31:46 GMT]]></title><description><![CDATA[<p>With TextEdit, it defaults to rich-text format. You need to change it to just plain text format before saving. Just press Command+Shift+T to do that. Then save it and change the extension to .pd in Finder.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4940/obtaining-minimum-number-and-holding/7</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Mon, 28 Mar 2011 21:31:46 GMT</pubDate></item></channel></rss>