PennController for IBEX › Forums › Support › Shuffling audio and text elements consistently › Reply To: Shuffling audio and text elements consistently
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
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