logo       

Re: input error(?) on plugin: msg#00195

audio.supercollider.devel

Subject: Re: input error(?) on plugin

From: Lance Putnam <ljputnam-YszBOzCFqnGCCSEA9G1mgw@xxxxxxxxxxxxxxxx>
Subject: Re: [sc-dev] input error(?) on plugin
To: SuperCollider developers list <sc-dev-Ayv8T2snMLBt9CRQqspbbg@xxxxxxxxxxxxxxxx>

Hi Adam,

One thing that may be a problem is that you are assuming there are always 64
samples per control period. You should replace '64' with 'blockSize'.

In TestInput_next:

for(int i=0; i<64; i++) {
printf("%f\n", in[i]);
}

should be:

for(int i=0; i<blockSize; i++) {
printf("%f\n", in[i]);
}




hey there lance,
i wish it were just that simple. but in my case, i am in fact using 64 sample block sizes (i just put it there for speed's sake), so even when i change it to 'blockSize', i continue to get the same result. i've attached the plugin for folks to try out for themselves.
this is really annoying and i just don't understand why sc is doing this...
here are the first two blocks that print out:

<x-tad-smaller>0.000000
0.000000
0.000000
0.000000
8.000000 <---
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
8.000000 <---
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000

0.000000
0.000000
0.000000
0.000000
8.000000 <---
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
8.000000 <---
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
</x-tad-smaller>

Attachment: InputTest.scx
Description: Binary data



a_______________________________________________
sc-dev mailing list
sc-dev-Ayv8T2snMLBt9CRQqspbbg@xxxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise