Can you describe your goal a little clearer - what are you trying to achieve? Does the program choose a pan value and the user is supposed to click on the appropriate button to say which is the closest pan value?
Where does the Tone sound start playing? In the code that you show, you are only capturing the pan value of the Tone sound, but not setting it.
I don't know if this helps, but it sounds like you probably want to create five lists (or a list of 5 lists). Initialize them to the empty list in your beginSprite handler, and add to the appropriate one in your dataCollect routine.
Maybe you need to show us more of what you are really doing.
Irv
At 2:49 PM -0400 5/24/04, Paul Schulman wrote:
I am working on this project in which I have two tones presented. The first
tone (a hissing sound) is presented when I press one of 5 buttons. Each button
makes the hiss seem to come from a different direction. The second tone (a
sort of warbling sound) is in an exitFrame handler.
I want to store the apparent direction of the warbling tone (as a pan value)in
the appropriate list or file; that is, if the white noise comes from the far
left, I want to store the direction of the warbling sound in the list for the
far left white noise. But since I have the warbling tone in an exitFrame
handler, it outputs each of the five lists.
If I remove the warbling tone from the exitFrame handler and put it in the mouseDown handler, the warbling doesn't occur at all.
I don't know if any of this will make sense but here goes. Here's the basic code (I've edited out non-essential stuff):
on mouseDown me sound(1).play(member("white noise")) pHissDirection = sound(1).pan end
on exitFrame me
ptoneDirection = sound(2).pan
if the doubleclick then
dataCollect end if
end
dataCollect is where the lists are.
Thanks Paul Schulman
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
--
Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
