Csound Csound-dev Csound-tekno Search About

[Csnd] The state of python and csound

Date2013-05-17 16:50
FromAnthony 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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony





Date2013-05-17 17:06
FromJacob Joaquin
SubjectRe: [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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music

Date2013-05-17 17:43
FromAnthony Palomba
SubjectRe: [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,
Anthony


On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music


Date2013-05-17 19:41
Frompeiman khosravi
SubjectRe: [Csnd] The state of python and csound
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:
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,
Anthony


On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music



Date2013-05-18 16:58
FromAnthony Palomba
SubjectRe: [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.

I could also leverage pythons nice object oriented language features to create class wrappers around opcodes that extend and add process behavior. Or even harness some computational geometry in to my instrument design.

I long for the day when I can have a more flexible language interface. We are getting closer.




-ap




On Fri, May 17, 2013 at 1:41 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
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:
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,
Anthony


On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music




Date2013-05-18 18:26
Frompeiman khosravi
SubjectRe: [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:
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.

I could also leverage pythons nice object oriented language features to create class wrappers around opcodes that extend and add process behavior. Or even harness some computational geometry in to my instrument design.

I long for the day when I can have a more flexible language interface. We are getting closer.




-ap




On Fri, May 17, 2013 at 1:41 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
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:
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,
Anthony


On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music





Date2013-05-18 21:08
From"e.stankevich"
SubjectRe: [Csnd] The state of python and csound
There is very simple way to make some sort of SC3 patterns without python.
simplest 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

--
Evgeny


On Sat, May 18, 2013 at 9:26 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
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:
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.

I could also leverage pythons nice object oriented language features to create class wrappers around opcodes that extend and add process behavior. Or even harness some computational geometry in to my instrument design.

I long for the day when I can have a more flexible language interface. We are getting closer.




-ap




On Fri, May 17, 2013 at 1:41 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
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:
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,
Anthony


On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music






Date2013-05-18 22:36
Frompeiman khosravi
SubjectRe: [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:
There is very simple way to make some sort of SC3 patterns without python.
simplest 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

--
Evgeny


On Sat, May 18, 2013 at 9:26 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
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:
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.

I could also leverage pythons nice object oriented language features to create class wrappers around opcodes that extend and add process behavior. Or even harness some computational geometry in to my instrument design.

I long for the day when I can have a more flexible language interface. We are getting closer.




-ap




On Fri, May 17, 2013 at 1:41 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
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:
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,
Anthony


On Fri, May 17, 2013 at 11:06 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
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:
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!

Unfortunately work has had me tied up and I have not been able to explore all these examples. I was wondering if someone could tell me what are some of the new features that are supported now in csound6 regarding python integration. i.e.
What is possible now regarding score or orch generation? Can a python class create an instrument or a signal chain in real time now?



Thanks,
Anthony







--
codehop.com | #code #art #music