<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1444250297979_8203" dir="ltr"><span id="yui_3_16_0_1_1444250297979_8202" class="">Thank you all for your help. Matt, Your solutions sounds interesting. I'm not familiar with</span> block size issues and <span class="" id="yui_3_16_0_1_1444250297979_9430">how the fourier analysis objects work </span>apart that I know what they do (at least roughly). I guess it's about time I go deeper into this. I'll start with Miller's book unless you have an other suggestion.</div><div id="yui_3_16_0_1_1444250297979_8203" dir="ltr"><br></div><div id="yui_3_16_0_1_1444250297979_8203" dir="ltr">Maybe I'm being naive, but what about dynamic patching? Could it be possible to create (and delete) tables on the fly depending of my needs? I find it very hard to find a good documentation about dynamic patching on the web so right now I can hardly experiment with this. Where could I start?</div><div id="yui_3_16_0_1_1444250297979_8203" dir="ltr"><br></div><div id="yui_3_16_0_1_1444250297979_8203" dir="ltr">Benoît Fortier<br></div><div class="signature" id="yui_3_16_0_1_1444250297979_8200"><br></div>  <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, linéale; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> Le jeudi 8 octobre 2015 13h16, Matt Barber <brbrofsvl@gmail.com> a écrit :<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv8198768954"><div><div dir="ltr"><div class="yiv8198768954gmail_default" style="font-family:verdana, sans-serif;">​I haven't tried this in a while, but it might be worth ​trying to build a custom sinesum abstraction that fills the tables manually with an until loop and then normalizes them. This may take too long, though. There's probably another solution with [tabsend~] and [tabreceive~] where you write the weights in a table and then use use an ifft to tabsend~ the result to the table you're reading from. I haven't thought it through - the blocking would be tricky.</div></div><div class="yiv8198768954gmail_extra"><br clear="none"><div class="yiv8198768954gmail_quote">On Wed, Oct 7, 2015 at 7:01 PM, Benoît Fortier <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:benoitfortier@yahoo.ca" target="_blank" class="removed-link" href="">benoitfortier@yahoo.ca</a>></span> wrote:<br clear="none"><blockquote class="yiv8198768954gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv8198768954yqt9249290909" id="yiv8198768954yqt30721"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr"><span>Ok here is my simplified patch. First, if you click the top bang, it outputs 50 notes (at once!) without a single glitch, at least on my computer (MAC mini late 2012 quad core 2.6 mhz i7, osx yosemite, 16gig ram). Then if you click the second bang below on the left, even if it outputs just 2 (you can change this number if two doesn't produce audio errors on your computer) notes at a time, it produces almost all the time I/O errors and audio dropout. There's 50 arrays in the patch and 350 voices... So can anyone think of the reason why the first time the arrays are sent a sinesum message everything works fine, but the second time it produces so many errors? </span></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thank you for your help!</div><span class="yiv8198768954HOEnZb"><font color="#888888"></font></span><div></div><div> </div><div>Benoît Fortier<br clear="none"></div><div><div class="yiv8198768954h5">  <br clear="none"><div><br clear="none"><br clear="none"></div><div style="display:block;"> <div style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,;font-size:16px;"> <div dir="ltr"> <font size="2" face="Arial"> Le mercredi 7 octobre 2015 16h01, Miller Puckette <<a rel="nofollow" shape="rect" ymailto="mailto:msp@ucsd.edu" target="_blank" class="removed-link" href="">msp@ucsd.edu</a>> a écrit :<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div>This is probably not your problem but just in case:<br clear="none"><br clear="none">MAke sure not to update large numbers of arrays that are visible - hide them<br clear="none">in a sub-patch or in "array define" objects (or the old "table") so that<br clear="none">they're not visible.  Erasing and re-drawing graphs is much more expensive<br clear="none">than computing them.<br clear="none"><br clear="none">cheers<br clear="none">Miller<br clear="none"><br clear="none">On Wed, Oct 07, 2015 at 07:12:40PM +0000, Benoît Fortier wrote:<br clear="none">> Sorry for double posting, there was a typo in my previous message so I'm sending it again to make sure everything is clear.<br clear="none">> Hi list, I’m working on a big patch. I have many audio I/O error and audio glitch and I’m having a hard time finding why. I’ve done some extensive troubleshooting yesterday but couldn’t pin point the exact cause. I managed to narrow my problem down to what I find is a weird behaviour (at least for me!) with arrays being filled with the sinesum method. Here are some more details<br clear="none">> Basically my patch is a big synth. It has a bank of 50 arrays. Those arrays are storing waveforms (using sinesum) which are read by a bank of 300 « voices » (each using the tabread4~ object). When a « note in » message is received, the patch first sends a sinesum command to an unused array. Then, the array id is sent in the voice bank along with the « note in » message so that it can be dealt with accordingly by an individual voice using a tabread4~ object. The sinesum part of this process happens only if necessary : if many consecutive notes uses the same waveform, then the different voices dealing with those notes will all read the same array and no sinesum command is sent until the waveform changes. <br clear="none">> The problem starts when all arrays have been sent a first sinesum command and start receiving a second one to replace the first waveform, which is not used anymore. (To make that happen quickly I can set my patch to always send a sinesum command to a new array for every « note in » so that I quickly reach a point when all the arrays were sent a first sinesum) The weird behaviour is this : the first 50 notes sounds just fine with no I/O errors, but the 51st note and upward almost all provoque I/O errors and audio glitch, no matter how many voices are playing at the same time. It’s like if the first time each arrays are sent a sinesum command they load just fine, but it mysteriously takes much more cpu to send a second (third, fourth… ) sinesum command to each of them, thus provoking the audio glitch. I’ve managed to reproduce the problem with various simplified version of my patch.<br clear="none">> Does that ring a bell to anyone? If not I’ll soon make a simplified and clear version of my patch so that my problem is emphasized and I’ll post it here. To the best of my knowledge and after a lot of testing, I believe my voice management system and my array management system is not part of the problem (for example, I believe no arrays are changed while being read by a tabread4~).<br clear="none">> Thank you all for your helpfulness!<br clear="none">> Benoît Benoît Fortier<br clear="none">> <a rel="nofollow" shape="rect" class="removed-link" href="">581 995-5622</a> <br clear="none">> <br clear="none">> <br clear="none">>      Le mercredi 7 octobre 2015 15h06, Benoît Fortier <<a rel="nofollow" shape="rect" class="removed-link" href="">benoitfortier@yahoo.ca</a>> a écrit :<br clear="none">>    <br clear="none">> <br clear="none">>  Hi list, I’m working on a big patch. I have many audio I/O error and audio glitch and I’m having a hard time finding why. I’ve done some extensive troubleshooting yesterday but couldn’t pin point the exact cause. I managed to narrow my problem down to what I find is a weird behaviour (at least for me!) with arrays being filled with the sinesum method. Here are some more details<br clear="none">> Basically my patch is a big synth. It has a bank of 50 arrays. Those arrays are storing waveforms (using sinesum) which are read by a bank of 300 « voices » (each using the tabread4~ object). When a « note in » message is received, the patch first sends a sinesum command to an unused array. Then, the array id is sent in the voice bank along with the « note in » message so that it can be dealt with accordingly by an individual voice using a tabread4~ object. The sinesum part of this process happens only if necessary : if many consecutive notes uses the same waveform, then the different voices dealing with those notes will all read the same array and no sinesum command is sent until the waveform changes. <br clear="none">> The problem starts when all arrays have been sent a first sinesum command and start receiving a second one to replace the first waveform, which is not used anymore. (To make that happen quickly I can set my patch to always send a sinesum command to a new array for every « note in » so that I quickly reach a point when all the arrays were sent a first sinesum) The weird behaviour is this : the first 50 notes sounds just fine (the same number , with no I/O errors, but the 51st note and upward almost all provoque I/O errors and audio glitch, no matter how many voices are playing at the same time. It’s like if the first time each arrays are sent a sinesum command they load just fine, but it mysteriously takes much more cpu to send a second (third, fourth… ) sinesum command to each of them, thus provoking the audio glitch. I’ve managed to reproduce the problem with various simplified version of my patch.<br clear="none">> Does that ring a bell to anyone? If not I’ll soon make a simplified and clear version of my patch so that my problem is emphasized and I’ll post it here. To the best of my knowledge and after a lot of testing, I believe my voice management system and my array management system is not part of the problem (for example, I believe no arrays are changed while being read by a tabread4~).<br clear="none">> Thank you all for your helpfulness!<br clear="none">> Benoît<br clear="none">> _______________________________________________<br clear="none">> <a rel="nofollow" shape="rect" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br clear="none">> UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><div><br clear="none">> <br clear="none">> <br clear="none">>   <br clear="none"><br clear="none">> _______________________________________________<br clear="none">> <a rel="nofollow" shape="rect" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br clear="none">> UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><br clear="none"><br clear="none"></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br clear="none">
UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" target="_blank" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>