Skip to main content

A python module that helps you produce musical notes using your computer's characteristic beep sounds

Project description

A python package that helps you produce musical notes using your computer’s characteristic beep sounds. Written in Python.

Dependencies

winsound python package is required. This package is present by default, if you use python on windows. Due to this dependency, beeply-win will ONLY work on windows platforms.

Installation

pip install beeply

Usage

  • Import beeply in your python code as from beeply import notes.

  • Create an object of a class “beeps” as mybeep = notes.beeps(). You can also set the default time period (in milliseconds) for which the note plays by passing it as an argument during object creation like mybeep = notes.beeps(400). If you do not specify anything, it takes a default value of 900ms.

  • Use this object to hear the musical notes. For example - mybeep.hear('C'). You can also play a certain note for a time period other than the default period by specifying it in the arguments like mybeep.hear('C',2000) [Plays the C note for 2 seconds].

You can use C, D, E… for notes in the middle scale i.e. Scale 0 while adding a _ after the note raises it to the next scale i.e. Scale 1. For example, using mybeep.hear('C_') will produce the C note in the Scale 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

beeply-1.0.2.tar.gz (2.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: beeply-1.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for beeply-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3ce32a8b206e5b16357c3dbefa2ce41fae34b8321256443fc1f0b1d11f18d320
MD5 878adcae148d367c3a9a36a656b5cee8
BLAKE2b-256 e47a4e896996cee67325bd745f7c05445e10316f77955a17914f41608c66557f

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