[Csnd] ANN: csoundapi~ for PD

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] ANN: csoundapi~ for PD

Victor Lazzarini
ANNOUNCEMENT:

csoundapi~ 1.0  for Pure Data

This is a new PD class using the csound API & library, similar to Matt Ingall's
csound~ class for MAX/MSP.

- multiplatform: linux, OS X and windows
- compatible with versions 4.23 and 5 of the csound library
- providing:
- full score performances
- score event triggering (i,f, and e statements)
- control IO with the invalue and outvalue opcodes
- score resetting (rewinding)

- soon-to-be-implemented features:
   i) MIDI IO
   ii) multiple instances: at the moment multiple csoundapi~
      objects with libcsound 5 can be created cleanly, but they
      do not  generate audio simultaneously. It is hoped that this
      will be fixed in the near future.
      (multiple instances, resetting and score re-opening are
         not possible with 4.23)
   iii) score offset: implemented but not properly tested.


csoundapi~ is an alternative to the exiting PD csound~, providing more IO
options,
and implemented through the API. It also  finally offers csound-PD
integration on
Windows.

Where to get it?

1. www.nuim.ie/academic/music/musictec/csound/
     Windows binary (csound.lib 4.23), examples and
     multiplatform source code

2 cvs.sourceforge.net
     csoundapi~ is now part of the csound 5 frontends package and
     it can be built on Linux and OSX using scons

Windows csoundapi~ with libcsound 5 are in the pipeline.


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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] ANN: csoundapi~ for PD

Doctor B
WOW!

Victor - you are amazing!

In addition to all your fantastic UDOs, and your amazing set of pvdemix
stuff, your tutorials, and all the other work you have been sharing with the
list...  

WOW.... And... "thanks for all the fish"

Dr. B.

PS... Do you think you could get CsoundVST to work on the Mac next?  :-)


on 5/12/05 5:54 AM, Victor Lazzarini at [hidden email] wrote:

> ANNOUNCEMENT:
>
> csoundapi~ 1.0  for Pure Data
>
> This is a new PD class using the csound API & library, similar to Matt
> Ingall's
> csound~ class for MAX/MSP.
>
> - multiplatform: linux, OS X and windows
> - compatible with versions 4.23 and 5 of the csound library
> - providing:
> - full score performances
> - score event triggering (i,f, and e statements)
> - control IO with the invalue and outvalue opcodes
> - score resetting (rewinding)
>
> - soon-to-be-implemented features:
>  i) MIDI IO
>  ii) multiple instances: at the moment multiple csoundapi~
>     objects with libcsound 5 can be created cleanly, but they
>     do not  generate audio simultaneously. It is hoped that this
>     will be fixed in the near future.
>     (multiple instances, resetting and score re-opening are
>        not possible with 4.23)
>  iii) score offset: implemented but not properly tested.
>
>
> csoundapi~ is an alternative to the exiting PD csound~, providing more IO
> options,
> and implemented through the API. It also  finally offers csound-PD
> integration on
> Windows.
>
> Where to get it?
>
> 1. www.nuim.ie/academic/music/musictec/csound/
>    Windows binary (csound.lib 4.23), examples and
>    multiplatform source code
>
> 2 cvs.sourceforge.net
>    csoundapi~ is now part of the csound 5 frontends package and
>    it can be built on Linux and OSX using scons
>
> Windows csoundapi~ with libcsound 5 are in the pipeline.
>
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth

_______________________________________________________________________
 +  Dr. Richard Boulanger, Professor
 +  Music Synthesis Department, Berklee College of Music
 +  1140 Boylston Street  - Boston, MA  02215-3693
 +  Office Phone: (617) 747-2485   Office Fax: (617) 747-2564
 +  eMail: [hidden email]
 +  WebPage: http://csounds.com/boulanger/
________________________________________________________________________
 +  Almost Everything Csound @ http://csounds.com/
 +  The Csound Instrument Catalog @ http://csounds.com/catalog/
 +  The Csound Book @ http://csounds.com/book/
 +  The Csound Magazine @ http://csounds.com/ezine/
________________________________________________________________________

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] ANN: csoundapi~ for PD

Victor Lazzarini
Thanks. First, I would like to see if I can get csound 5 to perform better
on OSX, I'm a bit miffed by how slow it is compared to Maccsound. Has
anyone got any clues?

Victor

At 11:12 13/05/2005, you wrote:

>WOW!
>
>Victor - you are amazing!
>
>In addition to all your fantastic UDOs, and your amazing set of pvdemix
>stuff, your tutorials, and all the other work you have been sharing with the
>list...
>
>WOW.... And... "thanks for all the fish"
>
>Dr. B.
>
>PS... Do you think you could get CsoundVST to work on the Mac next?  :-)
>
>
>on 5/12/05 5:54 AM, Victor Lazzarini at [hidden email] wrote:
>
> > ANNOUNCEMENT:
> >
> > csoundapi~ 1.0  for Pure Data
> >
> > This is a new PD class using the csound API & library, similar to Matt
> > Ingall's
> > csound~ class for MAX/MSP.
> >
> > - multiplatform: linux, OS X and windows
> > - compatible with versions 4.23 and 5 of the csound library
> > - providing:
> > - full score performances
> > - score event triggering (i,f, and e statements)
> > - control IO with the invalue and outvalue opcodes
> > - score resetting (rewinding)
> >
> > - soon-to-be-implemented features:
> >  i) MIDI IO
> >  ii) multiple instances: at the moment multiple csoundapi~
> >     objects with libcsound 5 can be created cleanly, but they
> >     do not  generate audio simultaneously. It is hoped that this
> >     will be fixed in the near future.
> >     (multiple instances, resetting and score re-opening are
> >        not possible with 4.23)
> >  iii) score offset: implemented but not properly tested.
> >
> >
> > csoundapi~ is an alternative to the exiting PD csound~, providing more IO
> > options,
> > and implemented through the API. It also  finally offers csound-PD
> > integration on
> > Windows.
> >
> > Where to get it?
> >
> > 1. www.nuim.ie/academic/music/musictec/csound/
> >    Windows binary (csound.lib 4.23), examples and
> >    multiplatform source code
> >
> > 2 cvs.sourceforge.net
> >    csoundapi~ is now part of the csound 5 frontends package and
> >    it can be built on Linux and OSX using scons
> >
> > Windows csoundapi~ with libcsound 5 are in the pipeline.
> >
> >
> > Victor Lazzarini
> > Music Technology Laboratory
> > Music Department
> > National University of Ireland, Maynooth
>
>_______________________________________________________________________
>  +  Dr. Richard Boulanger, Professor
>  +  Music Synthesis Department, Berklee College of Music
>  +  1140 Boylston Street  - Boston, MA  02215-3693
>  +  Office Phone: (617) 747-2485   Office Fax: (617) 747-2564
>  +  eMail: [hidden email]
>  +  WebPage: http://csounds.com/boulanger/
>________________________________________________________________________
>  +  Almost Everything Csound @ http://csounds.com/
>  +  The Csound Instrument Catalog @ http://csounds.com/catalog/
>  +  The Csound Book @ http://csounds.com/book/
>  +  The Csound Magazine @ http://csounds.com/ezine/
>________________________________________________________________________
>
>--
>Send bugs reports to [hidden email]
>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
>To unsubscribe, send email to [hidden email]

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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] ANN: csoundapi~ for PD

Pat Pagano
In reply to this post by Victor Lazzarini
i will test this this weekend

Don't listen to Dr. B, we want IMPROSCULPT ON OS X!!!

:-)


 kind regards

Patrick


Patrick Pagano,M.F.A
Digital Media Specialist
Digital Worlds Institute
University Of Florida
(352) 294-2082

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] ImproSculpt

Dave Phillips
shreeswifty wrote:

> ...we want IMPROSCULPT ON OS X!!!

Actually ImproSculpt on anything would be sweet. I tried it again last
week with what was then the latest Cs5 (Linux), still got no joy. :(

But I know that one of these days it'll be back and better than ever. We
await the day. :)

Best,

dp


--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] ImproSculpt

Pat Pagano
Totally

WE AWAIT.

That was BY FAR, and i do not mean to hurt anyones feelings the
coolest thing with csound.....possibly ever...


On Fri May 13 09:03:07 EDT 2005, Dave Phillips
<[hidden email]> wrote:

> shreeswifty wrote:
>
>> ...we want IMPROSCULPT ON OS X!!!
>
> Actually ImproSculpt on anything would be sweet. I tried it again
> last week with what was then the latest Cs5 (Linux), still got no
> joy. :(
>
> But I know that one of these days it'll be back and better than
> ever. We await the day. :)
>
> Best,
>
> dp
>
>
> -- Send bugs reports to [hidden email]
>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
> To unsubscribe, send email to [hidden email]
>
>



Patrick Pagano,M.F.A
Digital Media Specialist
Digital Worlds Institute
University Of Florida
(352) 294-2082

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Matt Ingalls-4
In reply to this post by Victor Lazzarini

real-time only or file rendering as well?

On Fri, 13 May 2005, Victor Lazzarini wrote:

> Thanks. First, I would like to see if I can get csound 5 to perform better
> on OSX, I'm a bit miffed by how slow it is compared to Maccsound. Has
> anyone got any clues?
>
> Victor
>
> At 11:12 13/05/2005, you wrote:
>> WOW!
>>
>> Victor - you are amazing!
>>
>> In addition to all your fantastic UDOs, and your amazing set of pvdemix
>> stuff, your tutorials, and all the other work you have been sharing with
>> the
>> list...
>>
>> WOW.... And... "thanks for all the fish"
>>
>> Dr. B.
>>
>> PS... Do you think you could get CsoundVST to work on the Mac next?  :-)
>>
>>
>> on 5/12/05 5:54 AM, Victor Lazzarini at [hidden email] wrote:
>>
>> > ANNOUNCEMENT:
>> >
>> > csoundapi~ 1.0  for Pure Data
>> >
>> > This is a new PD class using the csound API & library, similar to Matt
>> > Ingall's
>> > csound~ class for MAX/MSP.
>> >
>> > - multiplatform: linux, OS X and windows
>> > - compatible with versions 4.23 and 5 of the csound library
>> > - providing:
>> > - full score performances
>> > - score event triggering (i,f, and e statements)
>> > - control IO with the invalue and outvalue opcodes
>> > - score resetting (rewinding)
>> >
>> > - soon-to-be-implemented features:
>> >  i) MIDI IO
>> >  ii) multiple instances: at the moment multiple csoundapi~
>> >     objects with libcsound 5 can be created cleanly, but they
>> >     do not  generate audio simultaneously. It is hoped that this
>> >     will be fixed in the near future.
>> >     (multiple instances, resetting and score re-opening are
>> >        not possible with 4.23)
>> >  iii) score offset: implemented but not properly tested.
>> >
>> >
>> > csoundapi~ is an alternative to the exiting PD csound~, providing more
>> IO
>> > options,
>> > and implemented through the API. It also  finally offers csound-PD
>> > integration on
>> > Windows.
>> >
>> > Where to get it?
>> >
>> > 1. www.nuim.ie/academic/music/musictec/csound/
>> >    Windows binary (csound.lib 4.23), examples and
>> >    multiplatform source code
>> >
>> > 2 cvs.sourceforge.net
>> >    csoundapi~ is now part of the csound 5 frontends package and
>> >    it can be built on Linux and OSX using scons
>> >
>> > Windows csoundapi~ with libcsound 5 are in the pipeline.
>> >
>> >
>> > Victor Lazzarini
>> > Music Technology Laboratory
>> > Music Department
>> > National University of Ireland, Maynooth
>>
>> _______________________________________________________________________
>>  +  Dr. Richard Boulanger, Professor
>>  +  Music Synthesis Department, Berklee College of Music
>>  +  1140 Boylston Street  - Boston, MA  02215-3693
>>  +  Office Phone: (617) 747-2485   Office Fax: (617) 747-2564
>>  +  eMail: [hidden email]
>>  +  WebPage: http://csounds.com/boulanger/
>> ________________________________________________________________________
>>  +  Almost Everything Csound @ http://csounds.com/
>>  +  The Csound Instrument Catalog @ http://csounds.com/catalog/
>>  +  The Csound Book @ http://csounds.com/book/
>>  +  The Csound Magazine @ http://csounds.com/ezine/
>> ________________________________________________________________________
>>
>> --
>> Send bugs reports to [hidden email]
>>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
>> To unsubscribe, send email to [hidden email]
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
> --
> Send bugs reports to [hidden email]
>             (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
> To unsubscribe, send email to [hidden email]
>
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Doctor B
In reply to this post by Pat Pagano
IMPROSCULPT then CsoundVST is OK with me!

-dB

on 5/13/05 8:08 AM, shreeswifty at [hidden email] wrote:

> i will test this this weekend
>
> Don't listen to Dr. B, we want IMPROSCULPT ON OS X!!!
>
> :-)
>
> kind regards
>
> Patrick
>
> Patrick Pagano,M.F.A
> Digital Media Specialist
> Digital Worlds Institute
> University Of Florida
> (352) 294-2082
_______________________________________________________________________
 +  Dr. Richard Boulanger, Professor
 +  Music Synthesis Department, Berklee College of Music
 +  1140 Boylston Street  - Boston, MA  02215-3693
 +  Office Phone: (617) 747-2485   Office Fax: (617) 747-2564
 +  eMail: [hidden email]
 +  WebPage: http://csounds.com/boulanger/
________________________________________________________________________
 +  Almost Everything Csound @ http://csounds.com/
 +  The Csound Instrument Catalog @ http://csounds.com/catalog/
 +  The Csound Book @ http://csounds.com/book/
 +  The Csound Magazine @ http://csounds.com/ezine/
________________________________________________________________________

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Mario Pantin
In reply to this post by Victor Lazzarini
Hello,

Thanks Victor for csoundapi~ for pd!!

My experience so far (using winxp, the csoundapi~ dll
(4.23) on Victor's csound page and pd 38.3):

As my main interest is to use csound as an effects
processor, the first thing i did was to route a stereo
channel pair from pd into csoundapi~. It works!!!!

Second thing I tried was to route more channels into
csoundapi~. It does not work :( I tried with inq, inh
and inch. However, csoundapi~ creates the inlets.
Also, when using a orch with 4 outputs, I got the same
output as 1 and 2 on channels 3 and 4 (duplicates).

Also, PD crashes when I  send a score instrument
statement for diskin with a new soundfile. Lastly, I
also get a crash when I send a score f-statement
(gen01).

Sorry for my early morning english and thanks in
advance for any insight. And thx again Victor for your
work!




       
       
               
___________________________________________________________
Yahoo! Messenger - want a free and easy way to contact your friends online? http://uk.messenger.yahoo.com
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
Thanks for your bug report. I'll investigate.
Some of the crashes might be caused by
the csound lib 4.23, as it's not foolproof.

Victor

At 09:42 16/05/2005, you wrote:

>Hello,
>
>Thanks Victor for csoundapi~ for pd!!
>
>My experience so far (using winxp, the csoundapi~ dll
>(4.23) on Victor's csound page and pd 38.3):
>
>As my main interest is to use csound as an effects
>processor, the first thing i did was to route a stereo
>channel pair from pd into csoundapi~. It works!!!!
>
>Second thing I tried was to route more channels into
>csoundapi~. It does not work :( I tried with inq, inh
>and inch. However, csoundapi~ creates the inlets.
>Also, when using a orch with 4 outputs, I got the same
>output as 1 and 2 on channels 3 and 4 (duplicates).
>
>Also, PD crashes when I  send a score instrument
>statement for diskin with a new soundfile. Lastly, I
>also get a crash when I send a score f-statement
>(gen01).
>
>Sorry for my early morning english and thanks in
>advance for any insight. And thx again Victor for your
>work!
>
>
>
>
>
>
>
>___________________________________________________________
>Yahoo! Messenger - want a free and easy way to contact your friends
>online? http://uk.messenger.yahoo.com
>--
>Send bugs reports to [hidden email]
>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
>To unsubscribe, send email to [hidden email]

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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
In reply to this post by Mario Pantin


>Second thing I tried was to route more channels into
>csoundapi~. It does not work :( I tried with inq, inh
>and inch. However, csoundapi~ creates the inlets.
>Also, when using a orch with 4 outputs, I got the same
>output as 1 and 2 on channels 3 and 4 (duplicates).

4 channel output worked here as expected; I could not
reproduce your error.

csoundapi~ will create as many in/outlets as the orchestra
defines; if you change your orchestra and try re-opening it
without re-creating the object, the number of outlets will not
change and some channels might be muted.





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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
In reply to this post by Mario Pantin

>
>Also, PD crashes when I  send a score instrument
>statement for diskin with a new soundfile. Lastly, I
>also get a crash when I send a score f-statement
>(gen01).


Yes there is a problem with string arguments to messages. I'll
try to fix that asap.

Victor

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
In reply to this post by Mario Pantin

>
>Also, PD crashes when I  send a score instrument
>statement for diskin with a new soundfile. Lastly, I
>also get a crash when I send a score f-statement
>(gen01).

I checked this and, while there is no mention of possibility of
string arguments to the API function scoreEvent(), I suspect
I would not be able to pass such arguments, only numeric ones.
So for soundfiles, at the moment, we are limited to the soundin.filcod
format (see the manual for it), which uses a numeric filcod.

This,I'm afraid, is it, for cs 4.23. Something might be done to support
string arguments in csound 5.

However, if you rename your files as soundin.1, soundin.2, it will work
(with diskin, soundin and gen01).

Victor

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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Mario Pantin
In reply to this post by Victor Lazzarini

--- Victor Lazzarini <[hidden email]> wrote:

> 4 channel output worked here as expected; I could
> not
> reproduce your error.
>
> csoundapi~ will create as many in/outlets as the
> orchestra
> defines; if you change your orchestra and try
> re-opening it
> without re-creating the object, the number of
> outlets will not
> change and some channels might be muted.

Hi Victor,

I tried again with no luck with a slightly different
csd. This time, I'm getting a very distorted output,
which seems to be a mix of asigl + aleft, and asigr +
aright, on outputs 3 an 4. 1 and 2 outputs asigl and
asigr normally. I'll attach the simple csd i'm using
for testing.

sr=44100
kr=441
ksmps=100
nchnls=4
       
instr 3

asigl, asigr diskin "C:/nixon.wav", 1, 0, 1
aleft, aright ins
outc asigl, asigr, aleft, aright ;I tried with outq
with the same result.

endin



       
       
               
___________________________________________________________
Yahoo! Messenger - want a free and easy way to contact your friends online? http://uk.messenger.yahoo.com
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
I noticed that. I'm looking at it now. Thanks.

Victor

At 10:55 16/05/2005, you wrote:

>--- Victor Lazzarini <[hidden email]> wrote:
>
> > 4 channel output worked here as expected; I could
> > not
> > reproduce your error.
> >
> > csoundapi~ will create as many in/outlets as the
> > orchestra
> > defines; if you change your orchestra and try
> > re-opening it
> > without re-creating the object, the number of
> > outlets will not
> > change and some channels might be muted.
>
>Hi Victor,
>
>I tried again with no luck with a slightly different
>csd. This time, I'm getting a very distorted output,
>which seems to be a mix of asigl + aleft, and asigr +
>aright, on outputs 3 an 4. 1 and 2 outputs asigl and
>asigr normally. I'll attach the simple csd i'm using
>for testing.
>
>sr=44100
>kr=441
>ksmps=100
>nchnls=4
>
>instr 3
>
>asigl, asigr diskin "C:/nixon.wav", 1, 0, 1
>aleft, aright ins
>outc asigl, asigr, aleft, aright ;I tried with outq
>with the same result.
>
>endin
>
>
>
>
>
>
>___________________________________________________________
>Yahoo! Messenger - want a free and easy way to contact your friends
>online? http://uk.messenger.yahoo.com
>--
>Send bugs reports to [hidden email]
>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
>To unsubscribe, send email to [hidden email]

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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
In reply to this post by Mario Pantin
Unfortunately, this seems to be a bug in the 4.23 libcsound, as I
just tested the 5.00 version on Linux and it works as we would expect.

I'll see if I can fix libcsound 4.23, but it might take a little longer,
as it's not my code, so I'll have to do a little investigative work.

Victor

At 10:55 16/05/2005, you wrote:

>--- Victor Lazzarini <[hidden email]> wrote:
>
> > 4 channel output worked here as expected; I could
> > not
> > reproduce your error.
> >
> > csoundapi~ will create as many in/outlets as the
> > orchestra
> > defines; if you change your orchestra and try
> > re-opening it
> > without re-creating the object, the number of
> > outlets will not
> > change and some channels might be muted.
>
>Hi Victor,
>
>I tried again with no luck with a slightly different
>csd. This time, I'm getting a very distorted output,
>which seems to be a mix of asigl + aleft, and asigr +
>aright, on outputs 3 an 4. 1 and 2 outputs asigl and
>asigr normally. I'll attach the simple csd i'm using
>for testing.
>
>sr=44100
>kr=441
>ksmps=100
>nchnls=4
>
>instr 3
>
>asigl, asigr diskin "C:/nixon.wav", 1, 0, 1
>aleft, aright ins
>outc asigl, asigr, aleft, aright ;I tried with outq
>with the same result.
>
>endin
>
>
>
>
>
>
>___________________________________________________________
>Yahoo! Messenger - want a free and easy way to contact your friends
>online? http://uk.messenger.yahoo.com
>--
>Send bugs reports to [hidden email]
>               (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
>To unsubscribe, send email to [hidden email]

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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Istvan Varga
In reply to this post by Victor Lazzarini
Victor Lazzarini wrote:

> I checked this and, while there is no mention of possibility of
> string arguments to the API function scoreEvent(), I suspect
> I would not be able to pass such arguments, only numeric ones.
> So for soundfiles, at the moment, we are limited to the soundin.filcod
> format (see the manual for it), which uses a numeric filcod.
>
> This,I'm afraid, is it, for cs 4.23. Something might be done to support
> string arguments in csound 5.

In csound5, there is csound->insert_score_event() (see musmon.c for
documentation on this function) that takes the event as an EVTBLK*
rather than an array of MYFLT, making it possible to use string
arguments (more precisely, one string argument due to limitations of
score events).
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Istvan Varga
In reply to this post by Victor Lazzarini
By the way here are two minor bug reports:

In csoundapi_tilde.c:

       for(n=0; n < numlets; n++) {
         if(n < chans) csin[pos] = (MYFLT) in[n][i]*32767.f;
         out[n][i] =  (t_float)(n < chans ? csout[pos]/32767.f : 0.0);
         pos++;
       }

shouldn't the scale factor be csound->e0dbfs rather than 32767 ?

Another possible bug in sndloop.c:

         if(p->buffer.auxp==NULL)   /* allocate memory if necessary */
                 csound->AuxAlloc(csound, p->durs*sizeof(float), &p->buffer);

the allocated memory is later referenced as MYFLT*. So, the sizeof(float)
might actually be sizeof(MYFLT), if I understand the code correctly.
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini

At 12:26 16/05/2005, you wrote:

>By the way here are two minor bug reports:
>
>In csoundapi_tilde.c:
>
>       for(n=0; n < numlets; n++) {
>         if(n < chans) csin[pos] = (MYFLT) in[n][i]*32767.f;
>         out[n][i] =  (t_float)(n < chans ? csout[pos]/32767.f : 0.0);
>         pos++;
>       }
>
>shouldn't the scale factor be csound->e0dbfs rather than 32767 ?

yes. quite right


>Another possible bug in sndloop.c:
>
>         if(p->buffer.auxp==NULL)   /* allocate memory if necessary */
>                 csound->AuxAlloc(csound, p->durs*sizeof(float), &p->buffer);
>
>the allocated memory is later referenced as MYFLT*. So, the sizeof(float)
>might actually be sizeof(MYFLT), if I understand the code correctly.

I thought I had changed that ages ago. Thanks for spotting it.

>
>Send bugs reports to [hidden email]
>              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
>To unsubscribe, send email to [hidden email]

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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ANN: csoundapi~ for PD

Victor Lazzarini
In reply to this post by Mario Pantin
Multichannel IO is fixed now; you can download the new csoundapi~ from
www.nuim.ie/academic/music/musictec/csound/
. Thanks a lot for the bug report.

Victor



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

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]