Re: [Tutor] Writing to Sound
-Original Message- From: Alan Gauld To: tutor Sent: Wed, Sep 15, 2010 5:26 am Subject: Re: [Tutor] Writing to Sound "Corey Richardson" wrote First off, here is what I'm doing. I'm taking pi (3.141592 etc. etc. etc.), taking two values at a time, and then mapping the two values to pitch and length. I'm then using winsound.Beep to beep for x ms, at y frequency. So far I understand. What I want to do, is write that to file. Write what? The sound generated by Beep or the data used to drive Beep? [snip] -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ - I want to write the sound generated by Beep to file, or sound at the same pitch and length. Sorry that that wasn't clear ~Corey RIchardson ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Plotting a Linear Equation
-Original Message- From: Greg To: tutor Sent: Fri, Sep 24, 2010 3:29 am Subject: Re: [Tutor] Plotting a Linear Equation On Thu, Sep 23, 2010 at 10:51 PM, Corey Richardson wrote: Hello tutors. Probably the wrong mailing list, but someone might know. I want to use matplotlib (or similar) to plot an equation in slope-intercept (y=mx+b) or standard form (Ax + By = C). As far as I've read and tested, you can only plot with a series of points. I could make two points out of those manually, but I was wondering if anyone knew of an easier way. Thanks. You could just have your program compute the x- and y- intercepts, then plug them into matplotlib. Am I correct in that? -- Greg Bair gregb...@gmail.com __ Yes, you are correct. That's what I planned on doing if I couldn't plug the equation right into matplotlib. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] (no subject)
On Fri, 2009-09-04 at 06:18 -0700, dan06 wrote: > I'd like to learn a programming language - and I need help deciding between > python and ruby. I'm interesting in learning what are the difference, both > objective and subjective, between the two languages. I know this is a python > mailing list, so knowledge/experience with ruby may be limited - in which > case I'd still be interested in learning why members of this mailing list > chose python over (or in addition to) any other programming language. I look > forward to the feedback/insight. I first learned about Python when I downloaded Blender, and It is required for all the things to work. I decided that while I had it, I might as well just learn how to use it. I googled a tutorial, found out how easy it was, and then it had me. I have some experience with Actionscript, Adobes code for Flash. After doing a really simple python tutorial, I found everything else falling into place. Thats why I chose it, and I plan on sticking with it, to help me when I (hopefully) learn other languages. ~Corey ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] (no subject)
I know, I'm a total noob (started yester day) But when I enter this code: x = 1 if x>0: ??? a = raw_input ("Type something in...I will echo it:") ??? print a ??? x=x+1 it does not loop..am I missing something here? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] Unexpected Result in Test Sequence
Hello Tutor list. I'm running a test to find what the experimental average of a d20 is, and came across a strange bug in my code. import random list1 = [] def p(): d = 0 for number in range(1,1000): t = random.randrange(1,19) list1.append(t) for value in list1: d+=value print d/1000 d = 0 for value in range(1,100): p() It works, but I have a logic error somewhere. It runs, and the results have a pattern : 9 19 28 37 47 56 66 75 85 94 104 113 ... ... It just adds 10, and every second result, subtracts 1, till it gets to 0, and then starts again with 9 in singles, and whatever in the 10's, etc. What is causing this? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor