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

Added support for decay and gain #44

Merged
merged 2 commits into from
May 31, 2023

Conversation

grymmjack
Copy link
Collaborator

I added support for decay and gain.

Example code:

sound 500, 1500, "sine", 0.5, 1
sound 0, 2000
sound 1500, 1500, "sine", 0.5, 0.1
sound 0, 2000
sound 2500, 1000, "sine", 0.25, 0.05
sound 0, 2000
sound 500, 1500, "sawtooth", 0.5, 0.3
sound 0, 2000
sound 1500, 1500, "square", 0.5, 0.1
sound 0, 2000
sound 2500, 1000, "triangle", 0.25, 0.05
sound 3000, 1000
sound 0, 4000
sound 900, 400, "square", 0, 1
sound 0, 500
sound 900, 400

Default gain: 1
Default decay: 0

@boxgaming boxgaming merged commit 97406a8 into boxgaming:main May 31, 2023
@grymmjack grymmjack added the enhancement New feature or request label Jun 9, 2023
@grymmjack grymmjack self-assigned this Jun 9, 2023
@boxgaming boxgaming added this to the 0.8.0 Release milestone Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants