gone
A simple application that just plays a frequency
This application is based on the example of the oto
library, which is used by this application.
Usage
Play a frequency:
gone [options] [frequencies] [duration]
The frequencies
are played for the duration
and if one frequency finishes, the next starts (the duration must be the last argument).
Options
Option |
Usage |
-samplerate |
sample rate |
-channel |
number of channel |
-bitdepth |
bit depth in bytes |
View help:
gone help
Build
Requires Go for compilation, gofumpt for code formatting and golangci-lint to run linters.
To build the code
make
or
make build
or if you don't have make
installed
go build
To reformat the code:
make fmt
To run linters (will automatically format your code with gofumpt
)
make lint
or if you don't want to format your code (linter may fail)
make lint-only