[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] Re: How to fix pulsating distortion
tsunavesti evandrescu wrote
> Hello SC users,
> I'm trying to get SuperCollider running on my desktop computer, but get a
> kind of pulsating and very crackly distortion when playing sound. (i.e.
> just {SinOsc.ar}.play;)
> Recording the output with s.record and playing that file back with an
> exterior program has no issues: the result is a pure, un-distorted sine
> wave.
This is only a guess: I noticed some time ago that pure sine waves would
sometimes get extra harmonics in Windows. I never pinned it down to an exact
reason, but I had a feeling it could have to do with sample rates. *If* your
soundcard is configured for, say, 48kHz and SC is running at 44.1kHz, then
the OS audio layer would have to do sample-rate conversion, and if the
conversion algorithm takes shortcuts, it would affect audio quality. It
would not surprise me if MME went for performance rather than quality here.
So you might check the device properties (outside of SC) and then use
"s.options.sampleRate = 48000" (or whatever it turns out to be).
Also try your file in Audacity. Both Audacity and Windows scsynth use
PortAudio. If you have a file that looks clean but sounds bad in Audacity,
it might suggest a PortAudio problem. In that case, I don't know the fix :\
hjh
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/How-to-fix-pulsating-distortion-tp7629612p7629618.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/