Millisecond Forums

How to record from which localization (left or right speaker) sound were coming?

https://forums.millisecond.com/Topic28310.aspx

By Natalia Frankowska - 2/20/2020

Hi, does anyone can help me with this issue? My participants will randomly hear sounds from their back (left speaker = pan -10000) or from in front (right speaker = pan 10000) and everything works but in a database later I do not know which sounds were presented form which direction. So the question is how to record the info from which speaker sound were coming? 

I would appreciate any help!

Best

Natalia
By Dave - 2/20/2020

Natalia Frankowska - 2/20/2020
Hi, does anyone can help me with this issue? My participants will randomly hear sounds from their back (left speaker = pan -10000) or from in front (right speaker = pan 10000) and everything works but in a database later I do not know which sounds were presented form which direction. So the question is how to record the info from which speaker sound were coming? 

I would appreciate any help!

Best

Natalia

This is impossible to answer without you sharing your actual code.
By atolopilo - 2/20/2020

Dave - 2/20/2020
Natalia Frankowska - 2/20/2020
Hi, does anyone can help me with this issue? My participants will randomly hear sounds from their back (left speaker = pan -10000) or from in front (right speaker = pan 10000) and everything works but in a database later I do not know which sounds were presented form which direction. So the question is how to record the info from which speaker sound were coming? 

I would appreciate any help!

Best

Natalia

This is impossible to answer without you sharing your actual code.

This is the part of our the code:

<sound positive>
/ items = item.positive
/ pan = parameters.targetspeaker
/ playthrough = false
/ volume = parameters.volumeadjust
/ pan = replace(-10000, 10000)
</sound>

By Dave - 2/20/2020

atolopilo - 2/20/2020
Dave - 2/20/2020
Natalia Frankowska - 2/20/2020
Hi, does anyone can help me with this issue? My participants will randomly hear sounds from their back (left speaker = pan -10000) or from in front (right speaker = pan 10000) and everything works but in a database later I do not know which sounds were presented form which direction. So the question is how to record the info from which speaker sound were coming? 

I would appreciate any help!

Best

Natalia

This is impossible to answer without you sharing your actual code.

This is the part of our the code:

<sound positive>
/ items = item.positive
/ pan = parameters.targetspeaker
/ playthrough = false
/ volume = parameters.volumeadjust
/ pan = replace(-10000, 10000)
</sound>


You can log that sound element's pan property then, i.e. sound.positive.pan

https://www.millisecond.com/support/docs/v5/html/language/properties/pan.htm

By atolopilo - 2/21/2020

Dave - 2/20/2020
atolopilo - 2/20/2020
Dave - 2/20/2020
Natalia Frankowska - 2/20/2020
Hi, does anyone can help me with this issue? My participants will randomly hear sounds from their back (left speaker = pan -10000) or from in front (right speaker = pan 10000) and everything works but in a database later I do not know which sounds were presented form which direction. So the question is how to record the info from which speaker sound were coming? 

I would appreciate any help!

Best

Natalia

This is impossible to answer without you sharing your actual code.

This is the part of our the code:

<sound positive>
/ items = item.positive
/ pan = parameters.targetspeaker
/ playthrough = false
/ volume = parameters.volumeadjust
/ pan = replace(-10000, 10000)
</sound>


You can log that sound element's pan property then, i.e. sound.positive.pan

https://www.millisecond.com/support/docs/v5/html/language/properties/pan.htm


Thank You, but I don't know if it is the main problem of ours. We need to record the right/left pan in the results but it should not be visible for the participant.

I will add some more code, maybe it will help

<item positive>
/1 = "miły.mp3"
/2 = "zaradny.mp3"
/3 = "uporządkowany.mp3"
/4 = "elegancki.mp3"
/5 = "uprzejmy.mp3"
/6 = "opiekuńczy.mp3"
/7 = "zdolny.mp3"
/8 = "elokwentny.mp3"
/9 = "przyjazny.mp3"
/10 = "uczynny.mp3"
/11 = "energiczny.mp3"
/12 = "inteligentny.mp3"
/13 = "skuteczny.mp3"
/14 = "zdrowy.mp3"
/15 = "samodzielny.mp3"
/16 = "serdeczny.mp3"
/17 = "lojalny.mp3"
/18 = "pomocny.mp3"
</item>

<sound positive>
/ items = item.positive
/ playthrough = false
/ pan =
</sound>

/ stimulustimes = [1 = sequence(text.loading); 800 = sequence(text.valence_you); 900 = noreplace(sound.positive, sound.negative)]
/ validresponse = (203, 205)
</trial>

<block you>
/ preinstructions = (page.start_you, page.task_you)
/ postinstructions = (page.end_you)
/ trials = [1-18 = sequence(trial.feedback_you)]
</block>

<expt sounds>
/ blocks = [1-2 = noreplace(block.other, block.you)]
/ preinstructions = (page.start)
/ postinstructions = (page.end)
</expt>
By Dave - 2/21/2020

atolopilo - 2/21/2020
Dave - 2/20/2020
atolopilo - 2/20/2020
Dave - 2/20/2020
Natalia Frankowska - 2/20/2020
Hi, does anyone can help me with this issue? My participants will randomly hear sounds from their back (left speaker = pan -10000) or from in front (right speaker = pan 10000) and everything works but in a database later I do not know which sounds were presented form which direction. So the question is how to record the info from which speaker sound were coming? 

I would appreciate any help!

Best

Natalia

This is impossible to answer without you sharing your actual code.

This is the part of our the code:

<sound positive>
/ items = item.positive
/ pan = parameters.targetspeaker
/ playthrough = false
/ volume = parameters.volumeadjust
/ pan = replace(-10000, 10000)
</sound>


You can log that sound element's pan property then, i.e. sound.positive.pan

https://www.millisecond.com/support/docs/v5/html/language/properties/pan.htm


Thank You, but I don't know if it is the main problem of ours. We need to record the right/left pan in the results but it should not be visible for the participant.

I will add some more code, maybe it will help

<item positive>
/1 = "miły.mp3"
/2 = "zaradny.mp3"
/3 = "uporządkowany.mp3"
/4 = "elegancki.mp3"
/5 = "uprzejmy.mp3"
/6 = "opiekuńczy.mp3"
/7 = "zdolny.mp3"
/8 = "elokwentny.mp3"
/9 = "przyjazny.mp3"
/10 = "uczynny.mp3"
/11 = "energiczny.mp3"
/12 = "inteligentny.mp3"
/13 = "skuteczny.mp3"
/14 = "zdrowy.mp3"
/15 = "samodzielny.mp3"
/16 = "serdeczny.mp3"
/17 = "lojalny.mp3"
/18 = "pomocny.mp3"
</item>

<sound positive>
/ items = item.positive
/ playthrough = false
/ pan =
</sound>

/ stimulustimes = [1 = sequence(text.loading); 800 = sequence(text.valence_you); 900 = noreplace(sound.positive, sound.negative)]
/ validresponse = (203, 205)
</trial>

<block you>
/ preinstructions = (page.start_you, page.task_you)
/ postinstructions = (page.end_you)
/ trials = [1-18 = sequence(trial.feedback_you)]
</block>

<expt sounds>
/ blocks = [1-2 = noreplace(block.other, block.you)]
/ preinstructions = (page.start)
/ postinstructions = (page.end)
</expt>

You need to define a <data> element with everything you want to record, including the sound.positive.pan property I mentioned. Nothing will be visible to the participant.

<sound positive>
/ items = ("test.wav")
/ pan = replace(-10000, 10000)
</sound>

<trial a>
/ pretrialpause = 1000
/ posttrialpause = 1000
/ stimulusframes = [1=positive]
/ validresponse = ("E", "I")
</trial>

<data>
/ columns = (date time subject group trialcode trialnum response latency sound.positive.pan)
/ separatefiles = true
</data>

<block myblock>
/ trials = [1-10 = a]
</block>

https://www.millisecond.com/support/docs/v5/html/language/attributes/columns.htm