On 01/03/2008, <b class="gmail_sendername">volker böhm</b> <<a href="mailto:vboehm@gmx.ch">vboehm@gmx.ch</a>> wrote:<br><br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
thanks for your answer, kassen.<br> you have a good point here. i'm a lousy chucker and simply needed<br> some feedback with the delay ugens.<br> but yes, it can't work like this - at least not correctly.</blockquote>
<div><br>Well, now, "lousy chucker" is really quite exaggerated. Calculation order and so on is really a quite advanced subject that nobody notices until it mysterious mucks everything up. At least it's predictable in most practical ChucK situations which can save a lot of noise compared to some other systems.<br>
<br>I'd say you are a good listener instead, I might've missed why things were out of tune myself. :¬)<br><br><br>...in fact, now that I think of it, I might've missed this in some of my own code, I could probably tighten up a rhythmical delay I use.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> but what did confuse me in the first place was that i had already<br> tried to add a feedback path in the ugen source, only to find, that<br>
the timing still wasn't right. that led me to the conclusion that<br> there must be something wrong with the way the delay time is<br> calculated - sorry that was a little fast. i did some further tests<br> and delay times are indeed set correctly.<br>
the problem i ran into, is related to the "Writing before reading<br> allows delays from 0 to length-1" - approach, which is stated in the<br> source.<br> i changed the order of write and read, added a feedback parameter and<br>
everything is fine.</blockquote><div><br><br>So, if I get this right, you made sure the delay now works at it's set length for both feedback and straight output?<br><br>That would be quite a valuable addition if you'd submit it (not sure if there's a official process for this). At any rate this phenomenon could stand some attention in the manual because any system using feedback will run into this. Often the Z-1 function inherent in the feedback is actually beneficial and useful but we should probably document that it's there, where it is exactly and how it will affect things.<br>
</div><br><br>Glad to have been of help. I hope you'll share your fix, sounds like a solution that would be good for everyone.<br><br><br>Yours,<br>Kas.<br></div>