| This is because of the way I have designed the interface. It needs a
data object that is only built for the python module. For this to happen
the constructor needs to be inlined in the header file, which is now.
On 14 May 2011, at 11:01, Chuckk Hubbard wrote:
> OK, thanks for checking.
> It seems strange if the function is inherited without being altered in
> the CppSound class; makes me wonder if it's not the function itself
> but some of the class attributes it accesses?
>
> -Chuckk
>
> On Fri, May 13, 2011 at 11:05 PM, Victor Lazzarini
> wrote:
>> This might be something to do with the way Swig works. I have
>> supplied
>> the interface for that method by extending the
>> Csound class in the python interface file. Maybe that extension only
>> applies to the Csound class and not to CppSound ?
>> I need to investigate it.
>>
>> On 13 May 2011, at 19:48, Oeyvind Brandtsegg wrote:
>>
>>> Crashes here as well,
>>> I've never used the callback in python,
>>> maybe Victor needs to chime in on this.
>>> best
>>> Oeyvind
>>>
>>> 2011/5/13 Chuckk Hubbard :
>>>> Hi again.
>>>>
>>>> Could someone else please just try running the script I attached to
>>>> the last message?
>>>> Thanks.
>>>>
>>>> -Chuckk
>>>>
>>>> On Tue, May 3, 2011 at 2:03 PM, Chuckk Hubbard
>>>> wrote:
>>>>> Hi Andres,
>>>>>
>>>>> Thanks for the suggestions. Here is an example .py that crashes
>>>>> with a
>>>>> seg fault for me. It gets as far as defining the function and
>>>>> creating
>>>>> a CppSound instance, but the SetOutputValueCallback function
>>>>> crashes.
>>>>> I'm using the same argument that works with the same function
>>>>> under
>>>>> the Csound class.
>>>>>
>>>>> -Chuckk
>>>>>
>>>>>
>>>>> On Sat, Apr 30, 2011 at 1:04 PM, Andres Cabrera >>>>> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Are you setting the callback before Csound has started running?
>>>>>> Also,
>>>>>> are you sure you are using the right arguments to the callback
>>>>>> function?
>>>>>>
>>>>>> Cheers,
>>>>>> Andres
>>>>>>
>>>>>> On Fri, Apr 29, 2011 at 10:41 PM, Chuckk Hubbard
>>>>>> wrote:
>>>>>>> Hi.
>>>>>>>
>>>>>>> I posted a while back about finding a way to get callbacks
>>>>>>> triggered
>>>>>>> by Csound events, as opposed to constant values being output,
>>>>>>> and I
>>>>>>> finally came across Csound.SetOutputValueCallback(). This
>>>>>>> function
>>>>>>> appears to be inherited by the CppSound class, which is what
>>>>>>> I've been
>>>>>>> using for several reasons. I have a pretty involved setup using
>>>>>>> CppSound with CsoundPerformanceThread, and I also prefer to pass
>>>>>>> the
>>>>>>> options/orchestra/score directly to the object as a string,
>>>>>>> rather
>>>>>>> than saving them as a .csd file and passing the name of the
>>>>>>> file.
>>>>>>> When I call SetOutputValueCallback() with the CppSound class, I
>>>>>>> get
>>>>>>> segmentation faults. I tried overriding it by defining it (even
>>>>>>> with a
>>>>>>> different function name) to specifically call the Csound class
>>>>>>> function, but apparently I don't know how to do that right.
>>>>>>> I want to have that one function work like it does with the
>>>>>>> Csound
>>>>>>> class, and everything else from the CppSound class. Can anyone
>>>>>>> tell me
>>>>>>> how I can do that?
>>>>>>>
>>>>>>> Thanks.
>>>>>>> -Chuckk
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> http://www.badmuthahubbard.com
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> WhatsUp Gold - Download Free Network Management Software
>>>>>>> The most intuitive, comprehensive, and cost-effective network
>>>>>>> management toolset available today. Delivers lowest initial
>>>>>>> acquisition cost and overall TCO of any competing solution.
>>>>>>> http://p.sf.net/sfu/whatsupgold-sd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> WhatsUp Gold - Download Free Network Management Software
>>>>>> The most intuitive, comprehensive, and cost-effective network
>>>>>> management toolset available today. Delivers lowest initial
>>>>>> acquisition cost and overall TCO of any competing solution.
>>>>>> http://p.sf.net/sfu/whatsupgold-sd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://www.badmuthahubbard.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> http://www.badmuthahubbard.com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Achieve unprecedented app performance and reliability
>>>> What every C/C++ and Fortran developer should know.
>>>> Learn how Intel has extended the reach of its next-generation tools
>>>> to help boost performance applications - inlcuding clusters.
>>>> http://p.sf.net/sfu/intel-dev2devmay
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Achieve unprecedented app performance and reliability
>>> What every C/C++ and Fortran developer should know.
>>> Learn how Intel has extended the reach of its next-generation tools
>>> to help boost performance applications - inlcuding clusters.
>>> http://p.sf.net/sfu/intel-dev2devmay
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Achieve unprecedented app performance and reliability
>> What every C/C++ and Fortran developer should know.
>> Learn how Intel has extended the reach of its next-generation tools
>> to help boost performance applications - inlcuding clusters.
>> http://p.sf.net/sfu/intel-dev2devmay
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> http://www.badmuthahubbard.com
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |