Coder Social home page Coder Social logo

harshit-budhraja / beeply Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 16 KB

A simple package that helps you produce musical notes using your computer's characteristic beep sounds

Home Page: https://pypi.python.org/pypi/beeply/

License: MIT License

Python 100.00%
python3 cli pip music notes beep winsound beeply

beeply's Introduction

beeply

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.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.