<?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[append &#x27;;&#x27; to a float]]></title><description><![CDATA[<p>Hi,<br />
I am a newb. I want to print a bunch of different levels (eg vol, mod, etc) from iterations of the same abstraction, each with its own creation arg, so that I can save the whole lot as a message that can be used a preset in a separate file. The levels are stored in floats, then when I press the 'print' bang, all those floats are output to different 'print' objects, each specifying the object in question (for example, the mod level on the fifth iteration will say '5mod: 2.5'). This gets saved along with all other data points in a message box that is then received by the same object (eg 'r $1mod:' , which for the fifth iteration will be received as 5mod:). This works great, except each time I want to create a new preset, I press print and then I have to add the semicolon to each individual message in the long chain. It gets tiresome. I'm wondering if there's some easier way where the 'print' could show the following: '5mod: 2.5;'<br />
You can't just type 'print $1mod ;' because it then outputs the following: '5mod /;: 2.5'. It seems like 'print' always keeps the float last. Idk what the '/' means in this context.<br />
This is all some preset-saving hack I came up with and surely there is also a better way to do this in general which I ought to learn. So far it's worked for me. But I keep building bigger things that require more semicolons to save presets and I get tired. For example, a 16 step sequencer, with a lot of different data for each beat iteration. So help on this question would be much appreciated!<br />
Thanks!!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13584/append-to-a-float</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 14:55:11 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13584.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Aug 2021 16:24:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to append &#x27;;&#x27; to a float on Thu, 05 Aug 2021 16:24:14 GMT]]></title><description><![CDATA[<p>Hi,<br />
I am a newb. I want to print a bunch of different levels (eg vol, mod, etc) from iterations of the same abstraction, each with its own creation arg, so that I can save the whole lot as a message that can be used a preset in a separate file. The levels are stored in floats, then when I press the 'print' bang, all those floats are output to different 'print' objects, each specifying the object in question (for example, the mod level on the fifth iteration will say '5mod: 2.5'). This gets saved along with all other data points in a message box that is then received by the same object (eg 'r $1mod:' , which for the fifth iteration will be received as 5mod:). This works great, except each time I want to create a new preset, I press print and then I have to add the semicolon to each individual message in the long chain. It gets tiresome. I'm wondering if there's some easier way where the 'print' could show the following: '5mod: 2.5;'<br />
You can't just type 'print $1mod ;' because it then outputs the following: '5mod /;: 2.5'. It seems like 'print' always keeps the float last. Idk what the '/' means in this context.<br />
This is all some preset-saving hack I came up with and surely there is also a better way to do this in general which I ought to learn. So far it's worked for me. But I keep building bigger things that require more semicolons to save presets and I get tired. For example, a 16 step sequencer, with a lot of different data for each beat iteration. So help on this question would be much appreciated!<br />
Thanks!!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13584/append-to-a-float</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13584/append-to-a-float</guid><dc:creator><![CDATA[cheezmaker]]></dc:creator><pubDate>Thu, 05 Aug 2021 16:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to append &#x27;;&#x27; to a float on Thu, 05 Aug 2021 18:50:04 GMT]]></title><description><![CDATA[<p>@wmullaney Yes, you probably should use [text] to save your presets.<br />
But anyway....... you can add a semicolon to a message by sending the message [addsemi( into the message.<br />
You can also add the semicolon after the float by prepending &quot;add&quot; to the &quot;2.5&quot;<br />
I.e........<br />
[2.5(<br />
[add $1(<br />
.... gives.....<br />
[2.5;(<br />
David.<br />
<img src="/uploads/files/1628188707506-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13584/append-to-a-float/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13584/append-to-a-float/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 05 Aug 2021 18:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to append &#x27;;&#x27; to a float on Fri, 06 Aug 2021 05:39:02 GMT]]></title><description><![CDATA[<p>@wmullaney I also think that using [text] is the best option for presets.</p>
<p>Here is a preset system for abstractions: <a href="/uploads/files/1628228310101-preset-system.zip">preset-system.zip</a> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>It uses $0 as a second argument, so the abstractions can communicate with the main patch using its $0-value. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13584/append-to-a-float/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13584/append-to-a-float/3</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Fri, 06 Aug 2021 05:39:02 GMT</pubDate></item><item><title><![CDATA[Reply to append &#x27;;&#x27; to a float on Fri, 06 Aug 2021 08:33:45 GMT]]></title><description><![CDATA[<p>Here a version where the abstractions handle the presets all by themselves, using [savestate].: <a href="/uploads/files/1628230809316-preset-system2.zip">preset-system2.zip</a>  <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>This doesn't use the first argument anymore. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
<p>But i think the approach using one centralized [text] is more flexible.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13584/append-to-a-float/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13584/append-to-a-float/4</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Fri, 06 Aug 2021 08:33:45 GMT</pubDate></item></channel></rss>