Skip to content

fix: FIT-250: SplitChannel audio with spectrogram displaying blank space on waveform #7820

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

Merged
merged 5 commits into from
Jun 24, 2025

Conversation

bmartel
Copy link
Contributor

@bmartel bmartel commented Jun 23, 2025

Before:

Screenshot 2025-06-23 at 3 54 41 PM

After:

Screenshot 2025-06-23 at 3 56 20 PM

This pull request includes changes to streamline the handling of waveform height in the WaveformRenderer and Visualizer classes by removing redundant calculations and ensuring consistent property usage. The key updates focus on simplifying the logic for waveform height and aligning property names for clarity.

Waveform height calculation improvements:

  • WaveformRenderer.ts: Removed the division of waveHeight by the number of audio channels (channelCount) in two methods (renderWave and another unnamed method), simplifying the height calculation to use waveHeight directly. [1] [2]

  • Visualizer.ts: Updated the spectrogram height calculation to directly use waveHeight and adjusted logic to handle split channels consistently.

Property name alignment:

  • Visualizer.ts: Renamed the property waveHeight to waveformHeight in the configuration object to improve clarity and consistency.

@bmartel bmartel requested a review from a team as a code owner June 23, 2025 20:55
Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 1479866
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/685aa060717bf20008643139

Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 1479866
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/685aa0604ebd45000825841f

Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 1479866
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/685aa0606a04280008684d03
😎 Deploy Preview https://deploy-preview-7820--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the fix label Jun 23, 2025
Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 1479866
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/685aa06049acc60008c48338
😎 Deploy Preview https://deploy-preview-7820--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bmartel bmartel requested a review from yyassi-heartex June 23, 2025 20:57
@bmartel
Copy link
Contributor Author

bmartel commented Jun 23, 2025

/fm sync

Workflow run

@bmartel
Copy link
Contributor Author

bmartel commented Jun 24, 2025

/fm sync

Workflow run

@robot-ci-heartex robot-ci-heartex merged commit a3fe832 into develop Jun 24, 2025
44 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-fit-250 branch June 24, 2025 13:39
bmartel added a commit that referenced this pull request Jun 24, 2025
…ace on waveform (#7820)

Co-authored-by: bmartel <bmartel@users.noreply.github.com>
bmartel added a commit that referenced this pull request Jun 24, 2025
…ace on waveform (#7820)

Co-authored-by: bmartel <bmartel@users.noreply.github.com>
bmartel added a commit that referenced this pull request Jun 24, 2025
…ace on waveform (#7820) (#7824)

Co-authored-by: bmartel <bmartel@users.noreply.github.com>
bmartel added a commit that referenced this pull request Jun 24, 2025
…ace on waveform (#7820) (#7825)

Co-authored-by: bmartel <bmartel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants