Audacity Projects
Audacity project files store information about the entirety of the project such as the number of tracks and their time positions, details of clips within the tracks, amplitude envelope points, labels and gain and pan data.
AUP files and project files
Audacity project files store information about tracks, labels and other project data. An Audacity project consists of the AUP master file and its associated _data folder which contains numerous small AU audio files in subfolders. An Audacity project cannot be played in a media player such as Windows Media Player or iTunes. To obtain playable audio files it is necessary to them from the project.
Audacity may increase processing speed, and save some space, by referencing external audio files rather than making a copy (this will depend on the settings that you have in your Preferences for Import/Export, see Dependencies below). Note carefully that your project will no longer work if you rename, move, delete or overwrite the original audio file(s) on which it depends.
Audacity projects contain audio clips arranged onto tracks. The project's structure is:
- A master project file - the name of the project followed by ".aup", for example "my_song.aup"
- A _data folder with the same project name and in the same folder as the AUP file, for example "my_song_data"
- Within that _data folder, a sub-folder structure with lots of little AU files which are segments of the recording
- Additionally data is stored which enables Audacity to manage the graphical waveform display and carry the links to any external dependent audio files in use by the project.
The master project file describes how Audacity links these AU files together to make up the clips and tracks in the project. The AUP file is in XML format and can be opened in a text editor if required. The AU files are stored in a lossless, uncompressed format. Their default size is 1 MB or less. This Audacity Project Format is designed to make editing audio faster in Audacity. By updating individual AU files during editing, Audacity can change audio or move audio around in the project without copying large quantities of data from one place to another.
Audacity's project format is not compatible with any other audio program. When you Save an Audacity project, it is saved in the Audacity Project Format ; an AUP file cannot be played using an MP3 player.
- When importing an uncompressed audio file with the "Read uncompressed file directly from the original (faster)" option checked in Import / Export Preferences (and note this is the Audacity default setting), never move, rename or delete that file, unless you first copy it into the Audacity project. See for more information.
- Never move, delete or rename any of the files or folders inside the _data folder.
- Never rename the AUP file or the _data folder.
- Always keep the AUP file and the _data folder together in the same directory (folder).
-
If you want to rename your project (for example, to save a snapshot at a particular point), use the command.
Opening an Audacity project
When opening an Audacity project always use the command to open the <my_project_name>.aup. Do not attempt to open, import or manipulate any individual AU files.
Audio for use in Audacity, but which was not recorded in Audacity, will need to be imported using or . The Import command is used to import audio data into an already open project, whereas the Open command used on an external audio file will either open a new Audacity project, and import the audio data into it, if the current project already contains any tracks; or import the audio data into the current project if contains no tracks.
Peter 27Feb11: I did read the recent comments in the Consistency discussion before I wrote this. But I think that it may be a case of "horses for courses". In this particular instance in the little paragraph above there is already a link to the "File" menu in the first sentence for any interested reader. In the third sentence I actually want to direct the user to the actual information relevant to them at that time i.e. the import or the open. At that stage sending them back to the top of the "File" page could be confusing as they will then need to scroll down to find what they need.
But I am perfectly happy to fall into line with whatever consistency standard we finally decide on.
- Gale: I think consistency is a goal because lack of it can confuse too. Your sentence "always Open the <my_project_name>.aup file from the File menu" doesn't 100% guarantee people will use "Open". It isn't really grammatical with the "Open" capitalised either. "Choose File > Open" (linked or not) should be clearer if it is used consistently. To be both consistent and flexible, how about <anchor> after the ">" always going to the anchor, but the root menu before ">" does not have to be a link (after all, in some cases it may become tedious to repeat links, so you might only want to make a menu item into a link the first time of use.
- Peter 28Feb11: I have added my thoughts to the consistency discussion in the Wiki. When a final decision on the preferred form is reached I will ensure that this page conforms.
Dependencies
Depending on the Import/Export Preferences settings, when an uncompressed audio file such as WAV or AIFF is imported or opened, Audacity may save time by not making a copy of the file and in that case will refer externally to the original file as it manipulates the audio data within the project (while not ever making any changes to that audio file unless it is told to do so).
This external reference is the default (faster) setting for Audacity's Preferences.
When a project is saved, providing that Audacity's default setting has not been changed in the project's Preferences settings, Audacity will display a dialog box showing these dependencies and give the option of copying all of the audio data into the project making it independent of external audio files and making it safe to delete, move or modify the original audio files if necessary. The project's Preferences settings can be modified so that Audacity will not ask but will always either "never copy" the dependent audio files, or "always copy" them into the project on exit from Audacity.
At any time it is possible to click on to see if the project depends on any external files.
Import settings: "faster" versus "safer"
There are two settings available to control the manner in which the command operates. The default setting is Read uncompressed audio files directly from the original (faster) and the other is Make a copy of uncompressed audio files before editing (safer).
The faster option: This is the default option and is set this way as the default so that Audacity can use its On-Demand Loading to operate faster and save disk space. Import of the audio will usually be faster, but Audacity will depend on the audio file remaining accessible and having the same name and location as when you imported it. The audio file is not actually imported or copied into the project in this case, rather it is accessed as an external file by Audacity.
The safer option: This is the more secure option to choose, meaning that Audacity will always have its own copy of imported files to work with. Choose this option if the Audacity project file is required to be opened on another computer, or to be sent to someone else. This option need not be chosen if the exported audio file like an MP3 or WAV file is to be sent to someone else.
If plenty of available disk space is available and the time taken to make the full import is not an issue, then it is strongly recommended that this Preference be reset to the safer option. This way the project will then always remain independent of external audio files.
Exporting Audio
To use the project's audio outside Audacity, it is necessary to Export it into another format, see . The format chosen will depend on the intended use for the audio; for playing in a media player MP3, AAC or AIFF format will be necessary. For burning a CD you will need a WAV file.
As noted above AUP files cannot be used in any other audio program, MP3 player or iPod, only in Audacity.
How to move an Audacity Project
Ed 27Feb11 Have not looked at how "long" the page is without editornote divs but unless really too long I would keep it here. Especially considering "complex structure as described above" which would have to change to a page referal
Moving Audacity projects can be tricky due to their complex structure as described above. Any project can be moved on the same computer by making a copy of the project with the command.
Simple Projects
For a simple single track project one possible solution is to not to move the project, instead, use the command to export a WAV file. This WAV file can be copied to another computer where the command can be used to load the WAV file into an Audacity project, or the WAV file can be sent by e-mail or a file sharing web site to someone else to Import into an Audacity project on their computer.
Complex Multi-Track Projects
For a project that has multiple tracks the entire project will need to be moved. To do that it is necessary to move the AUP file <my_project_name>.AUP and the _data folder <my_project_name>_data (containing all the little AU files) either to a second computer or to a different location on the existing computer. Ensure that the .aup file and _data folder remain together in the same folder.
Before doing this it is recommended that the be used to check whether the project depends on any external files. If it does, the dialog box will give you the option to make a copy of those files within the project. External files have absolute references in the AUP file and thus it is difficult to move an Audacity project that depends on external files to another computer but relatively easy to move a project to a different location on the same computer. See this article in the Wiki on Sending your work to others.
It can be difficult to e-mail complex projects to other users; to do so it is necessary to zip up the entire project structure and e-mail or share that zip file. The reason for zipping up the project is to make sure the project structure remains intact during the transfer, not to save space. A zip archive of a project is likely to be about 10% smaller than the unzipped project.
Bill: I realize this may be a low priority, but I and a few others (based on posts on the forum) would love to see a specification of the Audacity XML.
Gale added a note:
The summary files have the same format as the audio files, but there are fewer of them. Gale: Importing the same WAV aliased in one project and not so in another produces the same number of .auf files in the aliased project as .au files in the other project (at default blocksize)
- Peter: Gale I'm not sure I really understand this comment - or if we need to retain it on this page?
- Bill 24Feb11: I don't think we need to talk about .auf files. That's getting way too technical. FWIW, here is my understanding of .au files versus .auf files.
- AU files contain uncompressed mono audio data, and are limited to 1 MB in size. So the amount of audio they contain is dependent on the project bit depth and sample rate. Note that AU files have the same format as the project. If it is a 16-bit PCM project the AU files will contain 16-bit PCM data.
- Each AU file has a header that appears to contain the information for drawing the waveform. Gale cannot reproduce this on Windows, but on Mac if I import an Audacity .au file into a project I get 12,346 samples (at 16-bit depth, 44100 Hz) of garbage at the start of each file. That corresponds to the offset field in the header of the AU file of 24,716 bytes. AUF files contain only the waveform-drawing header information. This is why the waveform can still be drawn when the aliased (external) file is no longer available.
- Each AUF files points to a chunk of the aliased file that corresponds to exactly the same chunk of audio that would be contained in an AU file if the external file were copied in instead of aliased. Thus you always get exactly the same number of AUF files as AU files.
- I have yet to see any of these mythical "summary" files (as opposed to AUF files), either in the _data folder or referenced in an AUP file.
- I also find it peculiar that we are left to infer all this, when a developer who understands the Audacity project format could give us a definitive answer. This is akin to the debate on whether or not Audacity does all internal processing at 32-bit, which AFAICT has not been resolved either.
- Gale: As soon as I get full time I will try and do some research and go through this article properly. I wish I had had time to do so before, but if you were unsure about doing it yourselves, you could have asked me to prioritise merging the page. It was kind of Peter to volunteer, but it might have saved time. I have raised some disquiet about the content here in a [Manual] thread which James was Cc'd on, though he did not comment. I will ping him if I am still not happy, so we get this page sorted. All that said, I still think (without rewriting it from scratch), all "heavy" technical stuff should either be tucked away at the bottom as a technical appendix, or go to Wiki.
As for "all internal processing at 32-bit", it was never a definitive answer but Martyn said he thought so, and it does look like it. It's just not what I understood from correspondence I had ages ago with Dominic (and I still don't think I misunderstood it).
- Gale: As soon as I get full time I will try and do some research and go through this article properly. I wish I had had time to do so before, but if you were unsure about doing it yourselves, you could have asked me to prioritise merging the page. It was kind of Peter to volunteer, but it might have saved time. I have raised some disquiet about the content here in a [Manual] thread which James was Cc'd on, though he did not comment. I will ping him if I am still not happy, so we get this page sorted. All that said, I still think (without rewriting it from scratch), all "heavy" technical stuff should either be tucked away at the bottom as a technical appendix, or go to Wiki.
- Peter 27Feb11: Gale, I rewrote this page and extended it as we keep getting posters on the forum who need to understand some of the intricacies of the Audacity project structure and also to understand the implications of the faster/safer import settings. It is much easier to develop a reasonable page here in the manual to point them at rather than rewriting it fresh each time on the forum postings. I shall not be unhappy if you should wish to rewrite/restructure this page at any stage in the future following your proposed research - and I will gladly help you with editorial reviews if you do.
- Gale: I appreciate your work here, Peter. However for those on 1.2 it would be much more appropriate to send them to the existing Wiki documentation than here.
- Peter 28Feb11: Thanks Gale. Yes, I agree that this page is being written for the benefit of 1.3 users (and future 2.0 users hopefully). I note from the forum that we seem to get as many, if not more, 1.3 posters these days than 1.2 (possibly helped by the retitling we did on the forum and the main Audacity site). I was aware of the File Management Tips in the Wiki, but for most readers it is far too long and far too dense - probably leading to TLDR. One of the key discussions highlighted in this rewritten Manual page is to help the reader understand the implications of "faster" versus "safer"; in the Wiki article this information is fairly well "hidden" in the dense text.