<?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[How to smoothe out Arrays ?]]></title><description><![CDATA[<p>Hello everybody,</p>
<p>this is my first post and I am a Pure Data Beginner.</p>
<p>I would like to smoothe out an Array in a specific way.<br />
This for example:</p>
<p><img src="/uploads/files/1645465135755-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>This curve is meant to rise until the end. The Values arent supposed to fall at any point. Two same values after each others is also not ideal. In my original patch, I recorded a Pitchbend Automation with 16384 Values. X and Y. During recording, there happened a few midi values, which didn't fit to the rest.</p>
<p>I would like to smooth out the recorded curve, that it is never falling an rises up until the last x value. Like here in the manually corrected example.</p>
<p>I have an Idea, but as I am a beginner I am very frustrated at the moment. tried to get it to work three days.</p>
<p>My Idea was to create a loop, which goes through the array and stops at position &quot;n&quot;, if value x on position &quot;n&quot; is smaller or the same value like at position &quot;n-1&quot;. Then a counter starts at this position and counts until a x value is bigger than the x value at position &quot;n-1&quot;.<br />
If it is bigger, the counter adds the last number. After that the Patch looks what the difference is of Value x on position &quot;n-1&quot; and Value y on position &quot;n-1&quot; plus the Counter Value. After that it divides the difference into the Counter Number as the value &quot;Increment&quot;. Then the Patch goes back to Position &quot;n&quot; and adds up the P Value. Then it goes to position &quot;n+1&quot; and adds the Value &quot;n&quot; plus the P Value * 2 and so on, until it reaches the highest Point. After the whole loop beginns again, until it smoothes out the Courve completely.</p>
<p>How can I do that? Maybe there exists already something like that? A patch or so? I appreciate easy beginner tipps!</p>
<p>Thank you very much!! <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/13849/how-to-smoothe-out-arrays</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 23:17:30 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13849.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Feb 2022 18:00:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 18:00:23 GMT]]></title><description><![CDATA[<p>Hello everybody,</p>
<p>this is my first post and I am a Pure Data Beginner.</p>
<p>I would like to smoothe out an Array in a specific way.<br />
This for example:</p>
<p><img src="/uploads/files/1645465135755-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>This curve is meant to rise until the end. The Values arent supposed to fall at any point. Two same values after each others is also not ideal. In my original patch, I recorded a Pitchbend Automation with 16384 Values. X and Y. During recording, there happened a few midi values, which didn't fit to the rest.</p>
<p>I would like to smooth out the recorded curve, that it is never falling an rises up until the last x value. Like here in the manually corrected example.</p>
<p>I have an Idea, but as I am a beginner I am very frustrated at the moment. tried to get it to work three days.</p>
<p>My Idea was to create a loop, which goes through the array and stops at position &quot;n&quot;, if value x on position &quot;n&quot; is smaller or the same value like at position &quot;n-1&quot;. Then a counter starts at this position and counts until a x value is bigger than the x value at position &quot;n-1&quot;.<br />
If it is bigger, the counter adds the last number. After that the Patch looks what the difference is of Value x on position &quot;n-1&quot; and Value y on position &quot;n-1&quot; plus the Counter Value. After that it divides the difference into the Counter Number as the value &quot;Increment&quot;. Then the Patch goes back to Position &quot;n&quot; and adds up the P Value. Then it goes to position &quot;n+1&quot; and adds the Value &quot;n&quot; plus the P Value * 2 and so on, until it reaches the highest Point. After the whole loop beginns again, until it smoothes out the Courve completely.</p>
<p>How can I do that? Maybe there exists already something like that? A patch or so? I appreciate easy beginner tipps!</p>
<p>Thank you very much!! <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/13849/how-to-smoothe-out-arrays</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Mon, 21 Feb 2022 18:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 18:17:46 GMT]]></title><description><![CDATA[<p>Why don't you just take the first and last values and draw a line between them?<br />
Or sample a few more values if you want to approximate the original data a bit more?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/2</guid><dc:creator><![CDATA[nuromantix]]></dc:creator><pubDate>Mon, 21 Feb 2022 18:17:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 18:29:53 GMT]]></title><description><![CDATA[<p>Hey, thank you for your answer. I would like to be very exact, as I plan to do something like a mackie controller midi converter in pure data for my controller. To use it with other DAWs. And I found out, that my controller (Steinberg Houston) has a volume curve integrated, which is different from the original Mackie Universal Pro Controller. I already tried to draw the line manually, but the results are not good and „zittery“ and because every motorised fader has got a resolution of over 16000, it is too much for me to correct manually.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/3</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Mon, 21 Feb 2022 18:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 19:23:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> I have to go out....... so no time........ but someone else will join in and help you complete a working patch........ and it could be possible to use [line] and filter negative changes first.<br />
But.....<br />
It should be simple using [lop~]<br />
It is a low pass (audio) filter so it will suppress rapid changes in your data.<br />
Convert your incoming values to audio with [sig~] and feed it to [lop~]<br />
You might need to play with the cutoff frequency of [lop~] as it will depend on how fast your data is arriving.<br />
Then write the audio values to the array of the length of your data set.<br />
Using [metro] [snapshot] a counter and [tabwrite] might simplify that task........ and give you a data set of the correct length.<br />
David.<br />
<img src="/uploads/files/1645470807147-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 21 Feb 2022 19:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 19:39:18 GMT]]></title><description><![CDATA[<p>Hey David,</p>
<p>have fun, wherever you are going.</p>
<p>Thank you very much for this tip! I will try it out as soon as possible! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /> As a beginner I have to figure out some things. It can be very frustrating, but if I ever will get a useful finished result with my project, then I will upload my controller patch for the very small nieche community which maybe is also using an old Houston Controller. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":-D" alt=":-D" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/5</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Mon, 21 Feb 2022 19:39:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 21:02:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> In the smoothing algorithm you proposed, what would you want to happen if the last value in the raw curve wasn't the largest value?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/6</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Mon, 21 Feb 2022 21:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 21:26:13 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> hmm, I would say, the last value should be 1 bigger then the nex-to-last value. If that isn‘t possible, then it can be just the value of the next to last value.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/7</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Mon, 21 Feb 2022 21:26:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 22:10:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> I would start by making a patch that takes a lower and upper index such that curve[lower] &lt; curve[upper].  That patch would perform the interpolation you described to substitute for the negative portions of the raw curve, and if the indexes are adjacent then it would just output the adjacent curve values.  You can test that patch until you are convinced it's working.  Then your problem is mostly reduced to finding all the lower and upper index pairs, with one special case if the largest curve value isn't at the end of the input table.</p>
<p>The (lower, upper) pairs for your example are <code>(0,1) (1,4) (4,5) (5,6) (6,8) (8,9) and (9,10)</code></p>
<p>I tried using [lop~] but the problem is that its beginning state is always 0, which may or may not be what you want.  Also, lop~ may allow some negative slope to pass through, which I'm gathering you don't want.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/8</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Mon, 21 Feb 2022 22:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 21 Feb 2022 23:01:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> Try the vertical fader...... or the mouse if you have the cyclone/mousestate installed.<br />
<a href="/uploads/files/1645484361849-smoothe.zip">smoothe.zip</a><br />
File to open....... smooth_triple-help.pd.<br />
I have set alpha to 0.05 which seems to work well.<br />
It is far too complex probably for what you want to achieve but hey...... it was a good evening....... and if it gets the job done then that will be a result.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/9</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 21 Feb 2022 23:01:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 07:17:04 GMT]]></title><description><![CDATA[<p>Yes, thank you all! I also tried lop yesterday. Wasn‘t exactly, what I was searching for, but it is cool, that I have it now in my arsenal! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":-D" alt=":-D" /></p>
<p>I have to go to work now. (Germany; 8 am at the moment) Will try out your help in the evening.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/10</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Tue, 22 Feb 2022 07:17:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 09:55:07 GMT]]></title><description><![CDATA[<p>What happens if you move the fader up and down and up and down?</p>
<p>try the median</p>
<p><img src="/uploads/files/1645520707187-median.gif" alt="median.gif" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/1645521359604-medianate_1a.pd">medianate_1a.pd</a></p>
<p>You might insert a percentaged threshold.</p>
<p>(Or do the up/down trend-thing with a threshold (lowpass) of step counts ...)<br />
...<br />
<a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> said:</p>
<blockquote>
<p>I would like to be very exact, as I plan to do something like a mackie controller midi converter in pure data for my controller. To use it with other DAWs. And I found out, that my controller (Steinberg Houston) has a volume curve integrated, which is different from the original Mackie Universal Pro Controller.<br />
[...]</p>
</blockquote>
<p>This sounds like a different topic to me.</p>
<blockquote>
<p>motorfader</p>
</blockquote>
<p>Use the volume-curve as inverse transfer function to make it linear:</p>
<p>a) drive the motor fader with a linear counter, step by step<br />
b ) record the data curve<br />
c) subtract the curve from the linear line<br />
and<br />
d) use this as transfer function by subtracting the incoming data from that</p>
<p>i.e. remapping, subtract the error function</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/11</guid><dc:creator><![CDATA[lacuna]]></dc:creator><pubDate>Tue, 22 Feb 2022 09:55:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 18:36:52 GMT]]></title><description><![CDATA[<p>Hmm, still haven‘t got time to check with PD.</p>
<p>But what you wrote last:</p>
<p>I plan to do exactly what you wrote, If I understand it correctly.  Everytime I write the Array Values in PD, there are these mistakes. I record the Fadermovement automation of my DAW Cubase and send the Values to PD with a virtual midi port. I record the values extra slow and recorded the 14 bit values in half an hour. But everytime the line isn‘s smoothe. And I notice that than, if I move my motorized Fader with the Array, drawn in Pure Data. So I would like to smoothe out the line first, and than do the Hardware specific curve correction, you mentioned.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/12</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Tue, 22 Feb 2022 18:36:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 21:14:18 GMT]]></title><description><![CDATA[<p>Hard to tell without more details. I also have no experience with motorfader-hacks, but am interested.<br />
At a precision of 1600 values it is very likely some subtle hardware bouncing, resonance of motor, dirt, footsteps or similar ?<br />
How slow do you drive them? (now I read 1/2 h, makes about 1 second each step). (EDIT oh! 16000! 8/second!)<br />
I would maybe try to eleminate the discontinuity on the hardware / measurement side, instead of cheating.<br />
Do several measurement runs, instead of one shot only, and compare the data.<br />
Also try to drive it from Pd instead of Cubase. Very slowly. Calibrating. Remember, there is some latency, too.</p>
<p>Later in use, you might use some smoothing filter, too.</p>
<p>Anyway, this is what you where asking for, I think:<br />
new romantics )</p>
<p><a href="/uploads/files/1645564300115-align_up_down_6c.pd">align_up_down_6c.pd</a><br />
EDIT: updated again and again</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/13</guid><dc:creator><![CDATA[lacuna]]></dc:creator><pubDate>Tue, 22 Feb 2022 21:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 20:40:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lacuna">@lacuna</a> said:</p>
<blockquote>
<p>Hard to tell without more details. I also have no experience with motorfader-hacks, but am interested.<br />
At a precision of 1600 values it is very likely some subtle hardware bouncing, resonance of motor, dirt or similar ?<br />
How slow do you drive them?<br />
I would maybe try to eleminate the discontinuity on the hardware / measurement side, instead of cheating.<br />
Do several measurements, instead of one shot only.<br />
Also try to drive it from Pd instead of Cubase. Very slowly. Calibrating. Remember, there is some latency, too.</p>
<p>Anyway, this is what you where asking for, I think:<br />
new romantics )</p>
<p><a href="/uploads/files/1645559228623-align_up_down_3c.pd">align_up_down_3c.pd</a></p>
</blockquote>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lacuna">@lacuna</a> Hey, thank you very much, for your help and the patch! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>I will now describe more precisely, what I would like to do. I thought, it would be a little bit off topic, because it is a bigger project.</p>
<p>Also, I think, I described it not correctly with the motorfader recording. That isn't true. My english is not the best, so my formulations arent always on point, but I will try my best.</p>
<p>So, to describe my Project, I am working on:</p>
<p><img src="/uploads/files/1645560307600-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>I have an old 20 years old &quot;Steinberg Houston&quot; Midi-Controller, which works via the Mackie Protocoll. It was specifically designed as a Cubase / Nuendo Controller back in the days. Cubase / Nuendo are also, as far as I know, the only DAWs with which the controller is working nowadays.</p>
<p>Almost all DAWs are supporting the specifications of a &quot;Mackie Universal Pro&quot; Controller. So I would like to program a Midi-Data Converter, so I can use my controller with other DAWs as a &quot;Mackie Universal Pro&quot; Controller.</p>
<p>At the moment I already found out, which midi Data the faders send and which midi data the DAW Cubase sends to the Controller. I also converted the Midi Data, so that I can use the controller faders, while Cubase thinks, it is a Mackie Universal Pro.</p>
<p>So, but the problem, why I started this thread is, that I noticed, that the Mackie Controller needs to get different values from the DAW to get the right fadermovement done, than  my Steinberg Houston. For example: When I set my Fader in the DAW to 6 dBFS, my Conroller Fader moves correctly to 6 dBFS, as that is the highest fader value in Cubase. Also the other way around. If I set the Fader in Cubase to -00 dBFS, also my Fader of the controller is at the right position. So the lowest and highest values are correct. But if I set -20 dBFS in Cubase via Mackie UP Mode, my controller sets the fader to -10 dBFS. In the original Cubase &quot;Steinberg Houston&quot; mode, the fader movements are very precise and always are reflecting the number, which I set in the mixer in Cubase.</p>
<p>So my Idea was, to first send all Pitchbend values from Pure Data via Midi to Cubase in Houston Mode. I tricked Cubase in thinking, I would use the Houston Controller, but used Pure Data instead, to be very precise. Then in the preferences of cubase, I deleted all automation smoothing and set up a tempo in Cubase and with Metro in Pure Data, so that each 8th note, one pitch bend value is send to Cubase. and I synchronised both my DAW Cubase and Pure Data with a C3, sent from Cubase, when I start the Playback in Cubase. This C3 is then sent to Pure Data and than acts as a bang in PD to start the metro and sends the Midi Values. This midi Values are written then in Cubase as a Automation.</p>
<p>Then after that, I did the same process again, and recorded the Automation Values in Pure Data. But these values arent as smoothe as I would like to have them, even I recorded them that slow, that I set a metro of 8 per second which is for the 14 Bit values something like half an hour. The faders are the most important feature of my Controller for me, so I take the right amount of time to get them very precisely.</p>
<p>Between: I also found out the SysEx values to display what I want on my two rows houston display with Pure Data which was fun. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":D" alt=":D" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/14</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Tue, 22 Feb 2022 20:40:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 22:55:31 GMT]]></title><description><![CDATA[<p>uww</p>
<p>I updated my last post and think it is still valid.</p>
<p>But really, at a resolution of 16000 values on a fader length of maybe 10cm? This is almost a microphone! 20 years old ...<br />
I wouldn't care too much about precision of the numbers. Take care to soothe any bigger jumps with the median-filter in realtime and you're done!?</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> said:</p>
<blockquote>
<p>When I set my Fader in the DAW to 6 dBFS, my Conroller Fader moves correctly to 6 dBFS, as that is the highest fader value in Cubase. Also the other way around. If I set the Fader in Cubase to -00 dBFS, also my Fader of the controller is at the right position. So the lowest and highest values are correct. But if I set -20 dBFS in Cubase via Mackie UP Mode, my controller sets the fader to -10 dBFS. In the original Cubase &quot;Steinberg Houston&quot; mode, the fader movements are very precise and always are reflecting the number, which I set in the mixer in Cubase.</p>
</blockquote>
<p>This is probably easy. I know consoles have some arbitrary? mapping.<br />
You might easily match them with [pow]</p>
<p><a href="/uploads/files/1645568120229-nonlinearmap.pd">nonlinearmap.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/15</guid><dc:creator><![CDATA[lacuna]]></dc:creator><pubDate>Tue, 22 Feb 2022 22:55:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 23:33:07 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lacuna">@lacuna</a> said:</p>
<blockquote>
<p>This is probably easy. I know consoles have some arbitrary? mapping.<br />
You might easily match them with [pow]</p>
<p><a href="/uploads/files/1645568120229-nonlinearmap.pd">nonlinearmap.pd</a></p>
</blockquote>
<p>Hey, thank you very much. Yes that could be also a possibility. Smoother than a math function it can't be, haha.</p>
<p>Anyways. Thank you for your nice horizon patch. Did exact what I wanted to do!!! Now there arent any drops that arent made any sense. Will do also try out the smoothing suggestion to get the smoothest experience, possible, with this old device! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":D" alt=":D" /> But it is still really cool nowadays, even if it is 20 years old. Lot's of midi Buttons one can assign and it's build Quality in terms of materials is very good, compared to todays standards:</p>
<p>These are the two curves, I came up with now. Looks very nice so far with your horizon patch.</p>
<p><img src="/uploads/files/1645572756175-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/16</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Tue, 22 Feb 2022 23:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 23:45:19 GMT]]></title><description><![CDATA[<p>... And Pd's Midi i/o and schedueling happens between the audioblocks of 64 samples only. You might have jitter at fast movements and low samplerates?</p>
<p>I think the fastest response you could get with standard Vanilla, is starting PD from the console with -noaudio -nosleep flags and maybe -nogui  ... if you care about this.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/17</guid><dc:creator><![CDATA[lacuna]]></dc:creator><pubDate>Tue, 22 Feb 2022 23:45:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 23:43:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> said:</p>
<blockquote>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> Try the vertical fader...... or the mouse if you have the cyclone/mousestate installed.<br />
<a href="/uploads/files/1645484361849-smoothe.zip">smoothe.zip</a><br />
File to open....... smooth_triple-help.pd.<br />
I have set alpha to 0.05 which seems to work well.<br />
It is far too complex probably for what you want to achieve but hey...... it was a good evening....... and if it gets the job done then that will be a result.<br />
David.</p>
</blockquote>
<p>Very interesting patch. Thank you also very much for your helpfile. Didn't ended up using your patch for my curve, but I will defenitely safe it for future needs and learning purpose. You did some interesting things with pure data, which I didn't know. Maybe I will also do a combination of your patch for my controller converter and the patch of lacuna.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/18</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/18</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Tue, 22 Feb 2022 23:43:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Tue, 22 Feb 2022 23:46:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lacuna">@lacuna</a> said:</p>
<blockquote>
<p>I think the fastest response you could get with standard Vanilla, is starting PD from the console with -noaudio -nosleep flags and maybe -nogui  ... if you care about this.</p>
</blockquote>
<p>Yes, I care. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> Thank you for the suggestion.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/19</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/19</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Tue, 22 Feb 2022 23:46:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Wed, 23 Feb 2022 06:17:28 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> Maybe you have seen this discussion...... <a href="https://discuss.cakewalk.com/index.php?/topic/19846-mackie-control-questions/" rel="nofollow">https://discuss.cakewalk.com/index.php?/topic/19846-mackie-control-questions/</a></p>
<p>The Mackie control is supposed to spit out a direct linear midi slope...... <a href="/uploads/files/1645596025977-mackie-control-midi-table.pdf">Mackie Control Midi Table.pdf</a> and only clockwise/counterclockwise and count for rotary encoders (like the BCF2000).</p>
<p>In the discussion above &quot;skavan&quot; has given an approximate formula for a linearization of the Cakewalk curve.  Maybe there is other information out there or a question on a Cubase forum would shed some light.<br />
Or maybe the curve is the same in Cubase as a lot of the software developers were moving around as Cakewalk folded.</p>
<p>If you have jitter in the slope then make absolutely sure that you have no midi feedback anywhere in your setup....... I am a bit embarrassed to mention that as it seems you know what you are doing......<img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/worried.png" title="worried" alt=":worried:" /><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/20</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/20</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 23 Feb 2022 06:17:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Wed, 23 Feb 2022 16:03:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> said:</p>
<blockquote>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> Maybe you have seen this discussion...... <a href="https://discuss.cakewalk.com/index.php?/topic/19846-mackie-control-questions/" rel="nofollow">https://discuss.cakewalk.com/index.php?/topic/19846-mackie-control-questions/</a></p>
<p>The Mackie control is supposed to spit out a direct linear midi slope...... <a href="/uploads/files/1645596025977-mackie-control-midi-table.pdf">Mackie Control Midi Table.pdf</a> and only clockwise/counterclockwise and count for rotary encoders (like the BCF2000).</p>
<p>In the discussion above &quot;skavan&quot; has given an approximate formula for a linearization of the Cakewalk curve.  Maybe there is other information out there or a question on a Cubase forum would shed some light.<br />
Or maybe the curve is the same in Cubase as a lot of the software developers were moving around as Cakewalk folded.</p>
</blockquote>
<p>Hey, thank you for the discussion link!</p>
<p>Also for the Mackie Control Midi Table. This link, I already knew, and is very helpful.</p>
<blockquote>
<p>If you have jitter in the slope then make absolutely sure that you have no midi feedback anywhere in your setup....... I am a bit embarrassed to mention that as it seems you know what you are doing......<img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/worried.png" title="worried" alt=":worried:" /><br />
David.</p>
</blockquote>
<p>I already made sure, that there isn’t any feedback. I also think it has maybe something to do with my configuration or the values, Cubase sends out, because the little midi drops are always the same with continuus raising of the Cubase Fader.</p>
<p>I am experienced with sound design, yes, but I am more a creative, not a technican or programmer. It‘s a project, to invest some time and learn pure data for me.</p>
<p>I am thankful for every tip. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/%2B1.png" title="+1" alt=":+1:" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/21</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/21</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Wed, 23 Feb 2022 16:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Wed, 23 Feb 2022 22:01:54 GMT]]></title><description><![CDATA[<p>Hey, thank you all, for your help! With the help of you, I have now made a curve correction with my Smoothed out Arrays. The Motorfaders move really smoothe now, without wiggle, as it was before.</p>
<p>The curve isn‘t perfect, so I need to do some finetuning, but the fadermovement is! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/blush.png" title="blush" alt=":blush:" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/22</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/22</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Wed, 23 Feb 2022 22:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Sat, 26 Feb 2022 16:00:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> Can you please post your noisy data so I can try a different smoothing algorithm on it?  I'm porting something from the Arduino world for fun.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/23</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/23</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Sat, 26 Feb 2022 16:00:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Sun, 27 Feb 2022 14:39:33 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> said:</p>
<blockquote>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> Can you please post your noisy data so I can try a different smoothing algorithm on it?  I'm porting something from the Arduino world for fun.</p>
</blockquote>
<p>Yes, I deleted already my old data, but recorded this curve today, that you can use it. It's an strange curve.</p>
<p>I got this curve by send the pitchbend Data from Pure Data to Cubase and record as automation. All values linear via Mackie Mode. Then I switched Cubase to &quot;Houston&quot; Mode and recorded the the output of cubase with pd into the array. The result is always the same. I thought it has maybe to do with the 20 years old algorithm for my houston hardware. Because if I send the midi data via mackie mode to pd, it's much smoother, without these artefacts.</p>
<p><img src="/uploads/files/1645972255993-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>The curve you can see here is also a little bit different in what I described after starting this thread, because the artefacts are in the opposite direction. But it's clear to see with the eyes, how the curve should be. Would be cool, if you could also post, what you came up with. I am interested in the result. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p><a href="/uploads/files/1645972758413-for-forum-request.pd">For Forum Request.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/24</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/24</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Sun, 27 Feb 2022 14:39:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Sun, 27 Feb 2022 18:47:02 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> I don't really understand this thread with respect to the hardware, but I was just curious if this thing I ported from the Arduino library &quot;ResponsiveAnalogRead&quot; (<a href="https://github.com/dxinteractive/ResponsiveAnalogRead" rel="nofollow">https://github.com/dxinteractive/ResponsiveAnalogRead</a>) could remove all the negative first differences without making any assumptions about which way the signal should be heading (it can).  I think it's just a self-adjusting version of the exponential moving average stuff that <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> posted.  Put both files in the same directory and open &quot;houstonData.pd&quot; to run it.<br />
<a href="/uploads/files/1645985758518-houstondata.pd">houstonData.pd</a><br />
<a href="/uploads/files/1645985774459-responsiveexpmovgavg.pd">responsiveExpMovgAvg.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/25</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/25</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Sun, 27 Feb 2022 18:47:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to smoothe out Arrays ? on Mon, 28 Feb 2022 00:51:20 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> said:</p>
<blockquote>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bangflip">@Bangflip</a> I don't really understand this thread with respect to the hardware, but I was just curious if this thing I ported from the Arduino library &quot;ResponsiveAnalogRead&quot; (<a href="https://github.com/dxinteractive/ResponsiveAnalogRead" rel="nofollow">https://github.com/dxinteractive/ResponsiveAnalogRead</a>) could remove all the negative first differences without making any assumptions about which way the signal should be heading (it can).  I think it's just a self-adjusting version of the exponential moving average stuff that <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> posted.  Put both files in the same directory and open &quot;houstonData.pd&quot; to run it.<br />
<a href="/uploads/files/1645985758518-houstondata.pd">houstonData.pd</a><br />
<a href="/uploads/files/1645985774459-responsiveexpmovgavg.pd">responsiveExpMovgAvg.pd</a></p>
</blockquote>
<p>Interesting, thank you! Will keep this for future needs.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/26</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13849/how-to-smoothe-out-arrays/26</guid><dc:creator><![CDATA[Bangflip]]></dc:creator><pubDate>Mon, 28 Feb 2022 00:51:20 GMT</pubDate></item></channel></rss>