-
Notifications
You must be signed in to change notification settings - Fork 855
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
base: master
Are you sure you want to change the base?
Conversation
This looks good. |
@walterbender Can you please review this. |
js/utils/synthutils.js
Outdated
* @function | ||
* @memberof Synth | ||
*/ | ||
this.getValues = () => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
js/widgets/sampler.js
Outdated
@@ -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); | |||
|
|||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed extra spaces
js/widgets/sampler.js
Outdated
@@ -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...")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ellipsis (...)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed them
@walterbender Can you please review it. |
Fixes: #4005