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

Uploaded Source

Built Distribution

stimuli-1.0.2-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stimuli-1.0.2.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

Hashes for stimuli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 daf1ed741a34aba0796d772d25289735a99700f30c2d1cb520498aa8e839ac53
MD5 4e5606fe17ee1d297990828769b8cc65
BLAKE2b-256 8dcef44b7c4ff509551a48a7d0ce2b418ed9e827c8cc3a8adaa84b7aceb4265c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stimuli-1.0.2-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

Hashes for stimuli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33e912e359fb169420f11ed90fedc36687cea29009e6415d075f9a52bae5df24
MD5 b0c91aeffbd4583ac98e4ec183c663e1
BLAKE2b-256 4564f53df599e728d97e1900c0cf6ea9e476a50a4738e8f2eb879c4bc3649bd3

See more details on using hashes here.

Supported by

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