Question using time tracks

This section is now closed.
Forum rules
Audacity 1.2.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
Astro-Xana
Posts: 35
Joined: Thu Feb 14, 2008 3:22 am
Operating System: Please select

Question using time tracks

Post by Astro-Xana » Thu Nov 20, 2008 10:22 pm

Is there a way for me to move control points on a time track in a straight line (in units) rather than moving them by the mouse? Also, is there a way for me to duplicate a time track and its contents or select the contents of a time track, copy them, and paste them into another time track?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Question using time tracks

Post by steve » Mon Nov 24, 2008 8:24 pm

Yes you can, but:
a) You have posted in the wrong part of the forum - Audacity 1.2.x does not support Time Tracks.
b) It requires direct editing of the Audacity Project (AUP) file, which is not recommended unless you have a thorough understanding of how they work (otherwise you are very likely to destroy your project).

Here is an AUP file that contains just one time track with 3 control points:

Code: Select all

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE project PUBLIC "-//audacityproject-1.3.0//DTD//EN" "http://audacityteam.org/xml/audacityproject-1.3.0.dtd" >
<project xmlns="http://audacityteam.org/xml/" projname="time_data" version="1.3.0" audacityversion="1.3.5-beta" sel0="0.0000000000" sel1="0.0000000000" vpos="0" h="0.0000000000" zoom="86.1328125000" rate="44100">
	<tags>
		<tag name="id3v2" value="1"/>
	</tags>
	<timetrack name="Time Track" channel="2" offset="0.00000000">
		<envelope numpoints="3">
			<controlpoint t="1.335147392290" val="0.504249291785"/>
			<controlpoint t="3.053424036281" val="0.980169971671"/>
			<controlpoint t="4.272471655329" val="0.512747875354"/>
		</envelope>
	</timetrack>
</project>
As you can see, it is basically an XML file.
The <timetrack></timetrack> tags enclose the time track data which consists of three control points.
The first parameter of the control point is the position on the time line for the control point.
The second parameter is the value (vertical position) on a scale of 0 to 1.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked