<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Alan -<div><br></div><div>Yes, I'm still tracking down some problem with sampling rate and stereo channels.  I'm comparing to an old Squeak doing<div><span class="Apple-tab-span" style="white-space:pre"> PluckedSound bachFugue play</span></div><div>...which has the same apparent enhancement at lower pitches, but the higher pitches are cleaner and thus don't seem so muted.  Regarding artifacts, the old Squeak actually has more noise in a long held note, but there's something going on in the mixing, I believe.</div><div><br></div><div>I'm sure I'll find these little bugs, including the artifacts you mention.   Right now, though, I'm mainly thrilled to find that there seem to be almost no GC artifacts in the synthesis thread so it is actually possible to do the kinds of things we're used to, in JS.  And the synth code is actually very simple - I haven't had to resort to any hacks to get reasonable performance.  I can't even see it in the processor monitor, when doing four voices all in JS.</div><div><br></div><div>  - Dan<br><div><div>On Feb 17, 2012, at 9:18 AM, Alan Kay wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div><span>Hi Dan</span></div><div><br><span></span></div><div><span>Unusual amplitudes. Notes seem to get louder going lower in pitch -- or by voice -- this could possibly be helped a bit by the volume control on each voice that we used to have in the Squeak player.</span></div><div><br><span></span></div><div><span>Also, some "interesting" background artifacts in the sound -- aliasing from no low pass filter?<br></span></div><div><br><span></span></div><div><span>Cheers,</span></div><div><br><span></span></div><div><span>Alan</span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 14pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
 <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Daniel Ingalls <<a href="mailto:danhhingalls@gmail.com">danhhingalls@gmail.com</a>><br> <b><span style="font-weight: bold;">To:</span></b> blake <<a href="mailto:dsblakewatson@gmail.com">dsblakewatson@gmail.com</a>> <br><b><span style="font-weight: bold;">Cc:</span></b> lively-kernel(mailman) <<a href="mailto:lively-kernel@hpi.uni-potsdam.de">lively-kernel@hpi.uni-potsdam.de</a>> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, February 17, 2012 8:52 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [lively-kernel] More Sounds!<br> </font> </div> <br>
Hi Blake -<br><br>Yes, I think that happens when i save without stopping the player.<br>BTW, I now have polyphonic scores working and there's a button to play a Bach Fugue.<br><br>Same page below.<br><br>Cheers<br><br>  - Dan<br><br>On Feb 16, 2012, at 7:27 PM, blake wrote:<br><br>> When I load the page up in Chrome, and click on the keyboard, it's<br>> highly distorted. Then if I click the button, it clears up.<br>> <br>> <br>> On Wed, Feb 15, 2012 at 6:31 PM, Daniel Ingalls <<a ymailto="mailto:danhhingalls@gmail.com" href="mailto:danhhingalls@gmail.com">danhhingalls@gmail.com</a>> wrote:<br>>> Hey Sound Hackers -<br>>> <br>>> Now the keyboard can be hooked to a realtime synthesizing player using the PluckedSound algorithm from Squeak.  Note that glissando actually posts and plays many notes at once!  Check it out at...<br>>> <br>>>       
 <a href="http://lively-kernel.org/repository/webwerkstatt/users/Dan/SoundTest3.xhtml">http://lively-kernel.org/repository/webwerkstatt/users/Dan/SoundTest3.xhtml</a><br>>> <br>>> [Should work in recent Chrome of Firefox - we're still looking for help getting the Flash compatibility to kick in with Safari and Opera]<br>>> <br>>> The SoundPlayer code is in the object editor on that page.  If you are interested in the synth algorithms, the code for AbstractSound and PluckedSound is in...<br>>> <br>>>        <a href="http://lively-kernel.org/repository/webwerkstatt/users/Dan/SoundClasses.js">http://lively-kernel.org/repository/webwerkstatt/users/Dan/SoundClasses.js</a><br>>> <br>>> Technology has been kind to us:  with plenty of cycles and fast floating point, I was able to make the code quite a bit simpler.<br>>> <br>>> Enjoy<br>>> <br>>>   - Dan<br>>> <br>>> _______________________________________________<br>>> lively-kernel mailing list<br>>> <a ymailto="mailto:lively-kernel@hpi.uni-potsdam.de" href="mailto:lively-kernel@hpi.uni-potsdam.de">lively-kernel@hpi.uni-potsdam.de</a><br>>> <a href="http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel">http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel</a><br><br>_______________________________________________<br>lively-kernel mailing list<br><a ymailto="mailto:lively-kernel@hpi.uni-potsdam.de" href="mailto:lively-kernel@hpi.uni-potsdam.de">lively-kernel@hpi.uni-potsdam.de</a><br><a href="http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel" target="_blank">http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel</a><br><br><br> </div> </div> </blockquote></div>   </div></div></blockquote></div><br></div></div></body></html>