[chuck-users] stupid n00bie question: Part III

joerg piringer joerg at piringer.net
Wed Oct 17 04:50:53 EDT 2007


Martin Ahnelöv schrieb:
> tis 2007-10-16 klockan 09:41 +0200 skrev joerg piringer:
>> 	if(sampcounter > samplerate)
>> 	{
>> 		<<< "freq: ", counter/4 >>>;
>> 		0 => sampcounter;
>> 		0 => counter;
>> 	}
>> 	1::samp => now;
>> }
>>
> 
> Are you sure? Shouldn't it be counter/2? AFAIK, the sine crosses zero
> each other time.

i thought that too but trying out the program showed that /4 gave the 
right result.

best
joerg


-- 
http://joerg.piringer.net
http://www.transacoustic-research.com
http://www.iftaf.org
http://www.vegetableorchestra.org/


More information about the chuck-users mailing list