[Csnd] The state of python and csound
Date | 2013-05-17 16:50 |
From | Anthony Palomba |
Subject | [Csnd] The state of python and csound |
Hey Csounders, Over the past month or so, I have seen a flurry of emails regarding new capabilities of integrating csound6 and python. All sorts of examples and experiments being tossed around, it is very exciting!Thanks, Anthony |
Date | 2013-05-17 17:06 |
From | Jacob Joaquin |
Subject | Re: [Csnd] The state of python and csound |
There is indeed lots of stuff going on, coming from a lot of people. I'll go into what I've been working, and I'm sure others will share their projects as well. PythonScore. This is a replacement for the classical Csound score, though it's designed to allow composers to continue using the classical score syntax which makes it interoperable with most other Csound score generators such as CsBeats, CsoundAC, and Cscore. Right now, it works as a CsScore bin utility, so you can write scores inside a CSD file like you would normally, but there will be a version for the Csound API. Here's a tutorial the goes through the basics:
Amen Break PythonScore I've also been working on integrating Csound6 with IPython Notebook, which I believe has the potential of being an amazing platform for papers, research, tutorials, and interactive presentations. I have two proof-of-concept examples on-line. Here's the first, with a live-coding example that demonstrates creating an instrument dynamically, then updating it within the same Csound process:
Csound Tutorial with IPython Proof of Concept
Video And here's another IPython Notebook example on how to create pretty graphs, some of which are derived directly from Csound FTables:
Csound Plot Notebook Much of this work is based on François Pinot's Csound Journal article "Real-time Coding Using the Python API: Score Events"
Best, Jake
On Fri, May 17, 2013 at 8:50 AM, Anthony Palomba <apalomba@austin.rr.com> wrote:
codehop.com | #code #art #music |
Date | 2013-05-17 17:43 |
From | Anthony Palomba |
Subject | Re: [Csnd] The state of python and csound |
Hey Jake, thanks for the summary. What I am most interested in is are we now able to create instruments via python code? Can I create a signal chain in real-time or access opcodes via python? Thanks,On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
|
Date | 2013-05-17 19:41 |
From | peiman khosravi |
Subject | Re: [Csnd] The state of python and csound |
Hi Anthony, Here's a video: https://dl.dropboxusercontent.com/u/47945259/videos/livecodingCsound6%26python.mp4 You can sort of design instrument directly in python. The instrument needs to be recompiled and the difference is only reflected on the next instance (note). By the way, the video uses a modification of Victor's code. P www.peimankhosravi.co.uk || Subscribe to RSS Feed
To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section. On 17 May 2013 17:43, Anthony Palomba <apalomba@austin.rr.com> wrote:
|
Date | 2013-05-18 16:58 |
From | Anthony Palomba |
Subject | Re: [Csnd] The state of python and csound |
Hey Pieman, thanks for the link. I see now, that is kinda what I am looking for but not quite. The problem is we are still specifying instruments as text and then compiling it.
What I was hoping for was that we had reached the point where we could specify the instrument in python itself. If the csound API could access opcodes, I could even build an instrument signal chain in real time.
On Fri, May 17, 2013 at 1:41 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2013-05-18 18:26 |
From | peiman khosravi |
Subject | Re: [Csnd] The state of python and csound |
Hi Anthony,
The same here. But it's definitely getting there. What I would love is the ability to make a flexible real-time pattern library with unlimited nesting of patterns, like that found in SC3. It's not currently possible, or any solution will be a hack (I've been brainstorming for days): there is no easy way for Csound to tell python that it is ready for the next event. Jake's CSD solution is great but even then as far as patterns are concerned one has to generate a list of notes all together, rather than one event at a time.
P www.peimankhosravi.co.uk || Subscribe to RSS Feed To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section. On 18 May 2013 16:58, Anthony Palomba <apalomba@austin.rr.com> wrote:
|
Date | 2013-05-18 21:08 |
From | "e.stankevich" |
Subject | Re: [Csnd] The state of python and csound |
There is very simple way to make some sort of SC3 patterns without python. Evgenysimplest example: ;ORC: ---------------------------------------------- instr Pbind1 idelta random 0, 1 ;p2 ilegato = 1.3 ;p3 iamp random 0, 1 ;p4 ;iamp CallUDO iamp,... -- proccesing value (Masking? Qantizing?) ;We can to use tables: ift ftgenonce 0, 0, -16, -5, 100, 16, 1000 ifreq table p4, ift, 0, 0, 1 ;p5 event_i "i", 12, idelta, idelta * ilegato, iamp, ifreq ;play instr 12 event_i "i", "Pbind1", idelta, 1/sr, p4+1 ; Call Pbind1 for next event endin instr 12 print p2, p3, p4, p5 ;Some sound here endin ;SCO:--------------------------------------------------- ;i"Pbind1" 0 6 0 -- On Sat, May 18, 2013 at 9:26 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2013-05-18 22:36 |
From | peiman khosravi |
Subject | Re: [Csnd] The state of python and csound |
Thanks Evgeny, In fact, this can be mixed with the python opcode to be quite powerful.
Thinking cap on! BEst, Peiman www.peimankhosravi.co.uk || Subscribe to RSS Feed To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section. On 18 May 2013 21:08, e.stankevich <evgstankevich@gmail.com> wrote:
|