You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the audio device, one can get a PsyDuration* that represents the frame dur.
E.g. The frame_dur of an PsyAudioDevice Sampling at 44100 Hz is 23µs according to the duration it is rounded to the nearest µs whereas it is 22.68... µs in reality.
So if you calculate the number of frames it takes to generate a PsyWave of 250 ms it is 10870, however 10870 * 1/44100 ~ 246 ms, hence the stimulus loses 4 ms. As aiming for ms precision, this isn't good enough, So we should try to improve the precision to calculate the number of frames that makes up 250ms.
The text was updated successfully, but these errors were encountered:
From the audio device, one can get a PsyDuration* that represents the frame dur.
E.g. The frame_dur of an PsyAudioDevice Sampling at 44100 Hz is 23µs according to the duration it is rounded to the nearest µs whereas it is 22.68... µs in reality.
So if you calculate the number of frames it takes to generate a PsyWave of 250 ms it is 10870, however 10870 * 1/44100 ~ 246 ms, hence the stimulus loses 4 ms. As aiming for ms precision, this isn't good enough, So we should try to improve the precision to calculate the number of frames that makes up 250ms.
The text was updated successfully, but these errors were encountered: