Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sinusoid tone generation #127

Merged
merged 5 commits into from
Aug 31, 2021
Merged

add sinusoid tone generation #127

merged 5 commits into from
Aug 31, 2021

Conversation

ilyapashuk
Copy link
Contributor

closes #126

@dusk125
Copy link
Collaborator

dusk125 commented Aug 31, 2021

Thanks for the PR, I just have a couple comments/suggestions.

It looks like a linter hasn't been run on the code; there are no indentions. Please run this through the go linter and update the PR.
Also could you please move this file into its own sub-package, something like 'generators'? I can imagine we might want other generators, Square, Triangle, Noise in the future.

toner.go Outdated Show resolved Hide resolved
toner.go Outdated Show resolved Hide resolved
"strconv"
)
func main() {
f, _ := strconv.Atoi(os.Args[1])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a usage message if the argument isn't provided.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if it's provided and it's not an integer.

@dusk125
Copy link
Collaborator

dusk125 commented Aug 31, 2021

Thanks for the changes, looks good!

@dusk125 dusk125 merged commit e62bf86 into faiface:master Aug 31, 2021
MarkKremer pushed a commit to MarkKremer/beep that referenced this pull request Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: add a tone generation
2 participants