[lively-kernel] More Sounds!
danhhingalls at gmail.com
Fri Feb 17 21:35:51 CET 2012
Hi Alan -
Yes, I'm still tracking down some problem with sampling rate and stereo channels. I'm comparing to an old Squeak doing
PluckedSound bachFugue play
...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.
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.
On Feb 17, 2012, at 9:18 AM, Alan Kay wrote:
> Hi Dan
> 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.
> Also, some "interesting" background artifacts in the sound -- aliasing from no low pass filter?
> From: Daniel Ingalls <danhhingalls at gmail.com>
> To: blake <dsblakewatson at gmail.com>
> Cc: lively-kernel(mailman) <lively-kernel at hpi.uni-potsdam.de>
> Sent: Friday, February 17, 2012 8:52 AM
> Subject: Re: [lively-kernel] More Sounds!
> Hi Blake -
> Yes, I think that happens when i save without stopping the player.
> BTW, I now have polyphonic scores working and there's a button to play a Bach Fugue.
> Same page below.
> - Dan
> On Feb 16, 2012, at 7:27 PM, blake wrote:
> > When I load the page up in Chrome, and click on the keyboard, it's
> > highly distorted. Then if I click the button, it clears up.
> > On Wed, Feb 15, 2012 at 6:31 PM, Daniel Ingalls <danhhingalls at gmail.com> wrote:
> >> Hey Sound Hackers -
> >> 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...
> >> http://lively-kernel.org/repository/webwerkstatt/users/Dan/SoundTest3.xhtml
> >> [Should work in recent Chrome of Firefox - we're still looking for help getting the Flash compatibility to kick in with Safari and Opera]
> >> 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...
> >> http://lively-kernel.org/repository/webwerkstatt/users/Dan/SoundClasses.js
> >> 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.
> >> Enjoy
> >> - Dan
> >> _______________________________________________
> >> lively-kernel mailing list
> >> lively-kernel at hpi.uni-potsdam.de
> >> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
> lively-kernel mailing list
> lively-kernel at hpi.uni-potsdam.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lively-kernel