## List Selectionmode

 Author Message chuyunshen Associate Member Group: Forum Members Posts: 3, Visits: 13 Hi there,In my code, I have two counterbalances of the stimuli that participants see. Half of the participants see 50 sets of audios that are paired with two images and the other half sees the other 50 sets. So I used "list" to code this. / 1 = "stim/Pair00_SoundA.wav"/ 2 = "stim/Pair01_SoundA.wav"/ 3 = "stim/Pair02_SoundA.wav"/ 4 = "stim/Pair03_SoundA.wav"/ 5 = "stim/Pair04_SoundA.wav"/ 6 = "stim/Pair05_SoundA.wav"..../ 100 =  "stim/Pair99_SoundA.wav"/ 1 = "stim/Pair00_ImageA1.jpg"/ 2 = "stim/Pair01_ImageA1.jpg"/ 3 = "stim/Pair02_ImageA1.jpg"/ 4 = "stim/Pair03_ImageA1.jpg"/ 5 = "stim/Pair04_ImageA1.jpg"/ 6 = "stim/Pair05_ImageA1.jpg".../ 100 =  "stim/Pair99_ImageA1.wav"/ 1 = "stim/Pair00_ImageA2.jpg"/ 2 = "stim/Pair01_ImageA2.jpg"/ 3 = "stim/Pair02_ImageA2.jpg"/ 4 = "stim/Pair03_ImageA2.jpg"/ 5 = "stim/Pair04_ImageA2.jpg"/ 6 = "stim/Pair05_ImageA2.jpg".../ 100 =  "stim/Pair99_ImageA2.wav"/ items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50)/ selectionmode = random/ items = (51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100)/ selectionmode = random/ selectionmode = values.cb/ items = (list.cb1.nextvalue, list.cb2.nextvalue)/ selectionmode = values.cb/ items = (list.cb1.currentvalue, list.cb2.currentvalue)/ items = sound1/ select = list.sound.nextvalue/ items = picture1/ select = list.picture.nextvalue/ size = (values.pictureheight, values.picturewidth)/ position = (30%, 50%)/ items = picture2/ select = list.picture.nextvalue/ size = (values.pictureheight, values.picturewidth)/ position = (70%, 50%)I'm hoping to select items from the list with no repeat and go through all the items, but "selectionmode = random" repeats its selection, and I also don't want "sequence". "Noreplace" doesn't seem to work here. Is there another command?Additionally, each participant is going to see 5 additional sets of stimuli that serve as attention checks. All the participants are seeing the same ones. But the stimuli don't seem to be updating properly in my code. How should I edit my code?   / 1 = "Mismatch/MM_Pair00_SoundA.wav"/ 2 = "Mismatch/MM_Pair01_SoundA.wav"/ 3 = "Mismatch/MM_Pair02_SoundA.wav"/ 4 = "Mismatch/MM_Pair03_SoundA.wav"/ 5 = "Mismatch/MM_Pair04_SoundA.wav"/ 1 = "Mismatch/MM_Pair00_ImageA1.jpg"/ 2 = "Mismatch/MM_Pair01_ImageA1.jpg"/ 3 = "Mismatch/MM_Pair02_ImageA1.jpg"/ 4 = "Mismatch/MM_Pair03_ImageA1.jpg"/ 5 = "Mismatch/MM_Pair04_ImageA1.jpg"/ 1 = "Mismatch/MM_Pair00_ImageA2.jpg"/ 2 = "Mismatch/MM_Pair01_ImageA2.jpg"/ 3 = "Mismatch/MM_Pair02_ImageA2.jpg"/ 4 = "Mismatch/MM_Pair03_ImageA2.jpg"/ 5 = "Mismatch/MM_Pair04_ImageA2.jpg"/ items = soundMM/ select = noreplace/ items = pictureMM1/ select = sound.soundMM.currentindex/ size = (values.pictureheight, values.picturewidth)/ position = (30%, 50%)/ items = pictureMM2/ select = sound.soundMM.currentindex/ size = (values.pictureheight, values.picturewidth)/ position = (70%, 50%)Thank you so much! Dave Supreme Being Group: Administrators Posts: 9.3K, Visits: 41K +xchuyunshen - Tuesday, October 2, 2018Hi there,In my code, I have two counterbalances of the stimuli that participants see. Half of the participants see 50 sets of audios that are paired with two images and the other half sees the other 50 sets. So I used "list" to code this. / 1 = "stim/Pair00_SoundA.wav"/ 2 = "stim/Pair01_SoundA.wav"/ 3 = "stim/Pair02_SoundA.wav"/ 4 = "stim/Pair03_SoundA.wav"/ 5 = "stim/Pair04_SoundA.wav"/ 6 = "stim/Pair05_SoundA.wav"..../ 100 =  "stim/Pair99_SoundA.wav"/ 1 = "stim/Pair00_ImageA1.jpg"/ 2 = "stim/Pair01_ImageA1.jpg"/ 3 = "stim/Pair02_ImageA1.jpg"/ 4 = "stim/Pair03_ImageA1.jpg"/ 5 = "stim/Pair04_ImageA1.jpg"/ 6 = "stim/Pair05_ImageA1.jpg".../ 100 =  "stim/Pair99_ImageA1.wav"/ 1 = "stim/Pair00_ImageA2.jpg"/ 2 = "stim/Pair01_ImageA2.jpg"/ 3 = "stim/Pair02_ImageA2.jpg"/ 4 = "stim/Pair03_ImageA2.jpg"/ 5 = "stim/Pair04_ImageA2.jpg"/ 6 = "stim/Pair05_ImageA2.jpg".../ 100 =  "stim/Pair99_ImageA2.wav"/ items = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50)/ selectionmode = random/ items = (51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100)/ selectionmode = random/ selectionmode = values.cb/ items = (list.cb1.nextvalue, list.cb2.nextvalue)/ selectionmode = values.cb/ items = (list.cb1.currentvalue, list.cb2.currentvalue)/ items = sound1/ select = list.sound.nextvalue/ items = picture1/ select = list.picture.nextvalue/ size = (values.pictureheight, values.picturewidth)/ position = (30%, 50%)/ items = picture2/ select = list.picture.nextvalue/ size = (values.pictureheight, values.picturewidth)/ position = (70%, 50%)I'm hoping to select items from the list with no repeat and go through all the items, but "selectionmode = random" repeats its selection, and I also don't want "sequence". "Noreplace" doesn't seem to work here. Is there another command?Additionally, each participant is going to see 5 additional sets of stimuli that serve as attention checks. All the participants are seeing the same ones. But the stimuli don't seem to be updating properly in my code. How should I edit my code?   / 1 = "Mismatch/MM_Pair00_SoundA.wav"/ 2 = "Mismatch/MM_Pair01_SoundA.wav"/ 3 = "Mismatch/MM_Pair02_SoundA.wav"/ 4 = "Mismatch/MM_Pair03_SoundA.wav"/ 5 = "Mismatch/MM_Pair04_SoundA.wav"/ 1 = "Mismatch/MM_Pair00_ImageA1.jpg"/ 2 = "Mismatch/MM_Pair01_ImageA1.jpg"/ 3 = "Mismatch/MM_Pair02_ImageA1.jpg"/ 4 = "Mismatch/MM_Pair03_ImageA1.jpg"/ 5 = "Mismatch/MM_Pair04_ImageA1.jpg"/ 1 = "Mismatch/MM_Pair00_ImageA2.jpg"/ 2 = "Mismatch/MM_Pair01_ImageA2.jpg"/ 3 = "Mismatch/MM_Pair02_ImageA2.jpg"/ 4 = "Mismatch/MM_Pair03_ImageA2.jpg"/ 5 = "Mismatch/MM_Pair04_ImageA2.jpg"/ items = soundMM/ select = noreplace/ items = pictureMM1/ select = sound.soundMM.currentindex/ size = (values.pictureheight, values.picturewidth)/ position = (30%, 50%)/ items = pictureMM2/ select = sound.soundMM.currentindex/ size = (values.pictureheight, values.picturewidth)/ position = (70%, 50%)Thank you so much!> I'm hoping to select items from the list with no repeat and go through all the items, but "selectionmode = random" repeats its selection.No, /selectionmode = random will sample items without replacement by default, i.e. it is equivalent to.../ selectionmode = random/ replace = falseSampling with replacement you would have to specify explicitly per.../ selectionmode = random/ replace = trueIn other words: If you see repeats or not all items being sampled apparently, there's a mistake in your code somewhere. Since you didn't include the elements that actually display the stimuli and hence determine which list is sampled from first, it's impossible for me to say where the mistake is. For what it's worth, the 2nd list/ selectionmode = values.cb/ items = (list.cb1.nextvalue, list.cb2.nextvalue)/ selectionmode = values.cb/ items = (list.cb1.currentvalue, list.cb2.currentvalue)here seems redundant, you should only need one list.With respect to "Additionally, each participant is going to see 5 additional sets of stimuli that serve as attention checks. All the participants are seeing the same ones. But the stimuli don't seem to be updating properly in my code. How should I edit my code?", the selections in pictureMM1 and pictureMM2 _depend_ on the selection in soundMM/ items = soundMM/ select = noreplace/ items = pictureMM1/ select = sound.soundMM.currentindex/ size = (values.pictureheight, values.picturewidth)/ position = (30%, 50%)/ items = pictureMM2/ select = sound.soundMM.currentindex/ size = (values.pictureheight, values.picturewidth)/ position = (70%, 50%)That can only work when the selection in soundMM is performed *first* in your trials, i.e./ stimulusframes = [1=soundMM, pictureMM1, pictureMM2]...will perform correctly, whereas something like/ stimulusframes = [1=pictureMM1, pictureMM2, soundMM ]...would not.