Skip to content

Render VUMeter in the Sidebar in Song, Arranger and Performance Views - #1344

Merged
seangoodvibes merged 6 commits into
SynthstromAudible:communityfrom
seangoodvibes:Display-VU-Meters
Feb 28, 2024
Merged

seangoodvibes merged 6 commits into
SynthstromAudible:communityfrom
seangoodvibes:Display-VU-Meters

Conversation

@seangoodvibes

@seangoodvibes seangoodvibes commented Feb 25, 2024 •

Copy link
Copy Markdown
Collaborator

Added VU Meter rendering in the sidebar in Song / Arranger / Performance Views.

  • To display the VU meter:

    • turn Affect Entire on
    • select the Volume mod button
    • press the Volume mod button again to toggle the VU Meter on / off.
  • The VU meter will stop rendering if you switch mod button selections, turn affect entire off, select a clip or exit Song/Arranger views.

  • The VU meter will render the decibels below clipping on the grid with the colours green, orange and red.

    • Red indicates clipping and is rendered on the top row of the grid.

    • Each row on the grid corresponds to the following decibels below clipping values:

      y7 = clipping (0 or higher)
      y6 = -4.4 to -0.1
      y5 = -8.8 to -4.5
      y4 = -13.2 to -8.9
      y3 = -17.6 to -13.3
      y2 = -22.0 to -17.7
      y1 = -26.4 to -22.1
      y0 = -30.8 to -26.5 
      

@seangoodvibes seangoodvibes added this to the Future release milestone Feb 25, 2024
@seangoodvibes
seangoodvibes force-pushed the Display-VU-Meters branch 6 times, most recently from c4b06ba to 9771b24 Compare February 25, 2024 23:36
Comment thread src/deluge/gui/views/view.cpp Resolved
Comment thread src/deluge/gui/views/view.cpp Resolved
@seangoodvibes
seangoodvibes marked this pull request as draft February 26, 2024 00:21
@seangoodvibes
seangoodvibes marked this pull request as ready for review February 27, 2024 02:54
@seangoodvibes
seangoodvibes force-pushed the Display-VU-Meters branch 2 times, most recently from 7a0b4fe to 2e10e72 Compare February 27, 2024 04:44
Use AudioEngine::rmsLevel to render a VU meter on the grid in Song and Arranger View

VU meter is displayed by turning Affect Entire on in Song/Arranger, selecting the Volume mod button and then pressing it again to toggle the VU meter on/off.

The VUMeter will stop rendering if you turn Affect Entire off, Switch Mod Buttons (e.g. from Volume to Filter), selected a clip, or exit Song/Arranger View.
@seangoodvibes seangoodvibes changed the title Render VUMeter on the Grid in Song and Arranger Views Render VUMeter in the Sidebar in Song, Arranger and Performance Views Feb 27, 2024
Updated code to render VU meter in sidebar and only when there is a change in the rmsLevel such that the maxY to be rendered for the VU meter differs from the previous VU meter maxY that is currently rendered

Added VU meter rendering to Performance View

Replace uiNeedsRendering(this) call in graphicsRoutine with call directly to the VU meter rendering function and then send out sidebar colours directly.

Fixed sidebar rendering when holding audition pad to select instrument in the sidebar in arranger performance view

Fixed couple cases where sidebar wasn't refreshing to remove VU meter when:

- a clip without timeline counter was selected in arranger
- section repeats was selected in song view.
@seangoodvibes
seangoodvibes marked this pull request as draft February 27, 2024 18:13
Rendered left and right audio panning in VU Meter
@seangoodvibes
seangoodvibes marked this pull request as ready for review February 27, 2024 22:19
@github-actions

github-actions Bot commented Feb 27, 2024 •

Copy link
Copy Markdown
Contributor

Test Results

9 tests  ±0   9 ✅ ±0   0s ⏱️ ±0s
2 suites ±0   0 💤 ±0 
2 files   ±0   0 ❌ ±0 

Results for commit dcedeba. ± Comparison against base commit c8a631f.

♻️ This comment has been updated with latest results.

Renamed rmsLevel to approxRMSLevel

Renamed AbsValueFollower::calcRMS to calcApproxRMS
Comment thread src/deluge/util/functions.h Resolved
Comment thread src/deluge/gui/views/view.h Resolved
Changed struct stereo to struct StereoFloatSample

Removed vuMeter struct and replaced it with two variables for L and R
@seangoodvibes
seangoodvibes added this pull request to the merge queue Feb 28, 2024
Merged via the queue into SynthstromAudible:community with commit 6d6f41f Feb 28, 2024
seangoodvibes added a commit to seangoodvibes/DelugeFirmware that referenced this pull request Feb 28, 2024
…SynthstromAudible#1344)

* Render VUMeter on the Grid in Song and Arranger Views

Use AudioEngine::rmsLevel to render a VU meter on the grid in Song and Arranger View

VU meter is displayed by turning Affect Entire on in Song/Arranger, selecting the Volume mod button and then pressing it again to toggle the VU meter on/off.

The VUMeter will stop rendering if you turn Affect Entire off, Switch Mod Buttons (e.g. from Volume to Filter), selected a clip, or exit Song/Arranger View.

* Address first feedback

* Render VU meter in sidebar

Updated code to render VU meter in sidebar and only when there is a change in the rmsLevel such that the maxY to be rendered for the VU meter differs from the previous VU meter maxY that is currently rendered

Added VU meter rendering to Performance View

Replace uiNeedsRendering(this) call in graphicsRoutine with call directly to the VU meter rendering function and then send out sidebar colours directly.

Fixed sidebar rendering when holding audition pad to select instrument in the sidebar in arranger performance view

Fixed couple cases where sidebar wasn't refreshing to remove VU meter when:

- a clip without timeline counter was selected in arranger
- section repeats was selected in song view.

* Render Left and Right audio panning in vu meter

Rendered left and right audio panning in VU Meter

* Rename rmsLevel to approxRMSLevel

Renamed rmsLevel to approxRMSLevel

Renamed AbsValueFollower::calcRMS to calcApproxRMS

* Address feedback

Changed struct stereo to struct StereoFloatSample

Removed vuMeter struct and replaced it with two variables for L and R
tastycode pushed a commit to tastycode/DelugeFirmware that referenced this pull request Jul 3, 2024
…SynthstromAudible#1344)

* Render VUMeter on the Grid in Song and Arranger Views

Use AudioEngine::rmsLevel to render a VU meter on the grid in Song and Arranger View

VU meter is displayed by turning Affect Entire on in Song/Arranger, selecting the Volume mod button and then pressing it again to toggle the VU meter on/off.

The VUMeter will stop rendering if you turn Affect Entire off, Switch Mod Buttons (e.g. from Volume to Filter), selected a clip, or exit Song/Arranger View.

* Address first feedback

* Render VU meter in sidebar

Updated code to render VU meter in sidebar and only when there is a change in the rmsLevel such that the maxY to be rendered for the VU meter differs from the previous VU meter maxY that is currently rendered

Added VU meter rendering to Performance View

Replace uiNeedsRendering(this) call in graphicsRoutine with call directly to the VU meter rendering function and then send out sidebar colours directly.

Fixed sidebar rendering when holding audition pad to select instrument in the sidebar in arranger performance view

Fixed couple cases where sidebar wasn't refreshing to remove VU meter when:

- a clip without timeline counter was selected in arranger
- section repeats was selected in song view.

* Render Left and Right audio panning in vu meter

Rendered left and right audio panning in VU Meter

* Rename rmsLevel to approxRMSLevel

Renamed rmsLevel to approxRMSLevel

Renamed AbsValueFollower::calcRMS to calcApproxRMS

* Address feedback

Changed struct stereo to struct StereoFloatSample

Removed vuMeter struct and replaced it with two variables for L and R
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.

2 participants