View on GitHub

ExperimentalPictureSoftware

Python code for 2AFC forced-choice experiments using contrast patterns preceded by sound signals of varying frequency

Download this project as a .zip file Download this project as a tar.gz file

Description

This is a software used to drive a “forced choice” experiment with two alternatives. The user must choose for several pictures one of two proposed answers. His times and answers are recorded.

How to use

First, open the ExperimentalPictureSoftware folder and launch the executable of the same name. The menu that appears will then allow you to define the parameters of the experiment. You can choose a sound frequency to cast before each picture and the background color. The “Pictures” folder contains the wallpaper images as well as two folders containing the images that you’ll want to use. If the white background is chosen in the menu, the images from the “PicturesW” folder will be displayed. Choose a file name where your data will be saved. The “start the full test” option will create a folder of the given name and execute the test for each background color and each sound frequency.

Once the test is launched, a background appears and the program waits for a keyboard input to make the images appear randomly. To move to the next image, press “1” for left or “2” for right depending on your answer to the test subject.

Results

The results are stored in an Excel file in the “Results” folder. The first column contains the keyboard response. The second is the reponse time in milliseconds and the third is the name of the image. In the fourth column are indicated the sound frequency, the background color and the file’s name.

Additional modules

Contrast calculation

This software enables the calculation of the contrast between two luminance values. In the menu enter your luminance values of the background and the pattern, then click on “Calcul du contraste”. To launch it open the ContrasteMenu folder and launch the executable of the same name.