How to play a sound file by pressing on a picture


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K

Yep, my bad. I picked the wrong property.


Inquisitive
Inquisitive
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 13, Visits: 1

Ah, I figured it out!  sound.mysound.selectedvalue did the trick.  Thanks for getting me in the right direction, I can rest easy now.


Inquisitive
Inquisitive
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 13, Visits: 1

I'd rather fix the problem using Inquisit's data output than using SPSS's syntax.  I have no experience with programming, but at least I have been using Inquisit for a few weeks now.


I apologize for my denseness, but I can't figure out a way to do this by changing Inquisit's data output.  I believe you that it's possible, I just don't know how to do it.  Looking at the documentation (data and columns help sections in Inquisit) you pointed me to and trying a few different methods hasn't worked.  In your most recent post, I tried entering sounds.(mysound).stimulusitem, but it gave me an error message and didn't output anything.



Edit:  I see you edited that post and replaced stimulusitem with selectedindex.  I now get a column of 1's, but I imagine there must be a way to change that?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K

You must either customize Inquisit's raw data output (which is why I referred you to those documentation topics)

<data>
/ columns = [..., sound.mysound.selectedindex, ...]
[...]
</data>

or restructure your data in SPSS, preferrably using SPSS syntax (which isn't hard either).

Regards,
~Dave


Inquisitive
Inquisitive
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 13, Visits: 1

Hmmm...Thanks for pointing me to that, but I'm still very puzzled.  I enter stimulusnumber as a column, and that spits out the info that I need, but not in the spot I need it to enter into SPSS.  It would be easy enough to just copy paste that column one cell downward, but the problem I run into is this:



The first trial they listen to the audio sample.  Then they are asked 2 questions about the trial.  So there is only one row that contains the stimulusnumber that I need to match responses to.  Meanwhile, I have 2 rows with responses.  See the attached image, where the two values of "3" are the responses to the stimulus.  What would be the best way for me to get those to line up?


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K

Yes. Please see the documentation for the <data> element and the /columns attribute.


Inquisitive
Inquisitive
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 13, Visits: 1

I have a big problem that I didn't account for.  I'm scheduled to start running people in two days and didn't think of the fact that I need to have some way of pairing the number of stimulus (which audio sample they receive) to their responses to that stimulus.  Currently all I can do is enter them by hand via the SPSS output, because the stimulus number and the response are not on the same line.  Is there a way to ask for the current stimulus number as one of the data outputs?  Then I would have that stimulus number in the same row as the response to the stimulus.



Thanks in advance.


Inquisitive
Inquisitive
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 13, Visits: 1

Yay!!! After much tweaking, checking and double checking and editing, it looks like I've got it working how I want it.  Thanks a bunch!


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 107K

<defaults>
/ inputdevice = mouse
</defaults>

<values>
/ itemnumber = 0
</values>

<counter mysounds>
/ select = noreplace(1-6)
</counter>

<text clicktoplaysound>
/ items = ("Click me, hear sound.")
</text>

<text sound>
/ items = sounditems
/ select = values.itemnumber
</text>

<item sounditems>
/ 1 = "01.wav"
/ 2 = "02.wav"
/ 3 = "03.wav"
/ 4 = "04.wav"
/ 5 = "05.wav"
/ 6 = "06.wav"
</item>

<text nextsound>
/ items = ("Next")
/ position = (25%, 75%)
</text>

<text repeatsound>
/ items = ("Repeat")
/ position = (75%, 75%)
</text>

<trial click>
/ ontrialbegin = [values.itemnumber=counter.mysounds.selectedvalue]
/ stimulusframes = [1=clicktoplaysound]
/ validresponse = (clicktoplaysound)
/ branch = [trial.play]
</trial>

<trial play>
/ stimulusframes = [1=sound, repeatsound, nextsound]
/ validresponse = (repeatsound, nextsound)
/ branch = [if(trial.play.response=="repeatsound")trial.play]
</trial>

<block myblock>
/ trials = [1-6=click]
</block>


Inquisitive
Inquisitive
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 13, Visits: 1

I took a look at the correct script this time, and it's a mess.  Since his task is a paired comparison, there is a lot of extra stuff in there that I can't tell if it's related or not to what I need to do.  I assume the dummy trials are the things at the bottom?  I couldn't really figure out what was going on there either.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search