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 QB SOUND keyword #43

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

grymmjack
Copy link
Collaborator

Added SOUND keyword support with validation and support for additional shapes as provded by the WebAudio API OscillatorNode object.

Validation is based on legal QB SOUND ranges.

Freq: 0 = Delay instead of sound, or 32 to 32767
Shape: default = "square" additional shapes: "sine", "sawtooth", "triangle"

Example code / test:

Sound 100, 100 : Sound 900, 100
Sound 100, 100 : Sound 0, 200 : Sound 800, 300
Sound 0, 500 : Sound 50, 50 : Sound 100, 50

Sound 0, 1000
Sound 800, 100, "triangle"
Sound 0, 500
Sound 1200, 100, "sawtooth"
Sound 2400, 200, "sine"

Sound 9000, 1000
Sound 9000, 1000, "triangle"
Sound 9000, 1000, "sawtooth"
Sound 9000, 1000, "sine"

…pes as provded by the WebAudio API OscillatorNode object.
@boxgaming boxgaming merged commit 2898f81 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