From: Shane Thomas Mueller <smueller@um...> - 2002-07-28 18:37:20
I spent some time tracking down a bug, but don't have the time to make a
fix right now, so I thought I'd report it.
When you perform the selection duplicate function (that duplicates a
selection on a new track), it does not change the sample rate to the same
rate--the sample rate is actually hard-coded to be 44100.
The reason why it is not a one-liner fix is that the copy method works on
the Track class, which may be a label track so it does not copy the
sample rate. (Working from memory) the Init() method copies some of the
meta-information from one track to another, but only the Track
properties--not the WaveTrack specific properties.
I think the proper fix is to make an Init() method in WaveTrack that
copies all of the information that is needed, but there may be some other
complications. Anyway, it should be a fairly straight-forward fix, and if
nobody does it in the next few weeks, I'll take a stab at it.
Shane Mueller East Hall 4424
(734) 647-3698 Cognition and Perception
smueller@... The University of Michigan
From: Matt Brubeck <mbrubeck@cs...> - 2002-07-28 19:28:54
On Jul 28, Shane Thomas Mueller wrote:
> When you perform the selection duplicate function (that duplicates a
> selection on a new track), it does not change the sample rate to the same
> rate--the sample rate is actually hard-coded to be 44100.
I went ahead and fixed this as you suggested, by adding WaveTrack::Init().
While testing, I noticed that envelopes don't handle rate changes very
gracefully. I'll look into this more in a bit.