Csound Csound-dev Csound-tekno Search About

[Csnd] Realtime from Python - best with Csound?

Date2008-05-12 19:48
From"Chuckk Hubbard"
Subject[Csnd] Realtime from Python - best with Csound?
AttachmentsNone  

Date2008-05-13 01:10
From"Chuckk Hubbard"
Subject[Csnd] Re: Realtime from Python - best with Csound?
AttachmentsNone  

Date2008-05-13 02:37
FromTim Mortimer
Subject[Csnd] Re: Re altime from Python - best with Csound?
Hi Chuck - we haven't heard from you for a little while - glad youre back in
the mix.

My gut feeling on this is that youve just about answered all of your own
questions.

I recently had some discussion about some of these issues with Oeyvind, &
certainly we agreed that handling any real time & scheduling on the csound
side of the fence is probably the way to go. If you use the csound api in
python, all your python functions can basically be seen as global by the
csound "mainline" using pycall.

With this in mind, his "barebones" & "improsculpt" apps are useful resources
of techniques & methods.

That's my general feeling on the subject - now over to the more technically
astute for any specifics.

Let me know if you would like me to post the final simple example i &
Oeyvind cobbled together to demonstrate gathering midi & calling python
function in realtime, with a concurrent wx thread in place. (its on my other
PC...)

Generally, I handle all my tempo calculations in python, not csound, & just
supply csound with absolute times. This is something i don't presently do in
realtime, & my demand for metronomes & metered rhythms is in general fairly
low on my priority list... I heard enough 4 on the floor in the 90's to last
me a lifetime! ; )

-----
*******************
www.phasetransitions.net
hermetic music * python * csound * possibly mindless ranting
various werk in perpetual delusions of progress....

-- 
View this message in context: http://www.nabble.com/Realtime-from-Python---best-with-Csound--tp17193803p17199441.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2008-05-20 12:32
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re altime from Python - best with Csound?
AttachmentsNone  

Date2008-05-22 12:38
FromTim Mortimer
Subject[Csnd] Re: Re: Re altime from Python - best with Csound?
No worries Chuck,

all i'm trying to suggest here (in my usual round about way) is it's worth
keeping track of some simple examples that illustrate key API concepts -
particularly the less obvious solutions to the more challenging problems -
like threading (your recent post..), timed scheduling, tempo management -
things youve recently brought up on list.

All the solutions may end up living together in your finished "software
product", but i think it is useful to answer the questions & problems you
encounter with specific examples in just a few lines of illustrative API /
python code that says - "This is how to X"

My recent endeavours to create a midi realtime example with a concurrent
wxthread, as simply as possible, being indicative of the type of further
example i feel is useful. In and of itself, it's a simple illustration, but
without any fundamental changes to the basic "workflow" it could become the
basis of something a lot more vast & powerful because the principle &
technique of passing the data to & from python & csound as illustrated
remains the same...

People (like me) are obviously not going to digest the full width & breadth
of the API in order to do something that, if you know what you are doing, is
quite simple & can be achieved with a handful of functions & very few lines
of code...

If the examples are to remain the only useful & easily digestible source of
the possibilities of API implementation (& in this regard they are of high
value) then i think we owe it to all to try & expand the range of the
examples with a more rounded selection of common (& less common) application
"templates" that deal with certain "core" functionality (core to the general
business of "getting a bit geeky & algorithmic" with Python & Csound
anyway... + basic "musical" implementations - i.e. something like "tempo
handling" seems a good example, for example..)

Ultimately there could then perhaps be a website that could supplement the
distributed examples with further Python based API illustrations. David
Worrall has a site that i feel is already a suitable gateway to such a
collection, & i have contributed my wx / midi realtime example to him in the
hope that he can start collating other similar types of examples to host on
his site.

I would just like to encourage you to think along similar lines,
particularly while you are still in "the early stages" & may, like me, feel
certain basic illustrations serve as important "stepping stones" in your
longer term development.

It seems to me after all that the examples that will carry most resonance
for API beginners are those created by those beginners...

So before you lose your innocence, make sure you retain some illustrative
examples of it's demise... "zen mind beginners mind" & all that...
 
are you feelin' me Chuck?

-----
*******************
www.phasetransitions.net
hermetic music * python * csound * possibly mindless ranting
various werk in perpetual delusions of progress....

-- 
View this message in context: http://www.nabble.com/Realtime-from-Python---best-with-Csound--tp17193803p17402412.html
Sent from the Csound - General mailing list archive at Nabble.com.