Csound Csound-dev Csound-tekno Search About

Re: csoundapi~ Pd Mac

Date2006-05-03 08:15
FromVictor Lazzarini
SubjectRe: csoundapi~ Pd Mac
csoundapi~ is compiling and running, the console messages
say
so. Since there is no audio out, it's a question of clicking
in the
PD controls for volume etc. There are two instruments in
this demo,
a synthesis and a processing one. The synthesis one works
with the
message with the i-statement. The processing is always on.

The csoundapi~ controls are activated by a loadbang when the
patch is open,
sending the 'set' message to register the control channels,
so if
the csd is re-compiled the 'set'  message needs to be sent
again.
That might be why you're not getting any audio.

Victor

>
>
>
> Hi,
> Apologize for long post data.  I have a SFDIR pointed to
> by the  environment.plist, also Pd's path, as well as the
> comment and object fields  in the csoundapi.pd.  From the
> console.app it seems the Pd ex's controls are  not
> registering since there's no volume.  Still a bit confused
> by this, but  have better understanding of what might
> likely eventually work now. Regards,
> Jim Hearon
>
>
>
> environment.plist in ./MacOSX
>
> 
>  1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
> ;> 
> 
>      SFDIR
>      /Users/newCsound5
>
>      SSDIR
>      /Users/newCsound5
>
>      SADIR
>      /Users/newCsound5
>
>      OPCODEDIR
>
> /Library/Frameworks/CsoundLib.framework/Versions/5
> .1/Resources/Opcodes
>
> 
> 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> Pd Startup:
> /Library/Frameworks/CsoundLib.Framework/Versions/5.1/Resou
> rces/PD/csoundapi~
>
> Pd Paths:
> /Users/newCsound5
>
> ex. csoundapi.pd
> message: [open /Users/newCsound5/csapi_demo.csd]
> object:[csoundapi~ /Users/newCsound5/csapi_demo.csd]
>
>
> Audio: ON
> Faders on csoundapi.pd ON and UP
> press event i, then event f, then run, then toggle X.
>
>
> >>>>>>>>>>Console.app output>>>>>>>>>>>>>>>
>
> ===== Tuesday, May 2, 2006 2:57:08 PM
Pacific/Honolulu
> ===== inactive allocs returned to freespace
> end of score.           overall amps:      0.0      0.0
>   0.0      0.0
>        overall samples out of range:        0        0
>    0        0 0 errors in performance
> Elapsed time at end of performance: real: 186.431s, CPU:
> 18.980s PortMIDI real time MIDI plugin for Csound
> CoreAudio real-time audio module for Csound
> by Victor Lazzarini
> JACK real-time audio module for Csound by Istvan Varga
> PortAudio real-time audio module for Csound
> 0dBFS level = 32768.0
> Csound version 5.01.0 (float samples) Mar 13 2006
> libsndfile-1.0.13
> UnifiedCSD:  /users/newCsound5/csapi_demo.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> orchname:  /tmp/tmp.3.Mkhuja.orc
> scorename: /tmp/tmp.4.fNm3vO.sco
> rtaudio: PortAudio module enabled ... using callback
> interface rtmidi: PortMIDI module enabled
> orch compiler:
> 28 lines read
>     instr    1
>     instr    2
> outs inconsistent with global nchnls (4); replaced with
> outq Elapsed time at end of orchestra compile: real:
> 0.006s, CPU: 0.010s sorting score ...
>     ... done
> Elapsed time at end of score sort: real: 0.007s, CPU:
> 0.010s Csound version 5.01.0 (float samples) Mar 13 2006
> displays suppressed
> 0dBFS level = 32768.0
> orch now loaded
> audio buffered in 1024 sample-frame blocks
> SECTION 1:
> ftable 1:
> new alloc for instr 2:
>   rtevent:       T  3.753 TT  3.753 M:      0.0      0.0
>    0.0      0.0 new alloc for instr 1:
>   rtevent:       T  4.426 TT  4.426 M:      0.0      0.0
>    0.0      0.0 WARNING: replacing previous ftable
1
> ftable 1:
>   rtevent:       T 20.158 TT 20.158 M:      0.0      0.0
>    0.0      0.0
>   rtevent:       T 21.731 TT 21.731 M:      0.0      0.0
>    0.0      0.0 WARNING: replacing previous ftable
1
> ftable 1:
>   rtevent:       T 29.556 TT 29.556 M:      0.0      0.0
>    0.0      0.0 Score finished in csoundPerformKsmps().
>
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk

Date2006-05-03 12:53
FromVictor Lazzarini
SubjectRe: csoundapi~ Pd Mac: correction
I should correct myself: if the csoundapi~ object is re-instantiated,
then the set messages need to be re-sent. It's fine with a
simple re-compilation using 'open'.

Victor

At 08:15 03/05/2006, you wrote:
>csoundapi~ is compiling and running, the console messages
>say
>so. Since there is no audio out, it's a question of clicking
>in the
>PD controls for volume etc. There are two instruments in
>this demo,
>a synthesis and a processing one. The synthesis one works
>with the
>message with the i-statement. The processing is always on.
>
>The csoundapi~ controls are activated by a loadbang when the
>patch is open,
>sending the 'set' message to register the control channels,
>so if
>the csd is re-compiled the 'set'  message needs to be sent
>again.
>That might be why you're not getting any audio.
>
>Victor
>
> >
> >
> >
> > Hi,
> > Apologize for long post data.  I have a SFDIR pointed to
> > by the  environment.plist, also Pd's path, as well as the
> > comment and object fields  in the csoundapi.pd.  From the
> > console.app it seems the Pd ex's controls are  not
> > registering since there's no volume.  Still a bit confused
> > by this, but  have better understanding of what might
> > likely eventually work now. Regards,
> > Jim Hearon
> >
> >
> >
> > environment.plist in ./MacOSX
> >
> > 
> >  > 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
> > ;> 
> > 
> >      SFDIR
> >      /Users/newCsound5
> >
> >      SSDIR
> >      /Users/newCsound5
> >
> >      SADIR
> >      /Users/newCsound5
> >
> >      OPCODEDIR
> >
> > /Library/Frameworks/CsoundLib.framework/Versions/5
> > .1/Resources/Opcodes
> >
> > 
> > 
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > Pd Startup:
> > /Library/Frameworks/CsoundLib.Framework/Versions/5.1/Resou
> > rces/PD/csoundapi~
> >
> > Pd Paths:
> > /Users/newCsound5
> >
> > ex. csoundapi.pd
> > message: [open /Users/newCsound5/csapi_demo.csd]
> > object:[csoundapi~ /Users/newCsound5/csapi_demo.csd]
> >
> >
> > Audio: ON
> > Faders on csoundapi.pd ON and UP
> > press event i, then event f, then run, then toggle X.
> >
> >
> > >>>>>>>>>>Console.app output>>>>>>>>>>>>>>>
> >
> > ===== Tuesday, May 2, 2006 2:57:08 PM
>Pacific/Honolulu
> > ===== inactive allocs returned to freespace
> > end of score.           overall amps:      0.0      0.0
> >   0.0      0.0
> >        overall samples out of range:        0        0
> >    0        0 0 errors in performance
> > Elapsed time at end of performance: real: 186.431s, CPU:
> > 18.980s PortMIDI real time MIDI plugin for Csound
> > CoreAudio real-time audio module for Csound
> > by Victor Lazzarini
> > JACK real-time audio module for Csound by Istvan Varga
> > PortAudio real-time audio module for Csound
> > 0dBFS level = 32768.0
> > Csound version 5.01.0 (float samples) Mar 13 2006
> > libsndfile-1.0.13
> > UnifiedCSD:  /users/newCsound5/csapi_demo.csd
> > STARTING FILE
> > Creating options
> > Creating orchestra
> > Creating score
> > orchname:  /tmp/tmp.3.Mkhuja.orc
> > scorename: /tmp/tmp.4.fNm3vO.sco
> > rtaudio: PortAudio module enabled ... using callback
> > interface rtmidi: PortMIDI module enabled
> > orch compiler:
> > 28 lines read
> >     instr    1
> >     instr    2
> > outs inconsistent with global nchnls (4); replaced with
> > outq Elapsed time at end of orchestra compile: real:
> > 0.006s, CPU: 0.010s sorting score ...
> >     ... done
> > Elapsed time at end of score sort: real: 0.007s, CPU:
> > 0.010s Csound version 5.01.0 (float samples) Mar 13 2006
> > displays suppressed
> > 0dBFS level = 32768.0
> > orch now loaded
> > audio buffered in 1024 sample-frame blocks
> > SECTION 1:
> > ftable 1:
> > new alloc for instr 2:
> >   rtevent:       T  3.753 TT  3.753 M:      0.0      0.0
> >    0.0      0.0 new alloc for instr 1:
> >   rtevent:       T  4.426 TT  4.426 M:      0.0      0.0
> >    0.0      0.0 WARNING: [mreplacing previous ftable
>1[m
> > [mftable 1:
> >   rtevent:       T 20.158 TT 20.158 M:      0.0      0.0
> >    0.0      0.0
> >   rtevent:       T 21.731 TT 21.731 M:      0.0      0.0
> >    0.0      0.0 WARNING: [mreplacing previous ftable
>1[m
> > [mftable 1:
> >   rtevent:       T 29.556 TT 29.556 M:      0.0      0.0
> >    0.0      0.0 Score finished in csoundPerformKsmps().
> >
> >
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to
> > csound-unsubscribe@lists.bath.ac.uk
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth