Skip to content

Feature / Add shortcut to remove audio clip time stretching#1542

Merged
seangoodvibes merged 26 commits into
SynthstromAudible:communityfrom
seangoodvibes:Feature-/-Remove-Audio-Clip-Timestretching
Mar 22, 2024
Merged

Feature / Add shortcut to remove audio clip time stretching#1542
seangoodvibes merged 26 commits into
SynthstromAudible:communityfrom
seangoodvibes:Feature-/-Remove-Audio-Clip-Timestretching

Conversation

@seangoodvibes

@seangoodvibes seangoodvibes commented Mar 21, 2024

Copy link
Copy Markdown
Collaborator

Removed time stretching from samples that are loaded. Clip length is automatically set to the length of the sample.

Added new shortcut to remove timestretching from an audio clip and extend an audio clip without timestretching.

  • Press ▼︎▲︎ + ◀︎▶︎ to set the Audio Clip length equal to the length of the audio sample. This will effectively remove timestretching from the audio sample.

  • Press SHIFT + ◀︎▶︎ + turn ◀︎▶︎ to lengthen the audio clip without timestretching.

  • Get it working for the full audio sample length (when you first load audio sample and haven't touched green and red waveform markers yet)

  • Get it working for the adjusted audio sample length (using green and red waveform markers)

  • Adjust code that sets new clip loop length to use the same functions as the current Shift + Turn <> combo)

@seangoodvibes seangoodvibes changed the title Feature / Remove audio clip time stretching Feature / Add shortcut to remove audio clip time stretching Mar 21, 2024
@github-actions

github-actions Bot commented Mar 21, 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 4faa8d9. ± Comparison against base commit 47f026f.

♻️ This comment has been updated with latest results.

@seangoodvibes
seangoodvibes force-pushed the Feature-/-Remove-Audio-Clip-Timestretching branch 3 times, most recently from 389a087 to 1dde74c Compare March 21, 2024 05:06
@seangoodvibes seangoodvibes added this to the Future release milestone Mar 21, 2024
Added a shortcut (SHIFT + <>) to remove audio clip time stretching by setting the audio clip length to the length of the audio sample
@seangoodvibes
seangoodvibes force-pushed the Feature-/-Remove-Audio-Clip-Timestretching branch from 2415bc1 to 7665b14 Compare March 21, 2024 05:26
@seangoodvibes
seangoodvibes marked this pull request as draft March 21, 2024 05:26
seangoodvibes and others added 5 commits March 21, 2024 11:56
Calculate sample length in samples using green and red markers as start and end points (as opposed to using the original sample length)
Bug fix so that it works when you reverse the audio sample
Comment thread src/deluge/gui/views/audio_clip_view.cpp Outdated
Comment thread src/deluge/gui/views/audio_clip_view.cpp Outdated
@seangoodvibes
seangoodvibes marked this pull request as ready for review March 22, 2024 14:54
m-m-adams and others added 5 commits March 22, 2024 14:57
Updated audio clip sample loading to adjust loop length so sample is loaded without time stretching

Updated combo to remove time stretching from Shift + <> to Vertical Encoder + <>
@m-m-adams
m-m-adams enabled auto-merge March 22, 2024 19:45
@seangoodvibes
seangoodvibes disabled auto-merge March 22, 2024 19:47
@seangoodvibes
seangoodvibes enabled auto-merge March 22, 2024 19:49
@seangoodvibes
seangoodvibes added this pull request to the merge queue Mar 22, 2024
Merged via the queue into SynthstromAudible:community with commit 0bb35e1 Mar 22, 2024
@sichtbeton

Copy link
Copy Markdown
Contributor

Could we cherry pick this into RC3 from 1.1 maybe?

sichtbeton pushed a commit to sichtbeton/DelugeFirmware that referenced this pull request Jun 22, 2024
…omAudible#1542)

* Remove audio clip time stretching

Added a shortcut (SHIFT + <>) to remove audio clip time stretching by setting the audio clip length to the length of the audio sample

* Take green and red markers into account

Calculate sample length in samples using green and red markers as start and end points (as opposed to using the original sample length)

* remove reference to clip button as that now instantly changes to automation view

* Bug fix

Bug fix so that it works when you reverse the audio sample

* reserve shift+press and turn x as a shortcut

* Factor out loop length logic

Factored out loop length calculation logic to SampleHolder class

* Fix mistake

* allow resizing audio clips without stretching

* only restart if already playing

* Add adjustLoopLength function

* refactor to use setter methods

* Remove some leftover code

Removing some code that is no longer needed from previous merge

* unify horizontal encoder and red endpoint adjustments

* Fix loop length calculation

Fixed loop length calculation so that it always uses endPos

* factor out clip length change for reuse

* use changecliplength method to avoid duplication

* Load sample without stretching + change combo

Updated audio clip sample loading to adjust loop length so sample is loaded without time stretching

Updated combo to remove time stretching from Shift + <> to Vertical Encoder + <>

* Fix horizontal encoder press

* clarifying comment

* update documentation

---------

Co-authored-by: m-m-adams <mark.adams@queensu.ca>
tastycode pushed a commit to tastycode/DelugeFirmware that referenced this pull request Jul 3, 2024
…omAudible#1542)

* Remove audio clip time stretching

Added a shortcut (SHIFT + <>) to remove audio clip time stretching by setting the audio clip length to the length of the audio sample

* Take green and red markers into account

Calculate sample length in samples using green and red markers as start and end points (as opposed to using the original sample length)

* remove reference to clip button as that now instantly changes to automation view

* Bug fix

Bug fix so that it works when you reverse the audio sample

* reserve shift+press and turn x as a shortcut

* Factor out loop length logic

Factored out loop length calculation logic to SampleHolder class

* Fix mistake

* allow resizing audio clips without stretching

* only restart if already playing

* Add adjustLoopLength function

* refactor to use setter methods

* Remove some leftover code

Removing some code that is no longer needed from previous merge

* unify horizontal encoder and red endpoint adjustments

* Fix loop length calculation

Fixed loop length calculation so that it always uses endPos

* factor out clip length change for reuse

* use changecliplength method to avoid duplication

* Load sample without stretching + change combo

Updated audio clip sample loading to adjust loop length so sample is loaded without time stretching

Updated combo to remove time stretching from Shift + <> to Vertical Encoder + <>

* Fix horizontal encoder press

* clarifying comment

* update documentation

---------

Co-authored-by: m-m-adams <mark.adams@queensu.ca>
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.

3 participants