[Csnd] How to get CSound working again in Terminal - Mac 10.5.7
Date | 2009-09-06 06:45 |
From | gary hiebner |
Subject | [Csnd] How to get CSound working again in Terminal - Mac 10.5.7 |
Hi Guys, I am still a noobie at CSound, but am slowly starting to understand the language and syntax. I am using a Macbook with 10.5.7, and am using MacCSound as my frontend. I am using the PPC CSound 5.09 library with the last version of MacCSound. Everything is working fine in MacCsound when I try play some csd files. My problem is when I try play csd files from the Terminal I get no sound. It used to be working, but I must have changed something somewhere along the line, and now it is not working. Hope you guys can help me. I get the following when I try play csd file from the Terminal: iburst-41-213-114-215:Desktop matchbox$ csound test.csd PortMIDI real time MIDI plugin for Csound PortAudio real-time audio module for Csound virtual_keyboard real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 5.09 (float samples) Sep 22 2008 libsndfile-1.0.16 UnifiedCSD: test.csd STARTING FILE Creating orchestra Creating score orchname: /tmp/tmp.0.sgPZ66.orc scorename: /tmp/tmp.1.o4TaV9.sco rtaudio: PortAudio module enabled ... using callback interface rtmidi: PortMIDI module enabled orch compiler: 90 lines read instr 1 Elapsed time at end of orchestra compile: real: 0.062s, CPU: 0.050s sorting score ... ... done Elapsed time at end of score sort: real: 0.275s, CPU: 0.240s Csound version 5.09 (float samples) Sep 22 2008 0dBFS level = 1.0 orch now loaded audio buffered in 1024 sample-frame blocks writing 2048-byte blks of shorts to test.aif (AIFF) SECTION 1: ftable 1: ftable 2: ftable 3: new alloc for instr 1: B 0.000 .. 30.000 T 30.000 TT 30.000 M: 0.14110 B 30.000 .. 70.000 T 70.000 TT 70.000 M: 0.14177 Score finished in csoundPerform(). inactive allocs returned to freespace end of score. overall amps: 0.14177 overall samples out of range: 0 0 errors in performance Elapsed time at end of performance: real: 18.377s, CPU: 17.340s 3015 2048-byte soundblks of shorts written to test.aif (AIFF) Everything seems to look fine, but I get no sound. Maybe I am missing something |
Date | 2009-09-06 14:32 |
From | Peiman Khosravi |
Subject | [Csnd] Re: How to get CSound working again in Terminal - Mac 10.5.7 |
Hello, > 0 errors in performance > Elapsed time at end of performance: real: 18.377s, CPU: 17.340s > 3015 2048-byte soundblks of shorts written to test.aif (AIFF) If you look in your home directory there is probably a sound-file called test.aif (or just search for test.aif in the spotlight) to which csound has written its output. For a real-time performance you need to specify output to dac in the flag-line, so try this: csound -odac test.csd where -o (NOT zero) stands for output and dac for the default digital to analogue convertor (i.e. the default output soundcard of your system). You get all the options if you just type csound in the terminal. Or check out this page: file:///Library/Frameworks/CsoundLib.framework/Resources/Manual/CommandFlagsCategory.html For better performance you may also need to tune the hardware and software buffer sizes with the flags -B and -b. Try starting with something like: csound -odac -b1024 -B1024 test.csd Note that the size is usually a power of 2 (256, 512, 1024 etc). Best Peiman On 6 Sep 2009, at 06:45, gary hiebner wrote: > Hi Guys, > > I am still a noobie at CSound, but am slowly starting to understand > the language and syntax. I am using a Macbook with 10.5.7, and am > using MacCSound as my frontend. > I am using the PPC CSound 5.09 library with the last version of > MacCSound. Everything is working fine in MacCsound when I try play > some csd files. My problem is when I try play csd files from the > Terminal I get no sound. It used to be working, but I must have > changed something somewhere along the line, and now it is not > working. Hope you guys can help me. > > I get the following when I try play csd file from the Terminal: > > iburst-41-213-114-215:Desktop matchbox$ csound test.csd > PortMIDI real time MIDI plugin for Csound > PortAudio real-time audio module for Csound > virtual_keyboard real time MIDI plugin for Csound > 0dBFS level = 32768.0 > Csound version 5.09 (float samples) Sep 22 2008 > libsndfile-1.0.16 > UnifiedCSD: test.csd > STARTING FILE > Creating orchestra > Creating score > orchname: /tmp/tmp.0.sgPZ66.orc > scorename: /tmp/tmp.1.o4TaV9.sco > rtaudio: PortAudio module enabled ... using callback interface > rtmidi: PortMIDI module enabled > orch compiler: > 90 lines read > instr 1 > Elapsed time at end of orchestra compile: real: 0.062s, CPU: 0.050s > sorting score ... > ... done > Elapsed time at end of score sort: real: 0.275s, CPU: 0.240s > Csound version 5.09 (float samples) Sep 22 2008 > 0dBFS level = 1.0 > orch now loaded > audio buffered in 1024 sample-frame blocks > writing 2048-byte blks of shorts to test.aif (AIFF) > SECTION 1: > ftable 1: > ftable 2: > ftable 3: > new alloc for instr 1: > B 0.000 .. 30.000 T 30.000 TT 30.000 M: 0.14110 > B 30.000 .. 70.000 T 70.000 TT 70.000 M: 0.14177 > Score finished in csoundPerform(). > inactive allocs returned to freespace > end of score. overall amps: 0.14177 > overall samples out of range: 0 > 0 errors in performance > Elapsed time at end of performance: real: 18.377s, CPU: 17.340s > 3015 2048-byte soundblks of shorts written to test.aif (AIFF) > > Everything seems to look fine, but I get no sound. Maybe I am > missing something > > Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-09-06 15:59 |
From | gary hiebner |
Subject | [Csnd] Re: How to get CSound working again in Terminal - Mac 10.5.7 |
Thanks, got it to work with the -odac line in the terminal. Had a bit of a blank moment there. But it is all making sense now. Thanks for the link. Will go check that out so get a better understanding og the flags. On 9/6/09, Peiman Khosravi |