basic editing: clip boundary question

i don’t know the audacity terminology to search for this so i’m asking here. tried to find it in the manual but didn’t know what to look for.

there is a vertical line that appears across a clip when i split it. if i split at the cursor, i get a single line at the cursor position. if i split it at a selected time range, i get a vertical line at either end of the split range. what confuses me is that, if i click on one of these lines, it disappears. what are these lines? how do people use them? they seem oddly ephemeral to me.

i’d have thought that by splitting the clip i was creating a new, smaller clip and that the lines were defining its edges. the fact that the lines disappear when clicked, though, implies to me that a new, smaller clip has not been defined.

thanks for any clues,
babag

Terminology first, then hopefully it will all start to make sense:

That vertical line is called a “split line”. When you split a track like this, the track audio is split into two “audio clips”. Each “clip” is a separate piece of audio with a start and an end.

Yes.
Splitting a track with one “split line” creates two “audio clips”. One to the left of the split line and one to the right.
Splitting a track with a “region” selected creates two split lines. The track becomes three “audio clips” - one on the left, one on the right, and one between the two split lines.

Clicking on a split line “joins” the adjacent clips (removes the split line so that the two adjacent clips join to create a larger single clip).


Usually it is so that sections of a track can be moved with the Time Shift Tool.

Try this:

  1. Generate a 30 second tone (“Generate” menu)
  2. Click near the middle of the track to place the cursor position at around 15 seconds.
  3. “Ctrl + i” (shortcut for “Split”)
  4. Select the Time Shift Tool.
  5. Click on the right hand clip and drag to the right.

thanks, steve. this helps clarify things. i’ll move on to some greater detail now.

i have track 1 and it has a lot of splits on it, some long clips, some short. one of my tasks is to go through track 1 and delete extraneous clips. when i do this, by double-clicking the clip and hitting the ‘delete’ key, the selected clip deletes and the clips to the right move up fill the gap left by the absence of the originally selected clip. so far, so good.

i find that, if i have a long clip to delete, and it’s followed by a lot of shorter clips, the right boundary of the deleted clip remains on the timeline, imposed over some wholly other clip that has been moved up by the deletion.

what do i make of that?
is it actually doing anything?
can i just click it to get rid of it?
does clicking it perform any audio action or is it only graphical in nature?
can i make it not keep the old clip’s right boundary marking? it’s more work to chase it down and delete it. would be nice to not have it there without having to take action.

thanks again,
babag

Why is that? Are you trying to salvage someone else’s work?

Sorry, I don’t understand what you mean. Perhaps a screenshot might help.

to be accurate, this is a replacement, not a simple deletion. in this case, the idea is to replace a longer clip with a shorter one.

this is the selected region to replace:

and this is after the replacement:

note that the end boundary of the deleted clip is still marked. (screen grabs are of slightly different sizes so the alignment of the boundary end is not perfect in the image.)

the above was done with a macro:

SelSave:
SelectTracks:Mode="Set" Track="2" TrackCount="1"
SelectTime:End="10.75" RelativeTo="ProjectStart" Start="10"
Copy:
SelectTracks:Mode="Set" Track="0" TrackCount="1"
SelRestore:
Paste:
CursSelEnd:
Split:

the macro stores the selection on track 0, selects track 2, defines and copies a piece of that track, then retrieves the saved selection and pastes the piece of track 2 into track 0 in place of the original selection. when finished, it leaves the original end boundary marker in place on the timeline.

(i recently added the last two lines in the macro because the end of the pasted region was not indicated with a vertical black line. sending the cursor to that boundary and splitting added the line.)

hope this makes sense now.

thanks,
babag
audacity 2.3.3

In your first image, the first split is around 41.8 and the second split around 43.7

In the second image, the section from 41.8 to 43.7 has been replaced with audio that is 0.75 seconds long. So now the first two splits are around 41.8 and 42.55.

It appears that the selection after pasting is still from 41.8 to 43.7, so when your script says:

CursSelEnd:
Split:

A new split is added at 43.7.

That’s what it looks like to me.

thanks, steve. that’s all right but look at this. the end boundary of the selected clip is marked at 43.7(ish). i’ve also pointed out that the audio in the clip that follows is unbroken.

here, there is still a mark at 43.7. why? the clip that it referenced is gone. note that it now indicates a split in second clip’s audio, a split i never placed.




It appears that the selection after pasting is still from 41.8 to 43.7

that’s not what i get here. when i run the macro with those last two lines here, i get a split at 42.55. without those last two lines, no split at 42.55. in both cases, i get a split at 43.7.

in the macro, the paste command ends by showing a selection of 750ms but does not put a split line at the end of the 750ms. that’s why i added the last two lines of the macro.

i would have expected the paste command to have placed split lines at the start and end of the pasted 750ms, and to have removed the one at 43.7 since that clip is now gone. in replacing the longer clip, i’d have expected the new clip to be marked as it is pasted and the removed clip to take its marks with it when it leaves.

without adding two lines to the macro, i get a 750ms clip that has no tail split line and a following clip that has a split i didn’t want.

does this make it more clear?

thanks again,
babag

I think it’s because

CursSelEnd:
Split:

created it.

I’ll test your macro and see if I can reproduce what you are seeing, then I’ll get back to you.

No, it’s not that.

This is what happens when I test your Macro (I’ve changed the times for illustration purposes):

SelSave:
SelectTracks:Mode="Set" Track="2" TrackCount="1"
SelectTime:End="6" RelativeTo="ProjectStart" Start="5"
Copy:
SelectTracks:Mode="Set" Track="0" TrackCount="1"
SelRestore:
Paste:
CursSelEnd:
Split:

Each track is 30 seconds duration, and the original selection is from 10 to 15 seconds.


looks like your 10-15sec selection is not split before running the macro. what happens if, rather than just selecting from 10-15secs, you split track1 at 10secs, split at 15secs, select by double-clicking the resultant 5sec clip, then run the macro?

thanks,
babag

Try this. I think it shows what is happening:

  1. Select a 10 second region.
  2. “Ctrl + i” (split)
  3. Select a 3 second region
  4. “Ctrl + C” (Copy)
  5. Double click the 10 second region created in step 2 (the 10 second region is selected)
  6. “Ctrl + V” (paste)

Notice that the selected region is replaced, but the split lines remain in their original places.

If you want the split lines to move, do it this way:

  1. Select a 10 second region.
  2. “Ctrl + i” (split)
  3. Select a 3 second region
  4. “Ctrl + C” (Copy)
  5. Double click the 10 second region created in step 2 (the 10 second region is selected)
    6. “Del” (or “Ctrl + K”) to delete the selected audio
  6. “Ctrl + V” (paste)

thanks, steve. that’s what i was going to try next, deleting before pasting. just tried it and it does work. adds a step but it’s a short macro so seems fine.

edit:
actually, though, it seems like i can get rid of the last two lines this way which makes it one line shorter. :slight_smile:

thanks again,
babag