[Csnd] Clipping on linux only
Date | 2020-06-25 08:37 |
From | Andreas Bergsland |
Subject | [Csnd] Clipping on linux only |
Hi I am puzzled by the fact that a .csd I wrote can run nicely on OSX, writing a file (with fout) without any distortion (max amp at ca.0.5), and then produce a severly distorted file when running the same .csd on a Linux system with ALSA. Any ideas what might be causing this? Are there any settings I could check for the ALSA driver? Or could it be related to the playback of the soundfiles I use in the project? BTW, the Linux system (Xubuntu LTS 18.04) produces distorted output for other apps as well. Best, Andreas -- Andreas Bergsland
Associate professor - førsteamanuensis Study Programme Leader - studieprogramleder Music Technology Programme - Musikkteknologiseksjonen Department of Music - Institutt for musikk Olavskvartalet NTNU (Norwegian University of Science and Technology) 7491 Trondheim, NORWAY
Visiting address/besøksadresse: Fjordgt.1 (3.etg.) e-mail: andreas.bergsland@ntnu.no Office phone (Skype for business):7359 0096 Mobil: 4566 3316 |
Date | 2020-06-25 08:58 |
From | "Peter P." |
Subject | Re: [Csnd] Clipping on linux only |
Attachments | None |
Date | 2020-06-25 09:21 |
From | Andreas Bergsland |
Subject | Re: [Csnd] Clipping on linux only |
It didn't make any difference using CoreAudio or external sound card on OSX before, and I doubt this is the issue now. What I really don't get is that this also happens using fout, which simply writes to file. So in principle it doesn't really go through the DAC at all. But I don't know Linux well enough to tell if this can be related to ALSA or anything else, like the audio coding on the system. BTW, I was using fout with format option 8, 24-bit integers with a header, and default header type (wav). Best, Andreas On 25/06/2020, 09:58, "A discussion list for users of Csound on behalf of Peter P." |
Date | 2020-06-25 11:05 |
From | thorin kerr |
Subject | Re: [Csnd] Clipping on linux only |
Are you sure the file really is distorted? I once had an issue with an audio editor which happily played 24 bit files, except the files looked and sounded distorted. It was the player assuming everything it played was 16 bit. Just speculating... Thorin On Thu, 25 Jun. 2020, 6:21 pm Andreas Bergsland, <andreas.bergsland@ntnu.no> wrote: It didn't make any difference using CoreAudio or external sound card on OSX before, and I doubt this is the issue now. What I really don't get is that this also happens using fout, which simply writes to file. So in principle it doesn't really go through the DAC at all. |
Date | 2020-06-25 12:32 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] Re: [Csnd] Clipping on linux only |
you need to run this to a file (not fout) instead of DAC (-o filename) to test. Prof. Victor Lazzarini Maynooth University Ireland > On 25 Jun 2020, at 09:22, Andreas Bergsland |