[MWForum]Pick Question

Walter Smith mwforum@lists.mathcats.com
Fri, 26 Apr 2002 16:50:42 -0700


Whenever my seventh grade computer lab started to be noisy I would write a
logo program that generated random notes at a random duration ... it never
took more than five minutes before they started to beg me to stop running it
... it did help that I had a 1000 watt amp with some nice two way folded
speakers to run my sound card with ... a true multimedia system. After a
couple of times running the program it only took warnings to keep the noise
down.

  repeat 2222[note random (1 + 127) random (1 + 6)]

If you have a problem hearing anything it might be that you have the
incorrect MIDI output selected ...

de Walt

-----Original Message-----
From: mwforum-admin@lists.mathcats.com
[mailto:mwforum-admin@lists.mathcats.com]On Behalf Of Daniel Ajoy
Sent: Friday, April 26, 2002 2:38 PM
To: mwforum@lists.mathcats.com
Cc: OWL-TeacherForum@yahoogroups.com
Subject: Re: [MWForum]Pick Question

"note" is the primitive you are looking for.

repeat 20 [note (69 + random 12) (5 + random 10)]

Daniel


On 26 Apr 2002 at 8:50, Gary McCallister wrote:

>      I would like to make a list that allows the computer to
> pick a tone from the 12 tone scale and also a time to hold
> the tone.  Can that be done.  In other words, I want to the
> computer pick a random note and hold it a random amount of
> time so I can generate a melody.  Any suggestions?
>



_______________________________________________
MWForum mailing list
MWForum@lists.mathcats.com
http://lists.mathcats.com/mailman/listinfo/mwforum