[Cs-dev] Porting to csnd6: InputMessage or ScoreEvent
Date | 2015-06-12 23:49 |
From | Gonzalo Odiard |
Subject | [Cs-dev] Porting to csnd6: InputMessage or ScoreEvent |
Attachments | None None |
I continue working in the port of TamTam (a python application) from csound 5 to csound 6.
Now I found the app used csoundScoreEvent to play notes. I get a error with the arguments then I have two questions: 1) It's possible use InputMessage to substitute the use of ScoreEvent? 2) If not, how I should define the array at the python side? c.ScoreEvent.__doc__ returns: 'ScoreEvent(Csound self, char type, double const * pFields, long numFields) -> int' but modifying my example to use it:
I get the following error: Traceback (most recent call last): File "button_se.py", line 36, in clicked_cb c.ScoreEvent('i', a, len(a)) File "/usr/lib64/python2.7/site-packages/csnd6.py", line 2180, in ScoreEvent return _csnd6.Csound_ScoreEvent(self, *args) TypeError: in method 'Csound_ScoreEvent', argument 3 of type 'double const *' Thanks in advance, Gonzalo Odiard SugarLabs - Software for children learning |
Date | 2015-06-15 21:38 |
From | Gonzalo Odiard |
Subject | Re: [Cs-dev] Porting to csnd6: InputMessage or ScoreEvent |
Attachments | None None |
I found csnd6.doubleArray and solved this issue. Thanks On Fri, Jun 12, 2015 at 7:49 PM, Gonzalo Odiard <godiard@sugarlabs.org> wrote:
Gonzalo Odiard SugarLabs - Software for children learning |
Date | 2015-06-15 21:44 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Porting to csnd6: InputMessage or ScoreEvent |
Attachments | None None |
Yes, it is possible to use inputMessage instead of ScoreEvent. In Python, it might even be handier. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|