Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mog13/chime
Small JS library using the audio API for basic bleeps and bloops 🤖🎤
https://github.com/mog13/chime
Last synced: 8 days ago
JSON representation
Small JS library using the audio API for basic bleeps and bloops 🤖🎤
- Host: GitHub
- URL: https://github.com/mog13/chime
- Owner: mog13
- Created: 2019-04-05T11:45:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-22T11:23:26.000Z (about 2 years ago)
- Last Synced: 2024-09-23T02:37:00.422Z (about 1 month ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chime
Small JS library using the audio API for basic bleeps and bloops 🤖🎤include in your HTML via script:
``
``
#### `PlayNote(frequency,duration,volume,type)`
Plays a sound with the given frequency,volume, type for the duration._frequency_: int 0-MAX
_duration_: int 0-MAX - (seconds)
_volume_: float 0-1
_type_: ["sine","square","triangle","sawtooth"]
**Defaults** Defaults are used when not specified. You can change the defaults via Chime.default[parameter]
#### `PlaySine(frequency,duration,volume)`
Syntactic sugar for `PlayNote` with the type set to "Sine"
#### `PlaySquare(frequency,duration,volume)`
Syntactic sugar for `PlayNote` with the type set to "square"
#### `PlayTriangle(frequency,duration,volume)`
Syntactic sugar for `PlayNote` with the type set to "triangle"
#### `PlaySawtooth(frequency,duration,volume)`
Syntactic sugar for `PlayNote` with the type set to "sawtooth"
## Dev
contributions welcome.`npm run build` to build