https://github.com/hackergrrl/tone-cli
Generate a tone from the command line.
https://github.com/hackergrrl/tone-cli
Last synced: 3 months ago
JSON representation
Generate a tone from the command line.
- Host: GitHub
- URL: https://github.com/hackergrrl/tone-cli
- Owner: hackergrrl
- Created: 2021-09-12T17:06:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-12T17:11:36.000Z (almost 4 years ago)
- Last Synced: 2025-02-18T17:28:42.113Z (5 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tone-cli
> Generate a tone at a particular frequency from the command line.
## Usage
```
$ tone --duration 3 --frequency 500 --volume 0.5
```This causes your computer plays a 500 Hz sine wave for 3 seconds at 50% volume.
## Arguments
```
-d | --duration N Play tone for N seconds. (Default Infinity)
-f | --freq M Play tone at M Hz. (Default 262)
-v | --volume V Play tone at volume V (0.0 - 1.0+) (Default 0.05)
```## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install -g tone-cli
```## See Also
- [`baudio`](https://github.com/substack/baudio)
- [`minimist`](https://github.com/substack/minimist)## License
MIT