[Csnd] Portaudio error
Date | 2021-03-02 22:44 |
From | Linda Antas |
Subject | [Csnd] Portaudio error |
Hello all,
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
I have a new computer (MacBook Pro 2.6 GHz 6-Core Intel Core i7) and installed csound + CsoundQt-0.9.6-2-MacOS.dmg a couple weeks ago from I'm running code that has been working for years. At first, everything was fine and, but then I started to get: *** PortAudio: error: -9998: Invalid number of channels At first, it was only on code using pvadd, but now it's happening on all code. I deleted CsoundQt and installed CsoundQt-0.9.6-MacOS.dmg and am having the same problem, but I also can't see the buttons. Just now I got code to run, which it did just fine the first time, but now I'm getting the same PortAudio error message. I get the same error message when I try to render pvadd code to a file, but not with other code. Any ideas? This is just bizarre. THANKS! ~L. |
Date | 2021-03-03 05:33 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Portaudio error |
Hi, Linda! I think the reason of the problem is that probably your new Mac's internal microphone is a mono source, ie your input device has only one channel, but portaudio expects two and complains: *** PortAudio: error: -9998: Invalid number of channels What you can try is: - don't set audio input if you don't need it (set input device to none in CsoundQt) or skip -iadc in your CsOptions - set number of input channels to 1 in your csd nchnls_i = 1 - use coreaudio or jack as your audio driver If the icons got lost, try to reset the CsoundQt settings (Help->Resest Preferences) and restart CsoundQt By the way, the newest released version is 0.9.8.1 with many improvements, I suggest to use that: https://github.com/CsoundQt/CsoundQt/releases/tag/v0.9.8.1 Hope it helps! tarmo Kontakt Linda Antas (<linda.antas@gmail.com>) kirjutas kuupäeval K, 3. märts 2021 kell 00:45:
|
Date | 2021-03-03 17:11 |
From | Linda Antas |
Subject | Re: [Csnd] Portaudio error |
Thanks so much, Tarmo! On Tue, Mar 2, 2021 at 10:33 PM Tarmo Johannes <trmjhnns@gmail.com> wrote:
|
Date | 2021-03-03 18:05 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Portaudio error |
Thanks, Linda for bringing this to our attention. I am a huge fan of the CsoundQt IDE (loving especially all the examples and widgets as a starting point for DSP students and Beginners) But, for sure this 'issue' catches me and all my students every semester (we are on the Mac here at Berklee and one's first 'render' or 'run' usually does not work.) I am hoping that the next CsoundQt IDE will 'not' default with any input selected - and so, it would work out of the box on a Mac, even with the other defaults (I might even recommend that it select Csound MIDI PortMIDI 'all' (a) as a default for the first run.) - or I am hoping that the next CsoundQt IDE 'might' even sense the platform that one is on and by default, if on a Mac, select CoreAudio - with default audio in and out - if that is better for the Mac I typically use PortAudio, but I get caught by this 'input' issue - not enough channels - all the time. Thanks for pointing this out and thank you Tarmo for the advice. - dB Dr. Richard Boulanger Professor Electronic Production and Design Berklee College of Music Professional Writing & Technology Division On Wed, Mar 3, 2021 at 12:12 PM Linda Antas <linda.antas@gmail.com> wrote:
|