"Sound"
#15
Replies: 1 comment
-
Closed due to being in klipperscreen feature branch. (via buildroot packages) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sound info from the simple play command (have not looked into the gui file yeet):
The play command does the following:
enable
,duty_cycle
andperiod
andexport
Relevant loop code, setup is done, enable is triggered and when the note has played enable is set to 0.
This is 8086 speaker teritory.
The "file format" is an array[2] of
int32
indicating the frequency and the duration. Pauses are indicated by setting the frequency to 0.Pseudocode
Converted the doom song to frequency domain and tried playing it as a single frequency but no joy. If you slam the linux pwm driver it freezes after about 30-50 samples and stops functioning completely after a very short while. Don't spam it too much if you like the "tunes".
Beta Was this translation helpful? Give feedback.
All reactions