Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] matlab interface

Date2008-03-16 07:56
Fromvictor
SubjectRe: [Cs-dev] matlab interface
AttachmentsNone  None  
It's in csnd.dll
----- Original Message -----
Sent: Sunday, March 16, 2008 3:44 AM
Subject: Re: [Cs-dev] matlab interface

Thanks Mike.  I have finished an implementation in python which was quite simple.  However, when I try to create an instance of CppSound in C++ I get an 'undefined reference to CppSound::CppSound()' error.
Does anyone have any sample code showing the proper way to use CppSound in C++?  I'm pretty keen on figuring this out.

Thanks,
Balan

On Sat, Mar 15, 2008 at 5:05 PM, Michael Gogins <gogins@pipeline.com> wrote:
No.

If you want to build a score before performance, use
CppSound.setScore(score)
or CppSound.addScoreLine(string) or CppSound.addNote(p1, p2, p3, p4...p11).


Then you must use CppSound.exportForPerformance() before compiling, and in
the Csouned command specify an orc filename and sco filename.

See examples/koch.py.

Regards,
Mike

----- Original Message -----
From: "Rory Walsh" <rorywalsh@ear.ie>
To: "Developer discussions" <csound-devel@lists.sourceforge.net>
Sent: Saturday, March 15, 2008 6:25 PM
Subject: Re: [Cs-dev] matlab interface


> Balan posted the code at the end of his email. I had a quick look but
> couldn't spot anything obvious. Is it Ok to call csoundScoreEvent()
> before a performance has started?
>
> Rory.
>
>
> victor wrote:
>> That seems correct. Can you quote your code?
>>
>>     ----- Original Message -----
>>     *From:* Balan Clockfactory <mailto:balanclock@gmail.com>
>>     *To:* Developer discussions
>> <mailto:csound-devel@lists.sourceforge.net>
>>     *Sent:* Saturday, March 15, 2008 10:03 PM
>>     *Subject:* Re: [Cs-dev] matlab interface
>>
>>     I hope I'm not being a nuisance but I am currently getting an error
>>     when I call csoundScoreEvent().  The error is "invalid instrument
>>     number or name".  I am testing with a very simple instrument so I'm
>>     no
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2008-03-16 10:29
FromRory Walsh
SubjectRe: [Cs-dev] matlab interface
If you don't fancy linking to another library you can simply build 
CppSound.hpp into your application, I think you may need to add 
CsoundFile.cpp too. I prefer to add these files manually rather than 
building more libraries.

Rory.




victor wrote:
> It's in csnd.dll
> 
>     ----- Original Message -----
>     *From:* Balan Clockfactory 
>     *To:* Developer discussions 
>     *Sent:* Sunday, March 16, 2008 3:44 AM
>     *Subject:* Re: [Cs-dev] matlab interface
> 
>     Thanks Mike.  I have finished an implementation in python which was
>     quite simple.  However, when I try to create an instance of CppSound
>     in C++ I get an 'undefined reference to CppSound::CppSound()' error.
>     Does anyone have any sample code showing the proper way to use
>     CppSound in C++?  I'm pretty keen on figuring this out.
> 
>     Thanks,
>     Balan
> 
>     On Sat, Mar 15, 2008 at 5:05 PM, Michael Gogins      > wrote:
> 
>         No.
> 
>         If you want to build a score before performance, use
>         CppSound.setScore(score)
>         or CppSound.addScoreLine(string) or CppSound.addNote(p1, p2, p3,
>         p4...p11).
> 
> 
>         Then you must use CppSound.exportForPerformance() before
>         compiling, and in
>         the Csouned command specify an orc filename and sco filename.
> 
>         See examples/koch.py.
> 
>         Regards,
>         Mike
> 
>         ----- Original Message -----
>         From: "Rory Walsh" >
>         To: "Developer discussions"          >
>         Sent: Saturday, March 15, 2008 6:25 PM
>         Subject: Re: [Cs-dev] matlab interface
> 
> 
>          > Balan posted the code at the end of his email. I had a quick
>         look but
>          > couldn't spot anything obvious. Is it Ok to call
>         csoundScoreEvent()
>          > before a performance has started?
>          >
>          > Rory.
>          >
>          >
>          > victor wrote:
>          >> That seems correct. Can you quote your code?
>          >>
>          >>     ----- Original Message -----
>          >>     *From:* Balan Clockfactory          >
>          >>     *To:* Developer discussions
>          >>          >
>          >>     *Sent:* Saturday, March 15, 2008 10:03 PM
>          >>     *Subject:* Re: [Cs-dev] matlab interface
>          >>
>          >>     I hope I'm not being a nuisance but I am currently
>         getting an error
>          >>     when I call csoundScoreEvent().  The error is "invalid
>         instrument
>          >>     number or name".  I am testing with a very simple
>         instrument so I'm
>          >>     no
>          >
>          >
>         -------------------------------------------------------------------------
>          > This SF.net email is sponsored by: Microsoft
>          > Defy all challenges. Microsoft(R) Visual Studio 2008.
>          > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>          > _______________________________________________
>          > Csound-devel mailing list
>          > Csound-devel@lists.sourceforge.net
>         
>          > https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
>         -------------------------------------------------------------------------
>         This SF.net email is sponsored by: Microsoft
>         Defy all challenges. Microsoft(R) Visual Studio 2008.
>         http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>         _______________________________________________
>         Csound-devel mailing list
>         Csound-devel@lists.sourceforge.net
>         
>         https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
>     ------------------------------------------------------------------------
> 
>     -------------------------------------------------------------------------
>     This SF.net email is sponsored by: Microsoft
>     Defy all challenges. Microsoft(R) Visual Studio 2008.
>     http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
>     ------------------------------------------------------------------------
> 
>     _______________________________________________
>     Csound-devel mailing list
>     Csound-devel@lists.sourceforge.net
>     https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net