<div dir="ltr">Hello Kassen, thanks for your help!<div><br></div><div>The scripts I used are included into the last miniAudicle (and maybe ChucK itself, I didn&#39;t checked) examples folder. You can grab a copy from the ChucK (mirror?) Github repo [1]. I guess I&#39;ll be testing the same scripts into another Machine/OS to see what happens also.</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/ccrma/chuck/blob/master/src/examples/book/digital-artists/chapter8/Listing8.9.ck">https://github.com/ccrma/chuck/blob/master/src/examples/book/digital-artists/chapter8/Listing8.9.ck</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-17 7:12 GMT-05:00 Kassen <span dir="ltr">&lt;<a href="mailto:signal.automatique@gmail.com" target="_blank">signal.automatique@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey, Moisés!<div><br><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>I&#39;m facing an odd problem during my journey. Following the examples provided in the book (and also writing my own pieces), sometimes the output sound gets heavily disorted as if the sound levels go far beyond the maximum and there&#39;s an extreme clipping sound.</div></div></div></div></blockquote><div><br></div></span><div>I listened to your recording and I agree that sounds like clipping, yes. That&#39;s very strange as we would expect those examples tot not do that (I didn&#39;t follow that course myself but assume it&#39;s been carefully made).</div><div><br></div><div>In general clipping is not -in itself- a cause for worry. When we are creating new sounds or working on a piece it is to be expected that we sometimes accidentally clip. We adjust the code and move on. I assume that something about your setup must be different from the setup the author of that example used. That might be comforting to you; I can&#39;t see how any of this could indicate that you did something &quot;wrong&quot;... but it is also slightly discomforting because it is so strange.</div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>The weirdest part of all this, is that this distortion only occurs when the code is running &#39;live&#39;. If I use the &#39;Export&#39; function in miniAudicle, the resulting sound is crystal-clear. I&#39;ve also used a simple snippet to record the output to a file manually and the same good-sounding result occurs. I tried using another sound interface (as far as I know, the HDMI counts as another audio interface), and an external interface embedded into my Beringher UMA25S MIDI controller with the same results every time.</div></div></div></div></blockquote><div><br></div></span><div>Thanks for testing that. I wonder whether the &quot;export&quot; function uses some sort of automatic volume scaling. That would prevent the clipping, but then I&#39;d expect that in those caases the normal (non-clipping) sounds would be softer. </div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><br></div><div>Since I don&#39;t know how to properly diagnose/solve this problem, I hope some of you can give me some insight to get over this and keep ChucKing :)</div><span><font color="#888888"><div><br></div></font></span></div></div></div></blockquote><div> </div></span></div>It is indeed odd and might be a bit hard to diagnose. Could you send me the exact .ck file you used to generate the mp3 file you provided? I&#39;d like to run it and see what happens.</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Yours,</div><div class="gmail_extra">Kas.</div></div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-Moisés</div>
</div>