nice!!

i did try the samplerate thing, but without your 0xff and /256 additions, it was sounding awful.

this sounds pretty rad now. 



On Tue, Oct 18, 2011 at 11:39 PM, martin brinkmann <mnb@martin-brinkmann.de> wrote:
On 10/18/2011 03:36 AM, hardoff goes bananas wrote:

> the main dilemma here is that the patch runs at normal samplerate and
> bitrate.

lower samplerates are possible with smaller numbers as input for the
"counter", and rounding to int

> i think to get the sound close to the original code examples, you're going
> to have to somehow force the calculations all to be done with 8bit floats,
> rather than pd's internal 32 bit (or whatever)
> I still can't get my head around how to do that.

i got it a little closer to the original after applying & 0xff like in
the javascript on the site, and dividing by 256 (instead of scaling by
256 to fit into short), maybe there is still a lsb/msb issue though.

bis denn!
       martin

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list