Reply To: Shuffling audio and text elements consistently

PennController for IBEX Forums Support Shuffling audio and text elements consistently Reply To: Shuffling audio and text elements consistently

#9624
Jeremy
Keymaster

Hi Laia,

The code you posted in your message works perfectly well (except for the missing " after "practice1) but the code in your project has additional commands. In particular, it has this: defaultText.cssContainer({"margin-top":"1em", "margin-bottom":"1em"}).print(). This will silently add .print() right next to any newText command, which is why you see both sentence1 and sentence2 appear below each other as soon as they are created. Just remove .print(): defaultText.cssContainer({"margin-top":"1em", "margin-bottom":"1em"})

The audios are not all played in the same order: I just had a test run where the first trial played audio2 then audio1, and the second trial played audio1 then audio2. Granted, there are only three trials, so it’s not unlikely that some test runs will play all three pairs of audios in the same order, just by chance

Jeremy