You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the User places a cursor anywhere along the project, the recording will still only begin at the end of any given clip on any given track. This shouldn't happen.
Steps to reproduce
Launch AU4
Create a project
Generate some audio clips
Select a track with the clips
Place the playhead before the end of the clip
Press record
Observe result
Expected behavior
The recording starts at the position of the playhead cursor.
what should happen to the clip(s) already present on the track? after the recording start position
will they be pushed after the currently recorded clip
from the moment we start recording the entire space is getting inserted there maintaining the insert position distance with next clip (on stop the distance between the recorded clip end and the beginning of the next clip will be the same as the distance from the original playhead position)
or only when the recorded clip end would be touching / reaching the start time of next clip the next clips (the rest of the track) are moved to be “attached” after the currently recorded clip until we stop
will it be recorded over
if partially you can get it back
if fully it’s gone forever
should the new recording be a new clip that once touching would be merge/glue with the next clip on stop having one clip or a slip between two clips?
should the recording stop when touching the next clip
We discussed this at the standup today. Basically, it's the second approach. Overwrite, rather than insert.
We always record from the position of your cursor.
A new recording is always a new clip. We do not join with any other clips.
We overwrite any clips to the right.
If we partially overwrite a clip to the right, you can use the trim feature to get overwritten audio back.
If we fully overwrite a clip, it's gone forever.
Regarding the partial overwriting of clips to the right and using the trim feature to get overwritten audio back: if this turns out to be a technical problem, which I imagine it wont, then we discuss our options. Probably in that case, we just accept that the user can't use the trim feature to get back overwritten audio.
As we debugged with @kryksyh:
Currently in master branch, we write recorded audio data directly into the original wavetrack. Our audio engine knows nothing about clips, only entire wavetracks are taken into account. When recording buffer is filled, we write audio data from that buffer into a wavetrack via 'Append' function which (as name suggests) appends the data at the end of the track. To change that behavior we would need to dig into audio engine's internals (obviously), we don't know what will be affected then, what can blow up later as this is low-level stuff.
So the easier solution is to:
step 1. re-introduce pending tracks (it's a copy of an original track): data is written into a pending track (still at the end) and when recording is finished we simply swap these in place
step 2. make pending track empty (so there's no limitation about where recording can be started), then at the end of recording we look at the start/end time of a recorded clip, make some room in the original track (trim/remove overlapping clips as discussed) and paste recorded one into the original track
Activity
luapmartin commentedon Sep 26, 2025
what should happen to the clip(s) already present on the track? after the recording start position
will they be pushed after the currently recorded clip
will it be recorded over
should the recording stop when touching the next clip
Tantacrul commentedon Sep 29, 2025
@luapmartin
We discussed this at the standup today. Basically, it's the second approach. Overwrite, rather than insert.
Regarding the partial overwriting of clips to the right and using the trim feature to get overwritten audio back: if this turns out to be a technical problem, which I imagine it wont, then we discuss our options. Probably in that case, we just accept that the user can't use the trim feature to get back overwritten audio.
grliszas14 commentedon Oct 2, 2025
As we debugged with @kryksyh:
Currently in master branch, we write recorded audio data directly into the original wavetrack. Our audio engine knows nothing about clips, only entire wavetracks are taken into account. When recording buffer is filled, we write audio data from that buffer into a wavetrack via 'Append' function which (as name suggests) appends the data at the end of the track. To change that behavior we would need to dig into audio engine's internals (obviously), we don't know what will be affected then, what can blow up later as this is low-level stuff.
So the easier solution is to:
step 1. re-introduce pending tracks (it's a copy of an original track): data is written into a pending track (still at the end) and when recording is finished we simply swap these in place
step 2. make pending track empty (so there's no limitation about where recording can be started), then at the end of recording we look at the start/end time of a recorded clip, make some room in the original track (trim/remove overlapping clips as discussed) and paste recorded one into the original track
step 1 is already in code review
6 remaining items
dozzzzer commentedon Oct 10, 2025
@grliszas14
2025-10-10_10-18-39.mp4
This bug is not reproducible in the master because whenever you start recording, it will start immediately after the clip
dozzzzer commentedon Oct 10, 2025
Tested