Beeply module in Python
The beeply module in python will helps you produce musical notes using your computer’s characteristic beep sounds. It’s completely written in python ( using winsound and time module to be precise )
As this module is written using winsound, it will work only on Windows. This module contains only one class and a single method i.e beeply class and head() method.
pip install beeply
Below are some examples which depicts the use of beeply module:
A scale is the tonal basis of music. It is a set of tones from which one can generate melodies. The underscore _ is used for scale of sound If _ is given, it’s scale will be 1
obj = notes.beeps(duration in ms)
beeps is class, it’s constructor takes an arg ( optional ) of time duration if not given it will take it as 900 ms
If given make sure it’s in ms.
obj.hear(self,duration in ms)
It will produce tone of A at scale 1 and the at scale 0, you can head 2 beeps for 0.9 sec each.
If you will give duration as argument while making object ( i.e. while instantiating ) then it will be default duration for hear function too if not given specifically.