Ouija board style study


Author
Message
peter
peter
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 64, Visits: 210
Hi, about 6 months ago we attempted to get a Ouija board style study up and running but simply could not get a workable script.
We decided to simplify the study but have run in to the same stumbling block as before.

              WHAT WE HAVE WORKING SO FAR
The script CURRENTLY displays a black screen with a viewing window in the centre.
As the participant moves the mouse a coloured board beneath the black screen moves along with the movement of the mouse. Part of that coloured board can be seen through the viewing window. 
Participants move the coloured board around, eventually manoeuvring one of the coloured circles into the viewing window.

            WHAT WE HAVE BEEN TRYING TO ADD
Moving one of the coloured circles into the viewing window needs to prompt an audio tone that is specific to the coloured circle in the viewing window. The current position of the mouse should also be recorded.
This activity should be repeated for a set time.

The problem we are having is that the looping nature of the trial (necessary for syncing the movement of the coloured board to the mouse) seems to make adding additional elements or branching impossible.
Any help would be greatly appreciated.


<defaults>
/ minimumversion = "4.0.0.0"
/ inputdevice = mouseover
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)
/ canvasaspectratio = (4,3)
</defaults>

*************************************************************************************************************
*************************************************************************************************************

<values>
/ x = -1
/ y = -1
</values>

<data>
/file = "Data.iqdat"
/ columns = [mouse.x mouse.y]
/separatefiles = true
</data>

***********************************************************************************************************
***********************************************************************************************************


<expt main>
/ blocks = [1=search]
</expt>

    
<block search>
/ trials = [1 = search]
/ timeout= (8000)
</block>


<trial search>
/ stimulusframes = [1=clearscreen, bord, viewhole]
/ ontrialbegin = [picture.bord.hposition = 1px * mouse.x;picture.bord.vposition = 1px * mouse.y;]
/ inputdevice = mouse
/ validresponse = (mousemove)
/ branch = [trial.search]
/ recorddata = false
</trial>



    <trial win>
    / ontrialbegin = [trial.win.insertstimulustime(sound.Win, 100)]
    / recorddata = false
    / timeout= (1000)
    </trial>
    
      <sound Win>
        /items = win
        /playthrough = false
        /select = noreplace
        /resetinterval = 0
        </sound>

        <item win>
        /1 = "win.wav"
        </item>

    <trial lose>
    / ontrialbegin = [trial.lose.insertstimulustime(sound.lose, 100)]
    / recorddata = false
    / timeout= (1000)
    </trial>

        <sound lose>
        /items = lose
        /playthrough = false
        /select = noreplace
        /volume = -999
        /resetinterval = 0
        </sound>

        <item lose>
        /1 = "lose.wav"
        </item>





<picture viewhole>
/ items = ("Hole.png")
/ erase = false
/ size=(3000, 3000)
</picture>

<picture bord>
/ items = ("Board.jpg")
/ erase = false
/ size=(2200, 2200)
</picture>




Attachments
Board.jpg (293 views, 2.00 MB)
Hole.png (281 views, 1.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
peter - 4 Years Ago
Dave - 4 Years Ago
peter - 4 Years Ago
peter - 4 Years Ago
Dave - 4 Years Ago
                         , So this will this let the sound continue playing over the next trial...
peter - 4 Years Ago
                             Yes, sounds displayed via /bgstim will continue running in the...
Dave - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search