Semi random song play
Darina
dashka.326 at gmail.com
Tue Jun 5 18:44:30 UTC 2012
Songs 3 and 4 are different! Since I only need the 3 songs to each
play twice, how can I randomly select two trials from the list of 4? I
imagine this requires an in-line code?
Thank you for any help!
On Jun 5, 2:22 pm, Darina <dashka.... at gmail.com> wrote:
> That works, thank you very much!
>
> On Jun 5, 2:41 am, "Michiel Sovijarvi-Spape" <msp... at cognitology.eu>
> wrote:
>
>
>
>
>
>
>
> > Hi,
> > Presumably, there are different, better methods. My first idea is to use a
> > nested list, colon syntax, and some consideration of the possible different
> > combinations. No inline code necessary.
> > 1. Create a list. Within there, make a nested list, say "songs", featuring
> > all the songs you have, using one attribute, say, "Songs". Set the nested
> > list to randomize.
> > 2. Within the trial procedure, have 6 slides (or whatever), one after
> > another, (say slide1, slide2, slide3..slide6) with the sounds (as, i think,
> > sounddevice sub-objects) playing as you see fit. More importantly, set the
> > filename of each of the sounds to be [Song1], [Song2], .. [Song6].
> > 3. Again, in the list object (not the nested one), make 6 attributes with
> > "Song1", "Song2".. "Song6". Enter, in the triallist, the following trials
> > (one column for each attribute):
> > [Songs:1] [Songs:2] [Songs:3] [Songs:1] [Songs:2] [Songs:3]
> > [Songs:1] [Songs:2] [Songs:3] [Songs:1] [Songs:3] [Songs:2]
> > [Songs:1] [Songs:2] [Songs:3] [Songs:2] [Songs:3] [Songs:1]
> > [Songs:1] [Songs:2] [Songs:3] [Songs:2] [Songs:1] [Songs:3]
> > ... that's it, works.
> > You see, WHICH song is the first in the list of songs will be randomised, so
> > the first 3 songs only need to be different ones. Thus, in trial 1, SOME
> > song is taken from the full list of songs, that is, the first in the
> > randomised nested list. The second song will be a different one, and the
> > third another different one. The only pre-requisite for the fourth song is
> > that it is either the first or second of the played songs, and so on -
> > showing that there are, in fact, only 4 combinations possible.
>
> > So, may sound like an awkward way of going about these things, but I think
> > it's actually quite elegant.
> > Best,
> > Michiel
>
> > -----Original Message-----
> > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf
>
> > Of Darina
> > Sent: 04 June 2012 18:13
> > To: E-Prime
> > Subject: Semi random song play
>
> > Hello, I am new to E-Prime so I do not know much about coding.
> > I need to play 3 songs twice in random order. However, I need the third and
> > forth song to be different. How can I do this?
>
> > Thank you for any help!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "E-Prime" group.
> > To post to this group, send email to e-prime at googlegroups.com.
> > To unsubscribe from this group, send email to
> > e-prime+unsubscribe at googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list