# Editing audio

## Importing a file

To start editing, you need some sort of sound to edit. You can either [record some sound](https://support.audacityteam.org/au4/basics/recording-your-voice-and-microphone), or import an existing sound file (for example, an MP3 or WAV) by dragging & dropping it into the project window. You can also import files via the **File > Import** menus.

{% hint style="info" %}
**Note:** To import proprietary file formats such as M4A or WMA, you need to [install FFMPEG](https://support.audacityteam.org/au4/basics/installing-ffmpeg) first.
{% endhint %}

Once you have imported a file, you will see a waveform of your sound:

![The waveform of a song](https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FSrKdAGbI3lBSlCa7dN67%2Faudacity_z6GbENS4oe.png?alt=media\&token=e71ed830-aaa7-4ee6-9f69-cf60e7764fd2)

This waveform is a visual representation of the song. The larger the dark "blob" is, the louder the section. Lines standing alone ("spikes") indicate sudden and short loud sections such as clicks, snaps, claps and drum hits. With a bit of practice, you can use the waveform to quickly find your way around an audio file.

## Removing sections of a song

To remove a section of an audio file, first select the section by **clicking and dragging** in the waveform.

![A selected waveform](https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FQgl9VOd9Hykr4Yl1ltuM%2Faudacity_yRdnwreOtc.png?alt=media\&token=520055c0-d8c9-46d4-80b5-9e6a6ff85e83)

{% hint style="info" %}
**Hint**: You can zoom in using the by scrolling while holding the Ctrl key ( `Ctrl+Scroll`, macOS: `Cmd+Scroll`) to precisely adjust the beginning and end of the selection.
{% endhint %}

Once you have a selection, press `Delete` or `Backspace` to delete it.

## Moving sections of audio (clips)

Audacity supports clips, which are pieces of audio inside the project which can be moved independently. Any audio you record or import already exists as a clip.&#x20;

You can **click + drag** on the clip header bar to move a clip around.

![A clip handle bar. Double-click to rename, Click and drag to move around.](https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FdKQWm8mFBkpIoPjqwMTc%2Faudacity_kPOwT5F7Jb.png?alt=media\&token=42c12348-b6da-4e77-8ddb-6f28e65d5ebb)

{% hint style="info" %}
**Note**: You can move a clip on top of another clip, into other tracks, or into the empty space below the tracks to create a new track.
{% endhint %}

## Splitting up clips

To split a clip into two independent clips, use the following steps:

1. Click on the **split tool** icon (scissors), or press `S`. This will cause any subsequent clicks to split the clip.
2. **Click** into a clip to split it.&#x20;

<figure><img src="https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2F1iVy5WXdeZORMsOyCtnG%2Fimage.png?alt=media&#x26;token=aa764ca2-baee-4ea1-999f-5b6f9f94aaad" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** You can also Click+drag across the waveform to split out a section.
{% endhint %}

## Resizing and trimming clips

To trim a clip, first select it by clicking into its header bar. This will cause some icons ("handles") to appear next to the clip.

![To trim a clip, click + drag on the upper set of icons](https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FaY50gb9qBGfZG3SbtL0K%2Faudacity_gBS9ZRuYHe.png?alt=media\&token=3d52e620-1887-4fa5-9331-2b4f49263157)

Once you see them, **click and drag** with the upper set of icons to trim the clip to it's desired length.

{% hint style="info" %}
**Note:** Trimming is a non-destructive operation. You can un-trim a clip at any time. If you have created your clip by [splitting up](#splitting-up-clips) a larger clip, you can even un-trim the current clip until it's at the length of the old clip. If you want to permanently remove the trimmed data, you can copy the clip to another project, choose **Selected audio only** when pasting, and move it back.
{% endhint %}

## Speeding up and slowing down clips

Just like trimming, speeding up and slowing down clips is done with handles next to the clip. To summon them, first click into the header bar to select it.&#x20;

<figure><img src="https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FaY50gb9qBGfZG3SbtL0K%2Faudacity_gBS9ZRuYHe.png?alt=media&#x26;token=3d52e620-1887-4fa5-9331-2b4f49263157" alt=""><figcaption></figcaption></figure>

Then, click and drag on the lower set of icons (the clocks) to speed it up or slow it down.&#x20;

{% hint style="info" %}
Note: A sped-up or slowed down clip will have a little indicator in the top right corner. \
![](https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2F1COaJDlHBRpyDxIeS9nC%2Fimage.png?alt=media\&token=7b952a65-163a-4c87-958c-78b1b58f422b)\
You can click on it to access advanced options (such as optimizing the stretching algorithm for voice), or to enter an exact number.
{% endhint %}

## Changing pitch of a clip

To change the pitch of a clip, right-click it, or click on the three-dot menu. Then select "Open pitch and speed dialog".&#x20;

<figure><img src="https://2905281570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEnNXGrLkN0pXlkzzS7cM%2Fuploads%2FtxKQIqpI7E6mCbXplJgH%2Fimage.png?alt=media&#x26;token=8dce3eae-599c-4283-afc5-8164776a8f17" alt=""><figcaption></figcaption></figure>

In the dialog that opens, you then can change the pitch using the semitones and cents boxes.&#x20;

{% hint style="success" %}
Best practice: When changing the pitch of a clip which involves the human voice, such as spoken word content or singing, make sure to check the "optimize for voice" tickbox. This will preserve formants and prevent the voice from sounding like a chipmunk.&#x20;
{% endhint %}
