Csound Csound-dev Csound-tekno Search About

Integrating Csound in Standalone Applications

Date2015-07-28 09:49
FromDave Mooney
SubjectIntegrating Csound in Standalone Applications
Hi there, I'm currently discussing the creation of an audio application with
a developer who works in c++. I'm wondering what's the easiest / best way to
integrate csound within a standalone audio applications.

If this application did incorporate some csound code, could that application
be commercially released with a closed source under the license with which
csound is distributed?





--
View this message in context: http://csound.1045644.n5.nabble.com/Integrating-Csound-in-Standalone-Applications-tp5742910.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-07-28 10:11
FromRory Walsh
SubjectRe: Integrating Csound in Standalone Applications
As far as I am aware, yes, you can use Csound in a closed source
application so long as you link dynamically, and publish any changes
you may make to the Csound source.

There are a few ways to integrate Csound into an audio application.
You can just start a Csound processes when you wish to perform
something, in the same way WinXound does each time you hit play. Or
you can use the Csound API which gives you far more control over what
Csound is doing. If you use the API(recommended), you'll need to
decide if you want Csound to handle audio and MIDI input and output.
The alternative would be to use another audio IO library and hook
Csound into it by accessing pointers to Csound's input and output
buffers.

Then there is the big question of what GUI toolkits to use. QT is a
very mature platform, and is the one CsoundQT uses. I've used
wxWidgets, Microsoft's MFC classes, Borland's VCL and most recently
JUCE. I had to give up on VCL and MFC to pursue cross platform
development. I liked wxWidgets, and I find JUCE very good. I've never
used QT but considering how many developers use it, I imagine it's
pretty rock solid.

Oh and finally, it might be worth looking into a GUI library that can
be ported to mobile platforms too. You may not need it now, but it's
nice to keep your options open.


On 28 July 2015 at 09:49, Dave Mooney  wrote:
> Hi there, I'm currently discussing the creation of an audio application with
> a developer who works in c++. I'm wondering what's the easiest / best way to
> integrate csound within a standalone audio applications.
>
> If this application did incorporate some csound code, could that application
> be commercially released with a closed source under the license with which
> csound is distributed?
>
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Integrating-Csound-in-Standalone-Applications-tp5742910.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-07-28 10:26
FromDave Mooney
SubjectRe: Integrating Csound in Standalone Applications
Wow, Rory, thanks a million for the fast and comprehensive response! I
thought the API might be the way to go, I just wasn't sure if there was a
better approach. That's all perfect. Cheers

Dave



--
View this message in context: http://csound.1045644.n5.nabble.com/Integrating-Csound-in-Standalone-Applications-tp5742910p5742912.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-07-28 13:51
FromTarmo Johannes
SubjectRe: Integrating Csound in Standalone Applications
AttachmentsNone  None  

Hi,

 

I have used many times Qt and C++ for applications using Csound via C++ API.

It depends of course on your needs, experiences and preferences, but Qt is really very good framework (also cross-platform and if you use QML for frontend, can port easily also to android and iOs), the development environment, QtCreator and documentation are just great.

 

I have some projects up on https://github.com/tarmoj/

it is probablty not best example of coding, but something still

 

Have a look also at examples on https://github.com/csound/csoundAPI_examples/tree/master/cpp

 

Take care!

tarmo

 

On Tuesday 28 July 2015 10:11:35 Rory Walsh wrote:

> As far as I am aware, yes, you can use Csound in a closed source

> application so long as you link dynamically, and publish any changes

> you may make to the Csound source.

>

> There are a few ways to integrate Csound into an audio application.

> You can just start a Csound processes when you wish to perform

> something, in the same way WinXound does each time you hit play. Or

> you can use the Csound API which gives you far more control over what

> Csound is doing. If you use the API(recommended), you'll need to

> decide if you want Csound to handle audio and MIDI input and output.

> The alternative would be to use another audio IO library and hook

> Csound into it by accessing pointers to Csound's input and output

> buffers.

>

> Then there is the big question of what GUI toolkits to use. QT is a

> very mature platform, and is the one CsoundQT uses. I've used

> wxWidgets, Microsoft's MFC classes, Borland's VCL and most recently

> JUCE. I had to give up on VCL and MFC to pursue cross platform

> development. I liked wxWidgets, and I find JUCE very good. I've never

> used QT but considering how many developers use it, I imagine it's

> pretty rock solid.

>

> Oh and finally, it might be worth looking into a GUI library that can

> be ported to mobile platforms too. You may not need it now, but it's

> nice to keep your options open.

>

> On 28 July 2015 at 09:49, Dave Mooney <dave.e.mooney@gmail.com> wrote:

> > Hi there, I'm currently discussing the creation of an audio application

> > with a developer who works in c++. I'm wondering what's the easiest /

> > best way to integrate csound within a standalone audio applications.

> >

> > If this application did incorporate some csound code, could that

> > application be commercially released with a closed source under the

> > license with which csound is distributed?

> >

> >

> >

> >

> >

> > --

> > View this message in context:

> > http://csound.1045644.n5.nabble.com/Integrating-Csound-in-Standalone-Appl

> > ications-tp5742910.html Sent from the Csound - General mailing list

> > archive at Nabble.com.

> >

> > --------------------------------------------------------------------------

> > ---- _______________________________________________

> > Csound-users mailing list

> > Csound-users@lists.sourceforge.net

> > https://lists.sourceforge.net/lists/listinfo/csound-users

> > Send bugs reports to

> >

> > https://github.com/csound/csound/issues

> >

> > Discussions of bugs and features can be posted here

>

> ----------------------------------------------------------------------------

> -- _______________________________________________

> Csound-users mailing list

> Csound-users@lists.sourceforge.net

> https://lists.sourceforge.net/lists/listinfo/csound-users

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 


Date2015-07-30 06:23
FromDave Mooney
SubjectRe: Integrating Csound in Standalone Applications
Cheers Tarmo, I'll have a look at your examples and hopefully can then figure
out what is best for this project. Again thanks a million for the fast and
comprehensive response. 

Kind Regards
Dave



--
View this message in context: http://csound.1045644.n5.nabble.com/Integrating-Csound-in-Standalone-Applications-tp5742910p5742921.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here