Questions tagged [open-sesame]

OpenSesame is a program to create experiments for psychology, neuroscience, and experimental economics.

OpenSesame is a program to create experiments for psychology, neuroscience, and experimental economics.

http://osdoc.cogsci.nl/

11 questions
2
votes
2 answers

Create List without similar crossovers

I am trying to build a list of length = 120, which shall include 4 numbers. The tricky thing is that the numbers shall not appear in a row and each number should occur exactly to the same amount. This is my script. import random List =…
SDahm
  • 474
  • 2
  • 9
  • 21
1
vote
2 answers

Voice detection and recording with PyAudio

I am using OpenSesame (an experiment builder using Python) to collect participants' voice response to specific stimuli using PyAudio. What I want to achieve is the following : Start recording sound for X seconds (timeout). Compute "loudness" of…
1
vote
0 answers

OpenSesame: How do you reference a variable outside the inline script?

I'm currently coding a psych experiment and have been experiencing difficulties referencing a variable within the inline script. Specifically, in the task you are presented with two cards, you select one, and you either win/lose points. Immediately…
Sobini M
  • 11
  • 3
1
vote
0 answers

Open-sesame UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2779: character maps to

I'm trying to train open-sesame model following https://github.com/swabhs/open-sesame instructions. Here the issue: (test-pip-install) C:\Users\GAIA\open-sesame>python -m sesame.targetid --mode train --model_name fn1.7-pretrained-targetid When i…
Ga25
  • 11
  • 1
0
votes
1 answer

How to correctly encode triggers in Python and send them to BrainVision through serial port (useful for OpenSesame and PsychoPy)

I would be very grateful for advice about sending EEG triggers/markers to BrainVision Recorder using Python code. I’m using OpenSesame as the stimulus platform. Although OpenSesame doesn’t have built-in support for sending triggers to the port, it…
Pablo Bernabeu
  • 402
  • 4
  • 23
0
votes
1 answer

Intermixing stimuli from two loops randomly in OpenSesame

I would like to request a bit of advice for a slightly tricky design in OpenSesame (a Python-based experiment builder). Background My stimuli comprise two kinds of sentences that contain different elements, and different numbers of elements. These…
Pablo Bernabeu
  • 402
  • 4
  • 23
0
votes
0 answers

How to create a sequence with several restrictions (freq, first order, second order)?

What i wanted: A Sequence of 98 trials. The first 2 trials are random. Afterwards i have 3 restrictions: same number of each stimulus (there are four stimuli, so each 24 times) 25% of all transitions are stimulus repetitions; 75% are…
SDahm
  • 474
  • 2
  • 9
  • 21
0
votes
0 answers

Video in Opencv/pygame, frame rate issue

I am trying to write a small script to play video from files using opencv and pygame. The videos should play whenever a key is being pressed and keep playing until the end. When the key is released, the background color changes and I record the time…
-1
votes
2 answers

If/else statement is not working properly in OpenSesame as expected

I am using python-based OpenSesame for building an experiment. The whole experiment is working fine except for one thing. I wrote an inline python script to give conditional auditory feedback to the participants. In the first condition, the…
Adarsh
  • 3
  • 2
-1
votes
1 answer

Counterbalancing in open sesame

I a writing an inline_script in open sesame (python). Can anyone tell me what's wrong here? (i think its something very simple, but i can not find it) when i put the number in List = [1,2,3,4,5,6,7] the first line works, but the second does not work…
SDahm
  • 474
  • 2
  • 9
  • 21
-2
votes
2 answers

Is there a python code for tracking all keypresses (getting timeline for each keypress)?

I am using OpenSesame (which runs on Python) for creating an experiment. I need a code for getting a timeline for each keypress (1, 2, 3, 4, space). For example, key 1 pressed at 12223ms, key 3 at 15452ms, key 1 again at 19112ms. Here, I need to…
Adarsh
  • 3
  • 2