Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] matlab interface

Date2008-03-16 21:34
Fromvictor
SubjectRe: [Cs-dev] matlab interface
AttachmentsNone  None  
Csound::GetOutputBuffer()? CppSound is derived from Csound.
----- Original Message -----
Sent: Sunday, March 16, 2008 9:15 PM
Subject: Re: [Cs-dev] matlab interface

Thanks everyone.  Viktor: your comment made me go back and verify what I was linking against, I had incorrectly built the csnd library.  fixed.
ha!  so my next question is: if I use CppSound::Perform() is there a way to get access to the performance buffer?
again thanks for all of your help and patience.

Balan

On Sun, Mar 16, 2008 at 9:47 AM, Jonatan Liljedahl <lijon@kymatica.com> wrote:
Rory Walsh wrote:
> 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?

Yes, I do this in AlgoScore and it works fine.
But I don't think it's correct to call csoundInitialize() after
csoundCreate()! In AlgoScore I call csoundInitialize(0,0,0) (once)
before I do anything else with csound.

static naRef f_create(naContext ctx, naRef me, int argc, naRef *args) {
   static cs_initialized=0;
   HostData *data;
   if(!cs_initialized) {
       csoundInitialize(0,0,0);
       cs_initialized=1;
   }
   data = (HostData*)malloc(sizeof(HostData));
   data->tag = NUMARG(0);
   data->graph_cb = naNil();
   data->outvalues = naNil();
   CSOUND *cs = csoundCreate((void*)data);
   return newCsoundGhost(ctx,cs);
}
>
> 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


--
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
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 22:20
From"Balan Clockfactory"
SubjectRe: [Cs-dev] matlab interface
AttachmentsNone  None  None  None  

Date2008-03-16 23:25
From"Steven Yi"
SubjectRe: [Cs-dev] matlab interface
AttachmentsNone