[Cs-dev] Heads up! Big header change
Date | 2013-02-21 02:47 |
From | Andres Cabrera |
Subject | [Cs-dev] Heads up! Big header change |
Hi, I've done a big reorganization of the csound.h header, so please be sure to pull before doing changes, as merging will not be a pretty sight... I've also cleaned up the doxygen docs, and now they look like: http://csound.sourceforge.net/doc/html/index.html Please have a hard look and think what else the API would benefit from. Cheers, Andrés ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/li |
Date | 2013-02-21 02:58 |
From | Pete Goodeve |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None |
Date | 2013-02-21 03:46 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None None |
Just off the top of my head...
csoundPerformKsmps and csoundPerformKsmpsAbsolute are ambiguous, if they do something different that should be clarified, if not csoundPerformKsmpsAbsolute should be removed. There is a need for the API to support supplying the complete csd and/or orc and sco as strings, not files. Things seem to be pretty much there, but I have some niggles. Does csoundCompileOrc to accept a csd string, not just an orc string? If so the documentation should say so. Also, csoundReadScore is an ambiguous name, one might think it calls for a filename and not a block of sco text. Perhaps csoundCompileScore or csoundSetScore would be clearer. Regards, Mike On Wed, Feb 20, 2013 at 9:58 PM, Pete Goodeve <pete.goodeve@computer.org> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-02-21 03:47 |
From | andy fillebrown |
Subject | Re: [Cs-dev] Heads up! Big header change |
Hi Andres, I've only looked at it briefly, so no API suggestions yet, but I do have a few documentation nitpicks. The main page says to look in the CVS repo for csound.h if it is not included in the distribution. There is no description for the MessageV, SetDefaultMessageCallback, and FlushCircularBuffer functions. The InitializeCscore function description repeats the function name. Regards, ~ andy.f On Wed, Feb 20, 2013 at 9:47 PM, Andres Cabrera |
Date | 2013-02-21 07:34 |
From | Victor |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None None |
csoundCompileOrc compiles orchestra strings and csoundReadScore reads scores and substitutes completely the running score. Because there is no actual compilation, but preprocessing, I am not keen on using the compilation name for score. A string CSD reader could be there, but with the caveat that some of its functionality can only be used once, at the first compilation, for instance, in the case of CsOptions. Victor
|
Date | 2013-02-21 11:21 |
From | Steven Yi |
Subject | Re: [Cs-dev] Heads up! Big header change |
Hi Andres, I like the reorganization very much! Thanks for putting in the time on this. I think the layout changes will be very helpful. steven On Thu, Feb 21, 2013 at 2:47 AM, Andres Cabrera |
Date | 2013-02-21 11:30 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Heads up! Big header change |
+1 On 21 Feb 2013, at 11:21, Steven Yi wrote: > Hi Andres, > > I like the reorganization very much! Thanks for putting in the time > on this. I think the layout changes will be very helpful. > > steven > > On Thu, Feb 21, 2013 at 2:47 AM, Andres Cabrera |
Date | 2013-02-21 12:22 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Heads up! Big header change |
Wow, this is great Andres! Can I assume that the address you gave will be a permanent link to the latest API docs? If so I'm bookmarking immediately! On 21 February 2013 11:30, Victor Lazzarini |
Date | 2013-02-21 14:10 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None None |
How about csoundInputScore then? I guarantee some people will read csoundReadScore as taking a filename. Regards, Mike
On Thu, Feb 21, 2013 at 2:34 AM, Victor <Victor.Lazzarini@nuim.ie> wrote:
Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-02-22 03:15 |
From | Pete Goodeve |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None |
Date | 2013-02-22 03:39 |
From | Pete Goodeve |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None |
Date | 2013-02-22 06:23 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Heads up! Big header change |
Hi Rory, I'm not sure this would be the permanent address, since we aren't really using sourceforge hosting anuymore, although it could be... Cheers, Andres On Thu, Feb 21, 2013 at 4:22 AM, Rory Walsh |
Date | 2013-02-22 06:24 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Heads up! Big header change |
Sorry, yes, Csound 5 keeps API compatibility, but we are breaking it for Csound 6. Cheers, Andres On Thu, Feb 21, 2013 at 7:39 PM, Pete Goodeve |
Date | 2013-02-27 09:44 |
From | andy fillebrown |
Subject | Re: [Cs-dev] Heads up! Big header change |
Hi Andres, Is there a way to query real-time audio devices via the API, and maybe set the output, too? AFAIK the only way of finding out what devices are available is by using the csound command. Cheers, ~ andy.f On Wed, Feb 20, 2013 at 9:47 PM, Andres Cabrera |
Date | 2013-02-27 17:04 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Heads up! Big header change |
yes, you can set the output via the API. I am addressing the device list issue now. I will provide an API function that will return a list of devices in a formatted string. Victor On 27 Feb 2013, at 09:44, andy fillebrown wrote: > Hi Andres, > > Is there a way to query real-time audio devices via the API, and maybe > set the output, too? AFAIK the only way of finding out what devices > are available is by using the csound command. > > Cheers, > ~ andy.f > > > > On Wed, Feb 20, 2013 at 9:47 PM, Andres Cabrera |
Date | 2013-02-27 18:51 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Heads up! Big header change |
Great, thanks for this. Wouldn't it be better to provide more information than just the string? Maybe also passing the device code Csound needs to use it. Also, how can the API user choose the rt module being queried? And even more... are you planning to add this for MIDI too? Cheers, Andrés On Wed, Feb 27, 2013 at 9:04 AM, Victor Lazzarini |
Date | 2013-02-27 19:21 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Heads up! Big header change |
It can be done for MIDI too. The problem is how to pass that information. If you have a better idea, please outline it. Victor On 27 Feb 2013, at 18:51, Andres Cabrera wrote: > Great, thanks for this. Wouldn't it be better to provide more > information than just the string? Maybe also passing the device code > Csound needs to use it. Also, how can the API user choose the rt > module being queried? > > And even more... are you planning to add this for MIDI too? > > Cheers, > Andrés > > On Wed, Feb 27, 2013 at 9:04 AM, Victor Lazzarini > |
Date | 2013-02-27 21:48 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Heads up! Big header change |
How about: typedef struct { const char *device_name; const char *device_id; /* to pass to Csound */ const char *rtmodule; int max_in_chnls; int max_out_chnls; /* maybe a linked list here ? */ } CS_AUDIODEVICE; Of course this means that you need to add a free function for the device list. Cheers, Andrés On Wed, Feb 27, 2013 at 11:21 AM, Victor Lazzarini |
Date | 2013-02-28 20:33 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Heads up! Big header change |
OK, something like this is in. I have implemented it the listing device callback on rtpa.c and rtauhal.c. I can't do anything on rtalsa.c and rtpulse.c because I don't have a linux box to test. However I added a commented-out code in rtalsa.c that is start, so if anyone who is on Linux could finish this I'd appreciate. I've also added a means of checking what modules are currently available for IO (audio, midi). Victor On 27 Feb 2013, at 21:48, Andres Cabrera wrote: > How about: > > typedef struct { > const char *device_name; > const char *device_id; /* to pass to Csound */ > const char *rtmodule; > int max_in_chnls; > int max_out_chnls; > /* maybe a linked list here ? */ > } CS_AUDIODEVICE; > > Of course this means that you need to add a free function for the device list. > > Cheers, > Andrés > > > On Wed, Feb 27, 2013 at 11:21 AM, Victor Lazzarini > |
Date | 2013-03-01 00:29 |
From | andy fillebrown |
Subject | Re: [Cs-dev] Heads up! Big header change |
Can the available bit depths and sample rates be added in, too? I would find this useful. Cheers, ~ af On Wed, Feb 27, 2013 at 4:48 PM, Andres Cabrera |
Date | 2013-03-01 19:40 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Heads up! Big header change |
With portaudio, all we have is floats for bit-depths. All sampling rates are available, afaik. In coreaudio, it's basically the same. Don't know about alsa. Jack is a different story (it's not practical to list devices). Victor On 1 Mar 2013, at 00:29, andy fillebrown wrote: > Can the available bit depths and sample rates be added in, too? I > would find this useful. > > Cheers, > ~ af > > > > On Wed, Feb 27, 2013 at 4:48 PM, Andres Cabrera |
Date | 2013-03-01 20:33 |
From | andy fillebrown |
Subject | Re: [Cs-dev] Heads up! Big header change |
Hmm, o.k. Front-ends can assume the user knows what depths and rates are available, or query the device some other way. No problem. Cheers, ~ af On Fri, Mar 1, 2013 at 2:40 PM, Victor Lazzarini |
Date | 2013-03-01 21:18 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Heads up! Big header change |
By the way, the API now allows hosts to check what IO modules are available for MIDI and audio. Victor On 1 Mar 2013, at 20:33, andy fillebrown wrote: > Hmm, o.k. Front-ends can assume the user knows what depths and rates > are available, or query the device some other way. No problem. > > Cheers, > ~ af > > > > On Fri, Mar 1, 2013 at 2:40 PM, Victor Lazzarini > |
Date | 2013-03-01 22:34 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Heads up! Big header change |
Attachments | None None |
Nice. sent from a mobile device... On 1 Mar 2013 21:18, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
By the way, the API now allows hosts to check what IO modules are available for MIDI and audio. |