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


How to record from which localization (left or right speaker) sound...
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: 104K
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

atolopilo
atolopilo
Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)
Group: Forum Members
Posts: 7, Visits: 36
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>

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: 104K
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


atolopilo
atolopilo
Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)Associate Member (159 reputation)
Group: Forum Members
Posts: 7, Visits: 36
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>


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: 104K
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.
Natalia Frankowska
Natalia Frankowska
New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)
Group: Forum Members
Posts: 1, Visits: 2
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search