i don't think i got it committed... dan On Nov 5, 2008, at 7:51 PM, eduard aylon wrote:
Hi Dan, do you mean It didn't get committed or that it just wasn't included in the release. If the latter, then I'll check out the cvs.
eduard
On Nov 6, 2008, at 1:40 AM, dan trueman wrote:
yeah, i think i found and fixed this bug a while ago also, but again i don't think it got checked in.... apologies!
dt
On Nov 5, 2008, at 7:33 PM, eduard wrote:
Ok, got the answer:
lisa.valueAt(Math.sin(2.0*pi*60*i/(size-1)), i::samp);
should be put into lisa and not
lisa.valueAt(Math.sin(2.0*pi*60*i/size), i::samp);
the difference is in using size or size-1. This seems not right though...
eduard
Begin forwarded message:
From: eduard aylon
Date: November 6, 2008 1:20:56 AM GMT+01:00 To: ChucK Users Mailing List Subject: help understanding lisa Hello list,
I am trying to build a granular patch with lisa, but for some reason I am getting clicks every time lisa repeats the buffer. Maybe it has to do with lisa's duration? Hope someone can explain me what I am doing wrong. Following I attach two examples one uses lisa the other uses an array. The one that runs with lisa has clicks, the other sounds pristine, why? (even if rampup and rampdown were set for lisa). The strange thing is that if recorded to file and checked with an audio editor I can't see any strange artifacts in the waveform.
thanks for any help,
eduard
// the patch that uses lisa:
LiSa lisa => dac; 1024 => int size; size::samp => lisa.duration;
for (int i; i < size; i++) { lisa.valueAt(Math.sin(2.0*pi*60*i/size), i::samp); }
1 => lisa.play; while(true) { lisa.rampUp(10::samp); lisa.duration() - 20::samp => now; lisa.rampDown(10::samp); }
// the other patch with a simple buffer:
Impulse imp => dac; 1024 => int size; float buffer[size]; size - 1 => int bitmask;
for (int i; i < size; i++) { Math.sin(2.0*pi*60*i/size) => buffer[i]; }
0 => int pos;
while(true) { buffer[pos&bitmask] => imp.next; pos++; 1::samp => now; }
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users