Discussion:
[Audacity-devel] Cut and paste implemented for time track
Paul Licameli
2017-04-01 15:06:57 UTC
Permalink
Incidentally to my work for exception handling, I supplied missing cut and
copy methods for TimeTrack. (So elsewhere I can assume that whenever any
track is cut or copied, the result is never NULL. Exceptions instead for
errors.)

So now control points can be cut or copied from one portion of the time
track and pasted into it elsewhere or into another project.

I welcome testing now.

I am aware of one defect. If you cut points, then the time envelope before
and after the cut is not left unchanged. And the same is true of envelopes
of wave clips. Not coincidentally, because the code is common.

I have a branch envelope-fixes meant to address that and other problems.
In fact it is some rather old work of mine that got repeatedly delayed from
merging. I expect I will review and merge it this release.

PRL
Gale Andrews
2017-04-02 00:01:44 UTC
Permalink
Thanks, Paul. One small detail. Now we can paste control points into
Time Track, could we allow Edit > Copy and Edit > Cut to be enabled
when the selection is only in the Time Track? At the moment we require
to select in an audio track too.

Perhaps this requires first sorting out the multiple "things" that can be
on the Audacity clipboard?


Gale
Post by Paul Licameli
Incidentally to my work for exception handling, I supplied missing cut and
copy methods for TimeTrack. (So elsewhere I can assume that whenever any
track is cut or copied, the result is never NULL. Exceptions instead for
errors.)
So now control points can be cut or copied from one portion of the time
track and pasted into it elsewhere or into another project.
I welcome testing now.
I am aware of one defect. If you cut points, then the time envelope before
and after the cut is not left unchanged. And the same is true of envelopes
of wave clips. Not coincidentally, because the code is common.
I have a branch envelope-fixes meant to address that and other problems. In
fact it is some rather old work of mine that got repeatedly delayed from
merging. I expect I will review and merge it this release.
PRL
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Richard Ash
2017-04-02 18:36:59 UTC
Permalink
On Sat, 1 Apr 2017 11:06:57 -0400
Post by Paul Licameli
I am aware of one defect. If you cut points, then the time envelope
before and after the cut is not left unchanged. And the same is true
of envelopes of wave clips. Not coincidentally, because the code is
common.
I have a branch envelope-fixes meant to address that and other
problems. In fact it is some rather old work of mine that got
repeatedly delayed from merging. I expect I will review and merge it
this release.
I'd be really pleased to have that for volume envelopes!

Richard
Martyn Shaw
2017-04-02 21:49:29 UTC
Permalink
Hi Paul
Post by Paul Licameli
Incidentally to my work for exception handling, I supplied missing cut and
copy methods for TimeTrack. (So elsewhere I can assume that whenever any
track is cut or copied, the result is never NULL. Exceptions instead for
errors.)
So now control points can be cut or copied from one portion of the time
track and pasted into it elsewhere or into another project.
I welcome testing now.
I am aware of one defect. If you cut points, then the time envelope
before and after the cut is not left unchanged. And the same is true of
envelopes of wave clips.
What do you mean here? In released versions, on a normal audio track with
an envelope, if you cut a section out the envelope gets new point to
preserve it's values. I remember spending ages trying to get this right
many years ago and I thought we had it sorted.

TTFN
Martyn
Post by Paul Licameli
Not coincidentally, because the code is common.
I have a branch envelope-fixes meant to address that and other problems.
In fact it is some rather old work of mine that got repeatedly delayed from
merging. I expect I will review and merge it this release.
PRL
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Paul Licameli
2017-04-02 22:03:19 UTC
Permalink
Post by Martyn Shaw
Hi Paul
Post by Paul Licameli
Incidentally to my work for exception handling, I supplied missing cut
and copy methods for TimeTrack. (So elsewhere I can assume that whenever
any track is cut or copied, the result is never NULL. Exceptions instead
for errors.)
So now control points can be cut or copied from one portion of the time
track and pasted into it elsewhere or into another project.
I welcome testing now.
I am aware of one defect. If you cut points, then the time envelope
before and after the cut is not left unchanged. And the same is true of
envelopes of wave clips.
What do you mean here? In released versions, on a normal audio track with
an envelope, if you cut a section out the envelope gets new point to
preserve it's values. I remember spending ages trying to get this right
many years ago and I thought we had it sorted.
TTFN
Martyn
Ah, you are right, Martyn, that cut (Ctrl+X) or delete does the right thing
to envelopes of wave clips. It does not, yet, for time track.

But what I was recollecting though is that split cut and split delete
(Ctrl+Shift+ X or K) do not do the right thing, yet, for wave clips. These
do not introduce new envelope control points at the boundaries.

More work for me to set it all right for envelopes and time tracks both.
This work has been in preparation for a while.

PRL
Post by Martyn Shaw
Post by Paul Licameli
Not coincidentally, because the code is common.
I have a branch envelope-fixes meant to address that and other problems.
In fact it is some rather old work of mine that got repeatedly delayed from
merging. I expect I will review and merge it this release.
PRL
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Martyn Shaw
2017-04-02 23:23:44 UTC
Permalink
Post by Paul Licameli
Post by Martyn Shaw
Hi Paul
Post by Paul Licameli
Incidentally to my work for exception handling, I supplied missing cut
and copy methods for TimeTrack. (So elsewhere I can assume that whenever
any track is cut or copied, the result is never NULL. Exceptions instead
for errors.)
So now control points can be cut or copied from one portion of the time
track and pasted into it elsewhere or into another project.
I welcome testing now.
I am aware of one defect. If you cut points, then the time envelope
before and after the cut is not left unchanged. And the same is true of
envelopes of wave clips.
What do you mean here? In released versions, on a normal audio track
with an envelope, if you cut a section out the envelope gets new point to
preserve it's values. I remember spending ages trying to get this right
many years ago and I thought we had it sorted.
TTFN
Martyn
Ah, you are right, Martyn, that cut (Ctrl+X) or delete does the right
thing to envelopes of wave clips. It does not, yet, for time track.
But what I was recollecting though is that split cut and split delete
(Ctrl+Shift+ X or K) do not do the right thing, yet, for wave clips. These
do not introduce new envelope control points at the boundaries.
Thanks Paul, I see that is Ctrl+Alt+X / K and agree they don't work
properly.

TTFN
Martyn
Post by Paul Licameli
More work for me to set it all right for envelopes and time tracks both.
This work has been in preparation for a while.
PRL
Post by Martyn Shaw
Post by Paul Licameli
Not coincidentally, because the code is common.
I have a branch envelope-fixes meant to address that and other
problems. In fact it is some rather old work of mine that got repeatedly
delayed from merging. I expect I will review and merge it this release.
PRL
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Loading...