Resources
Games
Troubleshoot: If you're on Windows and you see an error saying api-ms-win-core-path-l1-1-1.ddl is missing when trying to open one of the games, this may be because your PC doesn't have the Visual C++ Redistributable for Visual Studio 2015 or 2017, which is required by Python. Try downloading it for x86 (32bit) Windows or for x64 (64 bit) Windows.
-
Download for Windows (version 0.1.3, 309 MB)
Download for Mac OS (version 0.1.3, 314.6 MB)
Source code. A game where you get to build grammatical nonsense sentences. Made with pygame.
-
Download for Windows (25 MB)
Source code. A game that looks like the maze task used by psycholinguists, but with Chinese chengyu (four-character idioms). Made with pygame.
-
Download for Windows (22.8 MB)
Source code. A mini-game tic-tac-toe game made with pygame. Based on a class practice in PLIN0034.
-
Download for Windows (23 MB)
Source code. A mini-game made with python and pygame, in which you can open fortune cookies and get your fortune.
Scripts
Praat scripts:
-
Make auditory serial presentation stimuli:
Download. Tutorial. A Praat script that, given the stimulus-onset asynchrony (SOA), makes auditory serial presentation stimuli from continuous speech recordings and their textgrids.
-
Extract pitch contour:
Download. Tutorial. A Praat script that extracts pitch contour information based on .wav sounds and .Textgrid files.
-
Get duration:
Download. Tutorial. A Praat script that gets audio file durations from a directory containing audio files. The script outputs a .csv file.
Python scripts:
-
Automated processing of Chinese cloze responses:
Download. Tutorial. Two scripts that process data collected from cloze tasks in Chinese. In a cloze task, the participant sees incomplete sentences and is asked to complete the sentence by providing one or a few words.
-
Compare images from two folders:
Download. Tutorial. A Python script that compares images from two folders to search for duplicates.
-
Convert audio:
Download. Tutorial. A Python script that converts audio file formats using pydub and ffmpeg.
-
Noise reduction:
Download. Tutorial. A Python script that reduces breathing and room noise from recordings.
-
Present pictures and labels:
Download. Tutorial. A Python (pygame) program that presents participants with a series of pictures and their labels.
R scripts:
-
Remove outliers:
Download. A simple function that removes outliers from a data frame based on the 3 s.d. rule.
-
Remove track loss trials:
Download. Tutorial. A function that removes trials from visual world eye-tracking data where no eye gaze can be detected on any of the images in the visual display for an extensive proportion of the time.