Tutorial1: Getting Started in PsychoPy and Pavlovia

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 12

  • @anonamoose392
    @anonamoose392 3 роки тому +1

    These tutorials rock - thanks so much Holly!!

    • @hollysullivan-toole4872
      @hollysullivan-toole4872  3 роки тому +1

      So glad they are helpful!

    • @anonamoose392
      @anonamoose392 3 роки тому

      @@hollysullivan-toole4872 Massively! Giving me hope of making it into research!

    • @hollysullivan-toole4872
      @hollysullivan-toole4872  3 роки тому

      @@anonamoose392 Awesome! Be sure to check out this little twitter thread for more recommendations for getting started in PsychoPy: twitter.com/hollysully/status/1270071929010036738
      And check out the PsychoPy channel and the other channels they recommend:
      ua-cam.com/channels/Qo2aB6cXJasHyXJp0afaWg.html

  • @TinTin-zh4wc
    @TinTin-zh4wc 4 роки тому

    Hi
    I am new to programming and know no language but is very much willing to learn. Your videos are helping me be introduced to platform I can use to program an experiment. Although I will take this opportunity to ask you advice too. I plan to program an experiment where my participants will watch a complex scene video. They had to press space bar, as soon as they see the actor look at the door. This can happen at multiple times - within a 5 minute long video. So, about three times the actor will look at the door. I was wondering if I can measure accuracy via key presses Or if they can hit the timestamp of the video, when the actor look at the door. I was wondering if this type of experiment is do-able in pavlovia.
    I will continue to watch all your videos but would be grateful to hear your expert advice regarding my study too.
    Hope to hear from you.

    • @hollysullivan-toole4872
      @hollysullivan-toole4872  4 роки тому +1

      Hi Jastine, I will try to help with your question, but I am not an expert (my code is not eloquent!), so these are just some ideas to play with. You can definitely play a video via PsychoPy--be sure to check that the video file type is supported. If I were you, I would (1) create a clock variable in JS code (as described in Wakefield's crib sheet--link below). You can use code like this at the beginning of the experiment: GlobalClock = new util.Clock(); (2) make the video start time 0 so that the video onsets as soon as the routine onsets and also create a variable called TaskTimeStart that is equal to GlobalClock.getTime() (3) write down all the timestamps in your video when the actor looks at the door and create a variable for each time (e.g., Look1 = 13.45; Look2 = 16.70); (4) use a code component to check the time. I have code that checks the time in my PR task in the routine called 'UpdatePressCount', which is located here: pavlovia.org/hollysully/pr (5) use a code component to check whether the last press matched (within some margin) the appropriate timestamp variable you created. I would have a variable called PressTime and immediately following a look towards the door, have the variable PressTime update to be equal to the most recent key press for the routine the video is in. Code might look something like this (this code gives participants 1.5 seconds to make a press following the Look1 time):
      TaskTimePassed = GlobalClock.getTime() - TaskTimeStart
      if ((TaskTimePassed >= 13) and (TaskTimePassed Look1) and (PressTime

    • @TinTin-zh4wc
      @TinTin-zh4wc 4 роки тому

      @@hollysullivan-toole4872 Dear Ms. Holly, if you only know how grateful I am with you providing me this detailed information. As you know, I have no knowledge in coding at all. It is something very daunting that I do not know where to start. But you have provided so much! Again, thank you very very much. I hope it is ok for me to update you or ask you further questions once I have tested this code.
      Thank you very very much!

  • @poojakher7459
    @poojakher7459 4 роки тому

    Is there any way to upload a psychopy project that includes a mp4 or mp3 file ?

    • @hollysullivan-toole4872
      @hollysullivan-toole4872  4 роки тому

      I believe mp3 & mp4 are not supported in psychopy. I would try converting the sound file to another file type.
      discourse.psychopy.org/t/what-sound-file-types-are-supported-in-psychopy-unable-to-open-an-mp3/1625

  • @hollysullivan-toole4872
    @hollysullivan-toole4872  4 роки тому

    Twitter thread for getting started with PsychoPy: twitter.com/hollysully/status/1270071929010036738

  • @KevinLopezfr
    @KevinLopezfr 3 роки тому

    where pavlovia ?

  • @hollysullivan-toole4872
    @hollysullivan-toole4872  4 роки тому

    PsychoPy tutorial by Jon Peirce: ua-cam.com/video/VV6qhuQgsiI/v-deo.html