-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add live waveform visualization to sampler #4040
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
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
| 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
| */ | ||
| 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