running chuck as a process with no terminal?
hi i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this. In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction. Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this? I am working on xp at the moment, so i havent tested if this happens as well on linux or osx. I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry. thanks enrike
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software best joerg altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- http://joerg.piringer.net http://www.transacoustic-research.com http://www.iftaf.org http://www.vegetableorchestra.org/
i am using pygame, sometimes i use wxpython but i cannot rely on that as sometimes i need to stick to pygame. joerg piringer wrote:
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software
best joerg
altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
hi joerg do you remember the command to achieve this? thanks enrike joerg piringer wrote:
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software
best joerg
altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
ok, i found it, i guess it is wx.Execute thanks for the pointer, i just need to fix now the wxpython support on my system. I am doing opengl graphics on a canvas within a wxpython window and i never get it right... altern wrote:
hi joerg
do you remember the command to achieve this?
thanks
enrike
joerg piringer wrote:
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software
best joerg
altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
yes, i use wxExecute (the c++ version). you can also capture the output with it but i don't know how this works in wxPython. sometimes the two APIs are quite different. i think there are examples of wxPython and opengl if you download the wxPython-Demo & examples. i've only tried pygame/SDL & wxPython which works fine. your project sound interesting so far. what do you try to achieve? just being curios... best joerg altern wrote:
ok, i found it, i guess it is
wx.Execute
thanks for the pointer, i just need to fix now the wxpython support on my system. I am doing opengl graphics on a canvas within a wxpython window and i never get it right...
altern wrote:
hi joerg
do you remember the command to achieve this?
thanks
enrike
joerg piringer wrote:
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software
best joerg
altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- http://joerg.piringer.net http://www.transacoustic-research.com http://www.iftaf.org http://www.vegetableorchestra.org/
hi joerg piringer wrote:
yes, i use wxExecute (the c++ version). you can also capture the output with it but i don't know how this works in wxPython. sometimes the two APIs are quite different.
yes it does work fine with wxpython, i tested it briefly today.
i think there are examples of wxPython and opengl if you download the wxPython-Demo & examples. i've only tried pygame/SDL & wxPython which works fine.
Yes i know about those examples but i want something more complex which involves using sizers and grids and there it gets more confusing.
your project sound interesting so far. what do you try to achieve? just being curios...
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now. Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ... :) enrike
best joerg
altern wrote:
ok, i found it, i guess it is
wx.Execute
thanks for the pointer, i just need to fix now the wxpython support on my system. I am doing opengl graphics on a canvas within a wxpython window and i never get it right...
altern wrote:
hi joerg
do you remember the command to achieve this?
thanks
enrike
joerg piringer wrote:
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software
best joerg
altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
altern wrote:
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now.
ah! we've met in bergen a couple of weeks ago, did we? i was presenting my text software...
Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ...
i was already tempted to rewrite OSCSurface in wxPython as i am really fed up with c++, but i am not sure if it's worth the effort as there's a winXP version of miniAudicle now. trying out your code i failed because python couldn't import "tools". a quick websearch didn't reveal anything specific to "python and tools". best joerg -- http://joerg.piringer.net http://www.transacoustic-research.com http://www.iftaf.org http://www.vegetableorchestra.org/
joerg piringer wrote:
altern wrote:
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now.
ah! we've met in bergen a couple of weeks ago, did we? i was presenting my text software...
hehe. sure, we talked in between concerts about some python stuff related to OSC and your software. I did not remember your name.
Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ...
i was already tempted to rewrite OSCSurface in wxPython as i am really fed up with c++, but i am not sure if it's worth the effort as there's a winXP version of miniAudicle now.
mm... c++... Minaudicle is ok butif not because of the syntax coloring I would prefer to use any normal editor.
trying out your code i failed because python couldn't import "tools". a quick websearch didn't reveal anything specific to "python and tools".
did you download all the files from the svn server? there is a python module called tools.py that needs to be next to the slicer.py. On top of that you need the usual pygame, pyopengl, and mirra itself. I also have a py2exe package for windows, but it is not available there, too big. enrike
altern wrote:
hi
joerg piringer wrote:
yes, i use wxExecute (the c++ version). you can also capture the output with it but i don't know how this works in wxPython. sometimes the two APIs are quite different.
yes it does work fine with wxpython, i tested it briefly today.
i think there are examples of wxPython and opengl if you download the wxPython-Demo & examples. i've only tried pygame/SDL & wxPython which works fine.
Yes i know about those examples but i want something more complex which involves using sizers and grids and there it gets more confusing.
your project sound interesting so far. what do you try to achieve? just being curios...
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now.
Hey. I've done a similar thing. Except it runs on top of SDL and it is also 3D: http://www.cesaremarilungo.com/sw/devachan Give it a try. It could be modified to draw on a wxwidget with very minimal effort. Unfortunately the MacOsX support is still a bit incomplete. It works but it is a poor hack. By the way, now I'm working again in python. I'm realizing a 2d library to make some audio applications (even to interact with chuck, of course) using the pygtk library and cairo for the drawings. My advice, if you don't need 3d is to avoid opengl and try something like cairo, which is more suited for this purpose. You'll get better support for fonts and such and it is more stable than opengl especially when you're using it as an interface to make music in realtime. Ciao, c.
Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ...
:)
enrike
best joerg
altern wrote:
ok, i found it, i guess it is
wx.Execute
thanks for the pointer, i just need to fix now the wxpython support on my system. I am doing opengl graphics on a canvas within a wxpython window and i never get it right...
altern wrote:
hi joerg
do you remember the command to achieve this?
thanks
enrike
joerg piringer wrote:
what GUI toolkit do you use? in wxPython there's a possibility to start a process without a terminal window and capture it's output. i used this with OSCSurface. it's written in c++ & wxWidgets but it should be similar in wxPython. link: http://joerg.piringer.net/index.php?href=software/oscsurface.xml&mtitle=software
best joerg
altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- www.cesaremarilungo.com On the Internet, no one knows you're using Windows NT -- Submitted by Ramiro Estrugo, restrugo@fateware.com
Cesare Marilungo wrote:
altern wrote:
hi
joerg piringer wrote:
yes, i use wxExecute (the c++ version). you can also capture the output with it but i don't know how this works in wxPython. sometimes the two APIs are quite different.
yes it does work fine with wxpython, i tested it briefly today.
i think there are examples of wxPython and opengl if you download the wxPython-Demo & examples. i've only tried pygame/SDL & wxPython which works fine.
Yes i know about those examples but i want something more complex which involves using sizers and grids and there it gets more confusing.
your project sound interesting so far. what do you try to achieve? just being curios...
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now.
Hey. I've done a similar thing. Except it runs on top of SDL and it is also 3D:
http://www.cesaremarilungo.com/sw/devachan
Give it a try. It could be modified to draw on a wxwidget with very minimal effort. Unfortunately the MacOsX support is still a bit incomplete. It works but it is a poor hack.
interesting. i am downloading it now.
By the way, now I'm working again in python. I'm realizing a 2d library to make some audio applications (even to interact with chuck, of course) using the pygtk library and cairo for the drawings.
even more interesting... any links?
My advice, if you don't need 3d is to avoid opengl and try something like cairo, which is more suited for this purpose. You'll get better support for fonts and such and it is more stable than opengl especially when you're using it as an interface to make music in realtime.
I thought about this few months ago for a while, didnt do any tests. I think I didnt go very far because on mac you need to compile yourself the pycairo library. If I want this to be used by students I cannot really ask them to compile stuff. At most run an installer. But, what about performance and CPU usage? is it similar to opengl? what about running on different platforms? enrike
Ciao,
c.
Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ...
:)
enrike
altern wrote:
Cesare Marilungo wrote:
altern wrote:
hi
joerg piringer wrote:
yes, i use wxExecute (the c++ version). you can also capture the output with it but i don't know how this works in wxPython. sometimes the two APIs are quite different.
yes it does work fine with wxpython, i tested it briefly today.
i think there are examples of wxPython and opengl if you download the wxPython-Demo & examples. i've only tried pygame/SDL & wxPython which works fine.
Yes i know about those examples but i want something more complex which involves using sizers and grids and there it gets more confusing.
your project sound interesting so far. what do you try to achieve? just being curios...
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now.
Hey. I've done a similar thing. Except it runs on top of SDL and it is also 3D:
http://www.cesaremarilungo.com/sw/devachan
Give it a try. It could be modified to draw on a wxwidget with very minimal effort. Unfortunately the MacOsX support is still a bit incomplete. It works but it is a poor hack.
interesting. i am downloading it now.
By the way, now I'm working again in python. I'm realizing a 2d library to make some audio applications (even to interact with chuck, of course) using the pygtk library and cairo for the drawings.
even more interesting... any links?
Some screenshots will be available soon. Same for app. But truth is I'm still uncertain about where to go. At the moment I'm concentrating on creating a reusable gui for pure data like apps. I love the metaphor of connecting elements. I plan to talk with chuck via OSC. Nothing exciting. But, as I said, I'm doing lot on the gui side. By the way. I already knew about ixi-software. IIRC I also used some of the apps in the past years. Inspiring stuff.
My advice, if you don't need 3d is to avoid opengl and try something like cairo, which is more suited for this purpose. You'll get better support for fonts and such and it is more stable than opengl especially when you're using it as an interface to make music in realtime.
I thought about this few months ago for a while, didnt do any tests. I think I didnt go very far because on mac you need to compile yourself the pycairo library. If I want this to be used by students I cannot really ask them to compile stuff. At most run an installer. But, what about performance and CPU usage? is it similar to opengl? what about running on different platforms?
enrike
Pygtk can be installed on Linux (of course :-) ), MacOsX and Windows. Same for Cairo. Keep in mind that a Cairo context can be rendered in opengl as well. I have heard that wxwidget will be included in MacOSX Leopard, but having experimented with both (wxwidget in c++ and gtk in c) I've found that gtk is cleaner and nicer. At least on Linux. Let's keep in touch. c.
Ciao,
c.
Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ...
:)
enrike
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- www.cesaremarilungo.com On the Internet, no one knows you're using Windows NT -- Submitted by Ramiro Estrugo, restrugo@fateware.com
Cesare Marilungo wrote:
altern wrote:
Cesare Marilungo wrote:
altern wrote:
hi
joerg piringer wrote:
yes, i use wxExecute (the c++ version). you can also capture the output with it but i don't know how this works in wxPython. sometimes the two APIs are quite different.
yes it does work fine with wxpython, i tested it briefly today.
i think there are examples of wxPython and opengl if you download the wxPython-Demo & examples. i've only tried pygame/SDL & wxPython which works fine.
Yes i know about those examples but i want something more complex which involves using sizers and grids and there it gets more confusing.
your project sound interesting so far. what do you try to achieve? just being curios...
ok here you are some info : I am working in two levels, on the one hand i am part of this project to develop experimental interfaces for music . www.ixi-software.net as a part of that we have been developing over the last couple of years a python graphic toolkit to create our applications, this is the result so far http://www.ixi-software.net/mirra It uses pygame by default but in a second step of the development I want to be able to have a opengl canvas in a specific area of the application and have normal wxpython GUI elements such as buttons, menus, drag and drop etc... This is where i am now.
Hey. I've done a similar thing. Except it runs on top of SDL and it is also 3D:
http://www.cesaremarilungo.com/sw/devachan
Give it a try. It could be modified to draw on a wxwidget with very minimal effort. Unfortunately the MacOsX support is still a bit incomplete. It works but it is a poor hack.
interesting. i am downloading it now.
By the way, now I'm working again in python. I'm realizing a 2d library to make some audio applications (even to interact with chuck, of course) using the pygtk library and cairo for the drawings.
even more interesting... any links?
Some screenshots will be available soon. Same for app. But truth is I'm still uncertain about where to go. At the moment I'm concentrating on creating a reusable gui for pure data like apps. I love the metaphor of connecting elements.
I plan to talk with chuck via OSC. Nothing exciting. But, as I said, I'm doing lot on the gui side.
By the way. I already knew about ixi-software. IIRC I also used some of the apps in the past years. Inspiring stuff.
nice to hear that.
My advice, if you don't need 3d is to avoid opengl and try something like cairo, which is more suited for this purpose. You'll get better support for fonts and such and it is more stable than opengl especially when you're using it as an interface to make music in realtime.
I thought about this few months ago for a while, didnt do any tests. I think I didnt go very far because on mac you need to compile yourself the pycairo library. If I want this to be used by students I cannot really ask them to compile stuff. At most run an installer. But, what about performance and CPU usage? is it similar to opengl? what about running on different platforms?
enrike
Pygtk can be installed on Linux (of course :-) ), MacOsX and Windows. Same for Cairo. Keep in mind that a Cairo context can be rendered in opengl as well.
I have heard that wxwidget will be included in MacOSX Leopard, but having experimented with both (wxwidget in c++ and gtk in c) I've found that gtk is cleaner and nicer. At least on Linux.
yes i think so, wxwidgets is pretty confusing but it has very good python support on all platforms. I am always checking gtk but there is always some 'but' before switching to it.
Let's keep in touch.
c.
Ciao,
c.
Up to now i was working on PD for the sound engine using OSC to communicate. But recently I decided to give a go to ChucK as I was frustrated with some issues on PD. Since I discovered the joys of ChucK I am working towards integrating Mirra+ChucK, this is the application i am developing at the moment where I am testing the whole system. http://devel.goto10.org/svn/ixi/python/slicer The chuck patch is in the data folder, not very complex stuff yet. Hopefully once I get the wxpython right again (it was ok but stopped working at some point) it will have a menu, status bar and importing dialogues. And again all this has to work in all platforms ...
:)
enrike
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi Enrike, On Nov 13, 2006, at 7:23 PM, altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
You might try using os.popen; I don't really know Python but looking through the docs that function seems geared for use with console apps, so it might work better for your purposes. ChucK doesn't have a -nogui flag, because it doesn't really have control over its gui; it just gets the default command line gui on win32 because its compiled as a console app.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
Yikes, I have come across this as well. Does this happen when switching to any window, or just your python window? Past recommended solutions have been to increase the audio buffer size with --bufsize1024 or --bufsize2048, but on my XP SP2 system those don't even produce audio... so I can't vouch for those.
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I would expect you to have much better success on either of those platforms...
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
No worries! Hope this helps... spencer
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Spencer Salazar wrote:
Hi Enrike,
On Nov 13, 2006, at 7:23 PM, altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
You might try using os.popen; I don't really know Python but looking through the docs that function seems geared for use with console apps, so it might work better for your purposes.
ChucK doesn't have a -nogui flag, because it doesn't really have control over its gui; it just gets the default command line gui on win32 because its compiled as a console app.
but this does not work as i need. Python and ChucK need to run concurrently. Maybe I am wrong (there are a lot of them and the docs are not very descriptive for non the non savvy like me) but I found that the only way to do this was with os.spawn family of functions passing os.P_NOWAIT as mode argument. This triggers the process and does not wait for it to return or exit. On the contrary popen seems to trigger the process and wait for it to finish, i just did one more test. So if i would compile ChucK not to be a console app then it could run as a process? how difficult is that? I never compiled before under XP, i dont like the idea very much but maybe it is worth the pain ...
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
Yikes, I have come across this as well. Does this happen when switching to any window, or just your python window?
aha! yes i does it only when selecting the python window. Any ideas why?
Past recommended solutions have been to increase the audio buffer size with --bufsize1024 or --bufsize2048, but on my XP SP2 system those don't even produce audio... so I can't vouch for those.
I see, i will try to experiment with different values. The funny thing about this is that it does not do it when running the python application from .py file. I mean it only does this when I 'compile' the app with py2app as exe. Similar things happens with opening the terminal, when python opens a terminal (always when the file run is a .py) then ChucK uses the Python terminal to print the errors and messages. This is *really* cool as it helps a *massively* with dealing with debugging both programs at the same time. This is one of the reasons why I decided to try ChucK instead of PD. But when python does not open its terminal (when the file is .pyw or is an .exe) then ChucK opens the terminal :(
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I would expect you to have much better success on either of those platforms...
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
No worries! Hope this helps...
spencer
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Howdy, On Nov 14, 2006, at 1:45 PM, altern wrote:
Spencer Salazar wrote:
Hi Enrike,
On Nov 13, 2006, at 7:23 PM, altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction.
You might try using os.popen; I don't really know Python but looking through the docs that function seems geared for use with console apps, so it might work better for your purposes.
ChucK doesn't have a -nogui flag, because it doesn't really have control over its gui; it just gets the default command line gui on win32 because its compiled as a console app.
but this does not work as i need. Python and ChucK need to run concurrently. Maybe I am wrong (there are a lot of them and the docs are not very descriptive for non the non savvy like me) but I found that the only way to do this was with os.spawn family of functions passing os.P_NOWAIT as mode argument. This triggers the process and does not wait for it to return or exit. On the contrary popen seems to trigger the process and wait for it to finish, i just did one more test.
So if i would compile ChucK not to be a console app then it could run as a process? how difficult is that? I never compiled before under XP, i dont like the idea very much but maybe it is worth the pain ...
It would be pretty difficult to do that, I imagine. I suspect you would have to write a WinMain function that just calls chuck's main, and then lose a few libraries... thats how I would go about it, but Im not totally certain, its not really a process that I am familiar with. You might have better luck getting help from the python/Windows community on how to execute console programs without getting a terminal (as Joerg has demonstrated that this is at least possible with chuck in its current form). Don't get me wrong, we're not trying to get rid of you, but I suspect that running any console program from python in this way will pop up a terminal, so it could be something that other python users have found answers for. Also, it doesn't make sense to me that popen would wait for the process to finish, as it is designed for executing other processes in tandem with the parent process. I can see from the python docs that the child process's exit status is returned from the close() call to the file object that popen returns, so that would suggest to me that it doesn't wait for the process to finish. This is the behavior I observed in my primitive testing within python on my box, at least...
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this?
Yikes, I have come across this as well. Does this happen when switching to any window, or just your python window?
aha! yes i does it only when selecting the python window. Any ideas why?
The same effect happens to me when I run chuck and then switch to Finale. Switching out of Finale will cause chuck to continue processing. I could be completely off track with this idea, but is there any way to easily disable audio in pygame? pygame's sound driver could be "blocking out" chuck's sound driver. hope this helps, spencer
Past recommended solutions have been to increase the audio buffer size with --bufsize1024 or --bufsize2048, but on my XP SP2 system those don't even produce audio... so I can't vouch for those.
I see, i will try to experiment with different values. The funny thing about this is that it does not do it when running the python application from .py file. I mean it only does this when I 'compile' the app with py2app as exe. Similar things happens with opening the terminal, when python opens a terminal (always when the file run is a .py) then ChucK uses the Python terminal to print the errors and messages. This is *really* cool as it helps a *massively* with dealing with debugging both programs at the same time. This is one of the reasons why I decided to try ChucK instead of PD. But when python does not open its terminal (when the file is .pyw or is an .exe) then ChucK opens the terminal :(
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx.
I would expect you to have much better success on either of those platforms...
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry.
No worries! Hope this helps...
spencer
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Spencer Salazar wrote:
Howdy,
On Nov 14, 2006, at 1:45 PM, altern wrote:
Hi Enrike,
On Nov 13, 2006, at 7:23 PM, altern wrote:
hi
i am launching chuck from python (i have a python GUI and chuck works as sound engine). When I run chuck from python it opens a terminal, I would like to hide this. I use python os.spawnv command for this.
In PD there is a startup flag -nogui that launches pd as a process with no console whatsoever, only visible via top or process list. Anything like that in ChucK? i have checked the documentation for the virtual machine but i could not see anything in this direction. You might try using os.popen; I don't really know Python but looking through the docs that function seems geared for use with console apps, so it might work better for your purposes.
ChucK doesn't have a -nogui flag, because it doesn't really have control over its gui; it just gets the default command line gui on win32 because its compiled as a console app. but this does not work as i need. Python and ChucK need to run concurrently. Maybe I am wrong (there are a lot of them and the docs are not very descriptive for non the non savvy like me) but I found
Spencer Salazar wrote: that the only way to do this was with os.spawn family of functions passing os.P_NOWAIT as mode argument. This triggers the process and does not wait for it to return or exit. On the contrary popen seems to trigger the process and wait for it to finish, i just did one more test.
So if i would compile ChucK not to be a console app then it could run as a process? how difficult is that? I never compiled before under XP, i dont like the idea very much but maybe it is worth the pain ...
It would be pretty difficult to do that, I imagine. I suspect you would have to write a WinMain function that just calls chuck's main, and then lose a few libraries... thats how I would go about it, but Im not totally certain, its not really a process that I am familiar with.
ouch!...
You might have better luck getting help from the python/Windows community on how to execute console programs without getting a terminal (as Joerg has demonstrated that this is at least possible with chuck in its current form). Don't get me wrong, we're not trying to get rid of you, but I suspect that running any console program from python in this way will pop up a terminal, so it could be something that other python users have found answers for.
hehe. of course i understand. I was only checking with side of the matter was better to try to fox the problem. So it looks like Python is the answer. I guess I ll have to use wxpython as Joerg suggested. It should not be that difficult since i already have the code for it nearly ready.
Also, it doesn't make sense to me that popen would wait for the process to finish, as it is designed for executing other processes in tandem with the parent process. I can see from the python docs that the child process's exit status is returned from the close() call to the file object that popen returns, so that would suggest to me that it doesn't wait for the process to finish. This is the behavior I observed in my primitive testing within python on my box, at least...
mmm... yes i have to ask some questions to the python community. I dont know much about this process business so i never understand very well the python documentation's explanations.
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this? Yikes, I have come across this as well. Does this happen when switching to any window, or just your python window? aha! yes i does it only when selecting the python window. Any ideas why?
The same effect happens to me when I run chuck and then switch to Finale. Switching out of Finale will cause chuck to continue processing. I could be completely off track with this idea, but is there any way to easily disable audio in pygame? pygame's sound driver could be "blocking out" chuck's sound driver.
ah! so it is pygame sound causing the problems! thats easy then, just need to avoid initialising the sound engine in my python system. I will let you know if this solves it. thanks enrike!
hope this helps, spencer
Past recommended solutions have been to increase the audio buffer size with --bufsize1024 or --bufsize2048, but on my XP SP2 system those don't even produce audio... so I can't vouch for those. I see, i will try to experiment with different values. The funny thing about this is that it does not do it when running the python application from .py file. I mean it only does this when I 'compile' the app with py2app as exe. Similar things happens with opening the terminal, when python opens a terminal (always when the file run is a .py) then ChucK uses the Python terminal to print the errors and messages. This is *really* cool as it helps a *massively* with dealing with debugging both programs at the same time. This is one of the reasons why I decided to try ChucK instead of PD. But when python does not open its terminal (when the file is .pyw or is an .exe) then ChucK opens the terminal :(
I am working on xp at the moment, so i havent tested if this happens as well on linux or osx. I would expect you to have much better success on either of those platforms...
I have very limited access to internet for a few days so i cannot search on the mailing list archive or the forum about this issue. Sorry. No worries! Hope this helps...
spencer
thanks
enrike
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
altern wrote:
Another important issue i am having is that as soon as the chuck terminal loses the focus the sound stops. So when I select the python window the sound stops. Is there any way to avoid this? Yikes, I have come across this as well. Does this happen when switching to any window, or just your python window? aha! yes i does it only when selecting the python window. Any ideas why? The same effect happens to me when I run chuck and then switch to Finale. Switching out of Finale will cause chuck to continue processing. I could be completely off track with this idea, but is there any way to easily disable audio in pygame? pygame's sound driver could be "blocking out" chuck's sound driver.
ah! so it is pygame sound causing the problems! thats easy then, just need to avoid initialising the sound engine in my python system. I will let you know if this solves it.
don't know if pygame is the reason for it because it sometimes happend at my computers with just the console window opened. however i could not reproduce it in a reliable way. best joerg -- http://joerg.piringer.net http://www.transacoustic-research.com http://www.iftaf.org http://www.vegetableorchestra.org/
participants (4)
-
altern
-
Cesare Marilungo
-
joerg piringer
-
Spencer Salazar