Thread: Re: [pksampler-devel] scsynth simple examples
Status: Beta
Brought to you by:
patrickkidd
From: Patrick S. <pat...@gm...> - 2007-01-26 19:59:33
|
ToroiseSVN is another nice windows client, but as long as you get the code... I tested it briefly. there is no way to just "kill" the process on the windows level, so you have to make sure that whatever level of the hierarchy of my code you are using sends a "/quit" OSC message. some of it does this automatically. remember to subscribe and post to the pksampler list, not to me. On 1/26/07, enrike <en...@ix...> wrote: > > great! many thanks I was going to have another look into it next week. > i use rapidsvn on windows. I dont think i will be able to test it before > monday though. > > thanks! > > Patrick Stinson wrote: > > ok - I added support for the 'subprocess' module that comes with 2.4. It > > will use the subprocess module if on windows, and the popen2 module > > otherwise. > > > > How did you get your source? I highly suggest you use ToroiseSVN to > > checkout the newest source. I don't maintain the tarballs any more. > > Anyway, update your source and try it out. Take Care that you have to > > pass the exedir parameter to whatever function you are calling to create > > the process. > > > > # exedir is the dir containing scsynth.exe > > instance = process.start_local(exedir='C:\SC3') > > > > works for me! > > > > On 1/25/07, *Patrick Stinson * <pat...@gm... > > <mailto:pat...@gm...>> wrote: > > > > Maybe it's time to read some basic thread and process concepts > > online? Google is your friend.... > > > > > > On 1/25/07, *enrike* < en...@ix... > > <mailto:en...@ix...>> wrote: > > > > do you have any idea which functions i should be trying out? i > > have been > > dealing with part of python before and i find it very confusing. > > I dont > > have a clue of the technicalities behind processes so I find > > difficult > > to differentiate the right command in the docs. I mean there are > > quite a > > few commands that deal with processes in different ways and I > > never get > > which one is the one I am looking for. > > > > Patrick Stinson wrote: > > > yeah. like I said - all you need is a way to poll the process > > and a > > > process id. Other built-in modules provide that - you should > > try the > > > other process management ones on windows. I would, but I > don't > > have a > > > windows machine setup. > > > > > > On 1/19/07, *enrike* < en...@ix... > > <mailto:en...@ix...> > > > <mailto: en...@ix... > > <mailto:en...@ix...>>> wrote: > > > > > > hi patrick > > > > > > i have been pointed to this > > > http://sourceforge.net/projects/pywin32/ > > > > > > apparently popen doesnt work on windows because a bug > > > http://www.python.org/infogami-faq/windows/ > > > > > > not nice having to use an extension just for that. > > > > > > enrike > > > > > > Patrick Stinson wrote: > > > > well, it should be fairly easy to replace with > something > > else - > > > > process.py is very short. > > > > > > > > It looks like the "proc" Popen4 object is only for it's > > poll() method > > > > and it's pid member. It also happens to capture stdout > > and stderr - > > > > which is why you don't see that in your console when > you > > run it. > > > > > > > > I don't have a windows machine on hand, but if you can > > find a way to > > > > create a process on windows, capture it's stdout and > > stderr, get it's > > > > pid, and make a call to tell if it is alive, then you > > can just > > > use that > > > > function. That's a pretty simple set of requirements... > > > > > > > > On 1/18/07, *enrike* < en...@ix... > > <mailto:en...@ix...> > > > <mailto: en...@ix... > > <mailto:en...@ix...>> > > > > <mailto: en...@ix... > > <mailto:en...@ix...> > > > <mailto:en...@ix... > > <mailto:en...@ix...>>>> wrote: > > > > > > > > that would be fantastic!. I have been checking it > > over and > > > over but i > > > > did not get that far. I manage am trying a dirty > > work around > > > that by > > > > using popen2.popen4 function instead of the Popen4 > > class to > > > avoid the > > > > Popen4.poll () method. But looks like the server > > doesnt start up > > > > now. See > > > > if i get somewhere. > > > > > > > > > > > > Patrick Stinson wrote: > > > > > how interesting. I'm sure I can come up with a > > work around for > > > > that. I > > > > > use 2.3.5 in mac, and I'm all about making such > a > > simple > > > module > > > > > deployable everywhere. > > > > > > > > > > I am at the NAMM show demoing our products for > > the next > > > couple of > > > > days, > > > > > so I will have limited time to look at it, but > > I'm sure I > > > can come up > > > > > with something for you... > > > > > > > > > > On 1/18/07, *enrike* < en...@ix... > > <mailto:en...@ix...> > > > <mailto:en...@ix... > > <mailto:en...@ix...>> > > > > <mailto: en...@ix... > > <mailto:en...@ix...> > > > <mailto: en...@ix... > > <mailto:en...@ix...>> > > > > > > <mailto: en...@ix... > > <mailto:en...@ix...> > > > <mailto: en...@ix... > > <mailto:en...@ix...>> > > > > <mailto:en...@ix... > > <mailto:en...@ix...> > > > <mailto: en...@ix... > > <mailto:en...@ix...>>>>> wrote: > > > > > > > > > > > > > > > hi again patrick > > > > > > > > > > i am testing soscs/scsynth on windows XP > with > > python 2.4.2 > > > > and there is > > > > > an error because the popen2.Popen4 class > > doesnt exist on > > > > windows. There > > > > > is a popen2.popen4 function but not the > > class. This is > > > used > > > > on line 67 > > > > > module process.py when instantiating the > > server. I am > > > > checking to see ig > > > > > i find some work around at the moment. Do > you > > think it is > > > > possible to > > > > > get the code running under windows? it is > quite > > > important for > > > > me to > > > > > make > > > > > it run in all platforms. > > > > > > > > > > thanks > > > > > > > > > > enrike > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Patrick Kidd Stinson > > > > > http://www.patrickkidd.com/ > > > > > http://pkaudio.sourceforge.net/ > > > > > http://pksampler.sourceforge.net/ > > > > > > > > > > > > > > > > > > > > -- > > > > Patrick Kidd Stinson > > > > http://www.patrickkidd.com/ > > > > http://pkaudio.sourceforge.net/ > > > > http://pksampler.sourceforge.net/ > > > > > > > > > > > > > > > -- > > > Patrick Kidd Stinson > > > http://www.patrickkidd.com/ > > > http://pkaudio.sourceforge.net/ > > > http://pksampler.sourceforge.net/ > > > > > > > > > > -- > > > > Patrick Kidd Stinson > > http://www.patrickkidd.com/ > > http://pkaudio.sourceforge.net/ > > http://pksampler.sourceforge.net/ > > > > > > > > > > -- > > Patrick Kidd Stinson > > http://www.patrickkidd.com/ > > http://pkaudio.sourceforge.net/ <http://pkaudio.sourceforge.net/> > > http://pksampler.sourceforge.net/ > > -- Patrick Kidd Stinson http://www.patrickkidd.com/ http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ |
From: Patrick S. <pat...@gm...> - 2007-01-27 10:54:27
|
again, post to the list, not me. This is a supercollider error. You should ask the supercollider list. On 1/27/07, enrike <en...@ix...> wrote: > > Patrick Stinson wrote: > > ToroiseSVN is another nice windows client, but as long as you get the > > code... > > > > I tested it briefly. there is no way to just "kill" the process on the > > windows level, so you have to make sure that whatever level of the > > hierarchy of my code you are using sends a "/quit" OSC message. some of > > it does this automatically. > > ok. > > I am testing it now but i am getting an error from psycollider i guess, > it says: > exception of GrafDef_Load: UGen 'Control' not installed > while reading file 'C:\Documents and > Settings\Administrator\Desktop\player.scsyndef' > > > remember to subscribe and post to the pksampler list, not to me. > > done! > > > On 1/26/07, *enrike* <en...@ix... > > <mailto:en...@ix...>> wrote: > > > > great! many thanks I was going to have another look into it next > week. > > i use rapidsvn on windows. I dont think i will be able to test it > before > > monday though. > > > > thanks! > > > > > -- Patrick Kidd Stinson http://www.patrickkidd.com/ http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ |