Stimuli
This repository contains auditory stimuli that do not require PsychoPy. The auditory stimuli use the python sounddevice library.
Installation
This repository is available for python ≥ 3.11 on pip with the command
pip install stimuli or on conda-forge with the command
conda install -c conda-forge stimuli.
Usage
Audio stimulus
from stimuli.audio import Tone
from stimuli.time import sleep
from stimuli.trigger import ParallelPortTrigger
trigger = ParallelPortTrigger("/dev/parport0")
sound = Tone(frequency=1000, volume=80, duration=1)
sound.play(when=0.2)
sleep(0.2)
trigger.signal(1)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stimuli-1.2.0.tar.gz
(34.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
stimuli-1.2.0-py3-none-any.whl
(45.7 kB
view details)
File details
Details for the file stimuli-1.2.0.tar.gz.
File metadata
- Download URL: stimuli-1.2.0.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49f1fe1eb9628fc7bd69714262f833f309b17a785c39d1d5e562cc700ea07bf3
|
|
| MD5 |
229718ff2a50485fa195143c05607486
|
|
| BLAKE2b-256 |
b48faa3b16a90304e13afb2f2b3bdb5bba89ec5cdb4d362ad3286b97047784ce
|
File details
Details for the file stimuli-1.2.0-py3-none-any.whl.
File metadata
- Download URL: stimuli-1.2.0-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c899d445da51779378542cf5f372a631ace864b3ff056bcbf8643ee49fb2831b
|
|
| MD5 |
722bb9ae99911a0bef3509e579cb234c
|
|
| BLAKE2b-256 |
be797e459c147b860daa7a662250c53242cef1dd934da126e35fd2aca9277310
|