Precise auditory stimuli.
Project description
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)
Project details
Release history Release notifications | RSS feed
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.0.0.tar.gz
(32.5 kB
view details)
Built Distribution
stimuli-1.0.0-py3-none-any.whl
(42.4 kB
view details)
File details
Details for the file stimuli-1.0.0.tar.gz
.
File metadata
- Download URL: stimuli-1.0.0.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 643e449a32ac6745ee6df02db55668d53c13706998edd21595b23e9b45df4ea9 |
|
MD5 | 667965241d60cf4f048562607a95181d |
|
BLAKE2b-256 | d84f3227d3ca82ea241c0d455b5d542cb4f10eab6c188b1e3ee685c970eba0b7 |
File details
Details for the file stimuli-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: stimuli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 42.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c9ed826a251fa3907fe0526a856bf699649fcdfdbb09c27e86ce0e0c44f320 |
|
MD5 | 5291096f22049bd7ac5ad59a0c77df7b |
|
BLAKE2b-256 | c160a57f97ea4b2f6234c56d5df64ab567094f0f29a2ed1e73808c79658efac4 |