'array.array' object has no attribute 'tostring' which 3 got it fixed?

2021-12-21 Thread '2+
hi ;) got popos installed on my raspberry pi4 and it is currently running python 3.9.7 i get this error when running my script: 'array.array' object has no attribute 'tostring' this bug seems to be pretty old .. how long should i be waiting to get it fixed with apt upgrade? or should i use oth

Re: pyao makes the right sound but why?

2010-03-04 Thread '2+
o .. but u can use ur own tits.wav if it is 44100 mono 16bit and picklin n uploading the tofu n having lots of those on the net 2 increase vegetrians is what soy.py wanted to mean On Fri, Mar 5, 2010 at 9:48 AM, '2+ wrote: > omg! u r actually testin my dirty code?! > tnx that&#x

Re: pyao makes the right sound but why?

2010-03-04 Thread '2+
t; culture btw. where's that help(ao)? On Fri, Mar 5, 2010 at 3:43 AM, Anssi Saari wrote: > "'2+" writes: > >> dev = ao.AudioDevice('alsa') >> dev.play(x) >> >> could launch me a semi realtime dj kinda sys >> luckily .. it does s

pyao makes the right sound but why?

2010-03-03 Thread '2+
vice('alsa') dev.play(x) could launch me a semi realtime dj kinda sys luckily .. it does seem to be making the right sound but why? the default of the samplerate and that 16bit happened to match with my thing x? o but if i do dev.play(x, len(x)) it only plays the half of the pattern and d

Re: hs.py = run an exec and pipe back the result as a member of a list

2010-02-25 Thread '2+
oops the code was wrong .. sorry import popen2 wave = [] for frame in range(890, 1010): wave.append(int(popen2.Popen3('./hascillator01 ' + str(frame)).fromchild.readline())) print wave On Fri, Feb 26, 2010 at 1:22 AM, '2+ wrote: > did this for hascillator01 that i ghc-ed

hs.py = run an exec and pipe back the result as a member of a list

2010-02-25 Thread '2+
did this for hascillator01 that i ghc-ed from hascillator01.hs into ./ import popen2 wave = [] for frame in range(890, 1010): wave.append(int(popen2.Popen3('./hascillator01 ' + str(frame)).fromchild.readline())) print wave hascillator01 takes int and returns another int so yes this became a [int

Re: Math Notations, Computer Languages, and the “F orm” in Formalism

2009-09-08 Thread -7/9 n n + 1.76666666 + 2/
8am. Heavy water is water nonetheless. 67 new of 67 ... Math Notations, Computer Languages, and the "Form" in Formalism. 2 new of 2 ...groups.google.fm/group/sci.math/topics?gvc=2&hl=en Discussions - sci.math | Google GroupsBy Musatov - 6:27pm - 5 new of 5 messages ... Math Notations,

Re: Python/Fortran interoperability

2009-08-23 Thread viper-2
rent Fortran standard. Python is still on my "to do" list, but I know I'll be interested in the following: > 1) Do you want to use character strings of arbitrary length? > Yes > 2) Do you want to use Python classes with list members, where the > length of th

Re: instead of depending on data = array('h') .. write samples 1 by 1 to w = wave.open("wav.wav", "w")

2009-07-29 Thread '2+
trouble and my oil.py is still so cheap.. sad thing is that "the result sound strange" is true to all versions :s thanx again anyway! On Wed, Jul 29, 2009 at 5:21 PM, Peter Otten<__pete...@web.de> wrote: > '2+ wrote: > >> it says >> Wave_write.writefram

instead of depending on data = array('h') .. write samples 1 by 1 to w = wave.open("wav.wav", "w")

2009-07-28 Thread &#x27;2+
it says Wave_write.writeframes(data) will that mean "from array import array" is a must? this does the job: import oil import wave from array import array a = oil.Sa() w = wave.open("current.wav", "w") w.setnchannels(2) w.setsampwidth(2) w.setframerate(44100)

wave.setparams((2, 2, 44100, 44100 * 2 * 10, "NONE", "not compressed")) became more than 30secs

2009-07-27 Thread &#x27;2+
file but the result was longer than 30secs was testing if i could use the WAVE lib withount taking advantage of StringIO nor struct but maybe am doing totally wrong? --8<--- import oil import wave a = oil.Sa() w = wave.open("current.wav", "w") w.setparams((2, 2, 44100, 44100

Re: what is the biggest number that i can send to Wave_write.writeframes(data)

2009-06-04 Thread &#x27;2+
thanx for the example! somehow on juanty gui comes up but no sound .. anyway i shortened the script this way and could aplay it import wave AMPLITUDE = 2 ** 15 w = wave.open( "out.wav", "w" ) w.setnchannels( 2 ) w.setsampwidth( 2 ) #BYTES w.setframerate( 22000 ) from array

what is the biggest number that i can send to Wave_write.writeframes(data)

2009-06-02 Thread &#x27;2+
would like to take advantage of the wave module found a good example here: http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=10644 hmm .. i don't get how to write a stereo .. i mean i can set nchannels .. but how do i actually take control of each ch individually? and what&#x

Re: is there a way to collect twitts with python?

2009-04-04 Thread &#x27;2+
nice info, thanx that # stalk my stalkers example look smart i won't use that one if it was for this ml ;D On Sun, Apr 5, 2009 at 1:22 AM, Bradley Wright wrote: > Just to pimp my own wares: > > http://github.com/bradleywright/yatcip/tree/master > > A Python Twitter client. > -- > http://mail.pyth

Re: is there a way to collect twitts with python?

2009-04-04 Thread &#x27;2+
anyway i found: http://code.google.com/p/python-twitter/ and http://mike.verdone.ca/twitter/ and both were easy to install on intrepid .. but didn't work python-twitter did work by manually downloading: http://python-twitter.googlecode.com/svn/trunk/twitter.py well but it seems like i have to fol

is there a way to collect twitts with python?

2009-03-27 Thread &#x27;2+
i found a guy twittin supercollider code this means his followers can listen to a noiz by activating that 1 line (well if he has sc installed) if lots of sc users start twittin ... it would be no good to follow each collecting a sc related twitt can be done with python? if there's a lib already an

Re: a podcast for music algo-comped with python

2008-08-14 Thread &#x27;2+
file available from the above page reminds me of background > music from a 1990s game whose name I can't remember, and I wonder if > there's any potential for combining this with game writing, if you > aren't already doing so. > -- '2+ http://sarigama.namaste.jp/buyobuyo.html -- http://mail.python.org/mailman/listinfo/python-list

a podcast for music algo-comped with python

2008-08-11 Thread &#x27;2+
well maybe am over-advertising .. excuse me ... am new to python but my "algo-comping cs.sco with python" thang kinda got lauched after all so decided to move from java to python to do these thangs completly platform independently oh .. am just curious who are the guys over here composing weird