[chuck-users] SqrOsc.width broken?
eduard aylon
eduard.aylon at gmail.com
Mon Apr 21 06:53:08 EDT 2008
Hi Kassen,
I think SqrOsc is supposed to have a fixed width of 0.5. regarding
SawOsc the documentation states that it only affects wether width <0.5
(decreasing ramp, thus peak at 0) or width >0.5 (increasing ramp,
thus peak at 1).
As a side note the documentation states that Phasor has, as well, a
width member, but chuck complains with class 'Phasor' has no member
'width'.
eduard
On 21 Apr 2008, at 09:24, Kassen wrote:
> Dear list,
>
> SqrOsc (and SawOsc as well) seem to having a issue with their .width
> function, in particular; it doesn't work.
>
> PulseOsc and TriOsc are fine. It's not so clear to me how PulseOsc
> is different from SqrIOsc aside from this (I don't hear a
> difference, really). Depending on how "width" is seen TriOsc and
> SawOsc may be the same as well but with different dutycycles so
> perhaps there is no functional issue but it should probably still
> work as advertised.
>
> Demo for convenience pasted below.
>
> Yours,
> Kas.
>
>
> SqrOsc s => dac;
>
> while(second => now)
> {
> //this bit doesn't work
> Std.rand2f(.1, .9) => s.width;
> } _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
More information about the chuck-users
mailing list