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.1.tar.gz
(32.4 kB
view details)
Built Distribution
stimuli-1.0.1-py3-none-any.whl
(42.3 kB
view details)
File details
Details for the file stimuli-1.0.1.tar.gz
.
File metadata
- Download URL: stimuli-1.0.1.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a8aed3ae32429cd7b7d4ed12008f438b47f2e530ba5b8b7ea10be0868185f22 |
|
MD5 | 37b0a81685fae68250f2b124434bb0da |
|
BLAKE2b-256 | f9b161fecbbf7fea3ea70d7542775f772980f016f29023f6e0d906a1883c6f18 |
File details
Details for the file stimuli-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: stimuli-1.0.1-py3-none-any.whl
- Upload date:
- Size: 42.3 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 | e3ad2eca8341282d43c0d6b5f9c9350c006ddee46a5389d1f98cab1988992a80 |
|
MD5 | 203d965def6e72cca8c8208790fb71ec |
|
BLAKE2b-256 | 7d80208db9f4a83847023ec018ba992420d07f67890cce172d4659d70983cd1a |