Skip to main content

Precise auditory stimuli.

Project description

Ruff Code style: black Imports: isort codecov tests doc PyPI version Downloads Conda Version Conda Downloads Conda Platforms

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


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.1.0.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stimuli-1.1.0-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file stimuli-1.1.0.tar.gz.

File metadata

  • Download URL: stimuli-1.1.0.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for stimuli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 788ffb7552e236130c047e5929076ebb373a48015d3ced39004e3a7bb67e33d0
MD5 ade9da80d43cca609d256293c037e81e
BLAKE2b-256 f06a68ada9ce421ff18dc468e1fb4e6678f8a646041e3daae403cd84348e1b10

See more details on using hashes here.

File details

Details for the file stimuli-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: stimuli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for stimuli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e8c6d01c16743cbde6e88179cc516ab493562d4416b918e3485ed422c48bf1
MD5 eae78bae9eb8f5bfd31d25312a41ba12
BLAKE2b-256 7a641d02cf0b4f61d47744e876105e588c458591bc0f7c936a2869ea5f00ccf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page