how to present sound pictogram when sound plays


Author
Message
Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Hi all,
I have a task where every block words, pictures or sounds get presented/played. These stimuli come from lists of 3 conditions (irrelevants, targets and probes).
I wondered how I can implement a sound icon (a picture)  whilst the sounds are playing?
Thank you very much in advance!


STIMULI
**********************
WORDS
<item wordirrelevants>
/1= "Cycle track"
/2= "No U-turn"
/3= "One way"
/4= "Parking"
/5= "Pass right"
/6= "Roundabout"
</item>

<item wordtargets>
/1= "No entry"
/2= "Turn right"
</item>

<item wordprobes>
/1= "Stop"
/2= "Yield"
</item>

<text wordirrelevants>
/ items = wordirrelevants
/ position = (50%, 50%)
</text>

<text wordtargets>
/ items = wordtargets
/ position = (50%, 50%)
</text>

<text wordprobes>
/ items = wordprobes
/ position = (50%, 50%)
</text>

SOUNDS
<sound soundirrelevants>
/items =("cycletrack.mp3","nou-turn.mp3","oneway.mp3","parking.mp3","passright.mp3","roundabout.mp3")
/playthrough = true
</sound>

<sound soundtargets>
/items =("noentry.mp3","turnright.mp3")
/playthrough = true
</sound>

<sound soundprobes>
/items =("stop.mp3","yield.mp3")
/playthrough = true
</sound>

PICTOGRAMS
<picture pictirrelevants>
/items =("cycletrack.png","nou-turn.png","oneway.png","parking.png","passright.png","roundabout.png")
</picture>

<picture picttargets>
/items =("noentry.png","turnright.png")
</picture>

<picture pictprobes>
/items =("stop.png","yield.png")
</picture>

<picture soundicon>
/items= ("soundicon.jpg")
</picture>

******
LISTS OF irrelevants stimuli / target stimuli/ probes stimuli

<list irrelevants>
/items = (text.wordirrelevants, sound.soundirrelevants, picture.pictirrelevants)
/maxrunsize= 1
</list>

<list targets>
/items = (text.wordtargets, sound.soundtargets, picture.picttargets)
/maxrunsize= 1
</list>

<list probes>
/items = (text.wordprobes, sound.soundprobes,picture.pictprobes)
/maxrunsize= 1
</list>

FEEDBACK PRACTICE PHASE
<text wrongFB>
/ items = ("Wrong")
/ txcolor = red
</text>

YES & NO
<text yes>
/ items = ("YES")
/ txcolor = black
/position= (20%,80%)
</text>

<text no>
/ items = ("NO")
/ txcolor = black
/position= (80%,80%)
</text>

*************************************************
TRIALS
<trial irrelevants>
/ ontrialbegin = [
  trial.irrelevants.resetstimulusframes();
  trial.irrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
</trial>

<trial targets>
/ ontrialbegin = [
  trial.targets.resetstimulusframes();
  trial.targets.insertstimulustime(list.targets.nextvalue, 200);
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
</trial>

<trial probes>
/ ontrialbegin = [
  trial.probes.resetstimulusframes();
  trial.probes.insertstimulustime(list.probes.nextvalue, 200);
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
</trial>

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: 12K, Visits: 100K
Amelinq - 9/27/2023
Hi all,
I have a task where every block words, pictures or sounds get presented/played. These stimuli come from lists of 3 conditions (irrelevants, targets and probes).
I wondered how I can implement a sound icon (a picture)  whilst the sounds are playing?
Thank you very much in advance!


STIMULI
**********************
WORDS
<item wordirrelevants>
/1= "Cycle track"
/2= "No U-turn"
/3= "One way"
/4= "Parking"
/5= "Pass right"
/6= "Roundabout"
</item>

<item wordtargets>
/1= "No entry"
/2= "Turn right"
</item>

<item wordprobes>
/1= "Stop"
/2= "Yield"
</item>

<text wordirrelevants>
/ items = wordirrelevants
/ position = (50%, 50%)
</text>

<text wordtargets>
/ items = wordtargets
/ position = (50%, 50%)
</text>

<text wordprobes>
/ items = wordprobes
/ position = (50%, 50%)
</text>

SOUNDS
<sound soundirrelevants>
/items =("cycletrack.mp3","nou-turn.mp3","oneway.mp3","parking.mp3","passright.mp3","roundabout.mp3")
/playthrough = true
</sound>

<sound soundtargets>
/items =("noentry.mp3","turnright.mp3")
/playthrough = true
</sound>

<sound soundprobes>
/items =("stop.mp3","yield.mp3")
/playthrough = true
</sound>

PICTOGRAMS
<picture pictirrelevants>
/items =("cycletrack.png","nou-turn.png","oneway.png","parking.png","passright.png","roundabout.png")
</picture>

<picture picttargets>
/items =("noentry.png","turnright.png")
</picture>

<picture pictprobes>
/items =("stop.png","yield.png")
</picture>

<picture soundicon>
/items= ("soundicon.jpg")
</picture>

******
LISTS OF irrelevants stimuli / target stimuli/ probes stimuli

<list irrelevants>
/items = (text.wordirrelevants, sound.soundirrelevants, picture.pictirrelevants)
/maxrunsize= 1
</list>

<list targets>
/items = (text.wordtargets, sound.soundtargets, picture.picttargets)
/maxrunsize= 1
</list>

<list probes>
/items = (text.wordprobes, sound.soundprobes,picture.pictprobes)
/maxrunsize= 1
</list>

FEEDBACK PRACTICE PHASE
<text wrongFB>
/ items = ("Wrong")
/ txcolor = red
</text>

YES & NO
<text yes>
/ items = ("YES")
/ txcolor = black
/position= (20%,80%)
</text>

<text no>
/ items = ("NO")
/ txcolor = black
/position= (80%,80%)
</text>

*************************************************
TRIALS
<trial irrelevants>
/ ontrialbegin = [
  trial.irrelevants.resetstimulusframes();
  trial.irrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
</trial>

<trial targets>
/ ontrialbegin = [
  trial.targets.resetstimulusframes();
  trial.targets.insertstimulustime(list.targets.nextvalue, 200);
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
</trial>

<trial probes>
/ ontrialbegin = [
  trial.probes.resetstimulusframes();
  trial.probes.insertstimulustime(list.probes.nextvalue, 200);
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
</trial>

After having selected a stimulus element from the given list /ontrialbegin, you'll want to check whether the list's currentvalue starts with "sound.", and if so, you'll want to insert the "sound pictogram" picture into the trial's /stimulustimes per insertstimulustime().

<trial irrelevants>
/ ontrialbegin = [
    trial.irrelevants.resetstimulusframes();
    trial.irrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);
    if (startswith(list.irrelevants.currentvalue, "sound.")) {
    trial.irrelevants.insertstimulustime(picture.soundicon, 200);
    };
]
/stimulustimes = [200= clearscreen, yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
</trial>

Edited 10 Months Ago by Dave
Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Hi Dave, it works perfecty! thank you!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search