Re: [chuck-users] SndBuf - audio file with samplerate different from 44100

2018-03-24 Thread Mario Buoninfante
Hi, a quick update, basically there are a couple of things I missed before. I was using a stereo file in a mono SndBuf and the Phasor I was using to drive the Wavetable (I was copying the audio file into a Wavetable) needed twice the normal freq. it seems like loading a stereo file in a mono

Re: [chuck-users] SndBuf - audio file with samplerate different from 44100

2018-03-24 Thread Mario Buoninfante
Hi Spencer, thanks for your help, you're perfectly right about the floating point comparison, I didn't think about it. and I think you're also right when you say that valueAt() and samples() are ignoring the sample rate conversion made by SndBuf. What I didn't say in the previous mail is that the

[chuck-users] SndBuf - audio file with samplerate different from 44100

2018-03-24 Thread mario buoninfante
I forgot to say, that the program I posted in the previous mail returns a lot of errors, basically 97% of the file length. I suppose the samples which are the same are all 0. btw the bit depth is the same, they're both 16 bit. cheers, Mario ___

[chuck-users] SndBuf - audio file with samplerate different from 44100

2018-03-24 Thread mario buoninfante
Hi, It seems like SndBuf deals in a different way with audio files which have different sample rate. I tried this simple program where the 2 audio files samples are compared (perc.wav and perc2.wav which are the same file one 44100 and the other 48000 Hz sample rate), so that I can check if