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

feat: add live waveform visualization to sampler #4040

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

haroon10725
Copy link
Contributor

Fixes: #4005

@haroon10725 haroon10725 marked this pull request as draft October 25, 2024 04:20
@walterbender
Copy link
Member

This looks good.

@haroon10725 haroon10725 marked this pull request as ready for review December 15, 2024 12:33
@haroon10725
Copy link
Contributor Author

@walterbender Can you please review this.

* @function
* @memberof Synth
*/
this.getValues = () => {
Copy link
Member

Choose a reason for hiding this comment

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

maybe rename this function to reflect that it is getting values from the analyser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@@ -978,18 +930,27 @@ function SampleWidget() {
//.TRANS: The reference tone is a sound used for comparison.
canvasCtx.fillText(_("reference tone"), 10, 10);
canvasCtx.fillText(oscText, 10, canvas.height / 2 + 10);

Copy link
Member

Choose a reason for hiding this comment

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

please, no spaces on otherwise empty lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed extra spaces

@@ -233,15 +233,15 @@ function SampleWidget() {
* Displays a message indicating that recording has started.
* @returns {void}
*/
function displayRecordingStartMessage() {
this.displayRecordingStartMessage = function () {
this.activity.textMsg(_("Recording started..."));
Copy link
Member

Choose a reason for hiding this comment

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

Why ellipsis (...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed them

@haroon10725
Copy link
Contributor Author

@walterbender Can you please review it.

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.

[FEAT]: Add live visual feedback of audio input in Sampler Widget
2 participants