-
Notifications
You must be signed in to change notification settings - Fork 16
/
audacity.qmd
200 lines (114 loc) · 11.1 KB
/
audacity.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
---
title: "Audacity: introduction to audio editing"
format: gfm
editor: source
date: today
author: UQ Library
---
Audacity is an **Open Source, cross-platform tool for audio editing**.
Among other features, Audacity allows you to:
* record live audio and computer playback
* edit and export in a variety of file formats
* cut, copy, splice and mix sounds
* apply a variety of effects
Audacity started in 1999 and is currently being used as a professional-grade audio editor in many applications, including music and podcast production.
## What we'll learn
This training covers how to:
* import audio into Audacity
* move and delete sections
* clean up background noise
* switch between sound visualisation tools
* use a few essential effects
* export to a variety of formats
* find and publish audio online
## Download some audio
Our sample audio files come from the Internet Archive. You can download the archived file [here](https://downgit.github.io/#/home?url=https://github.com/uqlibrary/technology-training/tree/master/Audacity/audacity_project), and extract it wherever you would like to store your Audacity project.
The pages that describe the recordings are here:
* [Carlos Valderrama Herrera](https://es.wikipedia.org/wiki/Carlos_Valderrama_Herrera) - Peruvian Triste / Pan-American Waltz (1920): https://archive.org/details/78_a-peruvian-triste-b-pan-american-waltz_carlos-valderrama_gbia0001886a
* [Lucille Hegamin](https://en.wikipedia.org/wiki/Lucille_Hegamin) - Everybody's Blues (1920): https://archive.org/details/Lucille_Hegamin-Everybodys_Blues
## Import an audio file
Audacity supports a variety of **audio formats**. We deal with MP3 files today.
To **import** an audio file: `File > Open...` and choose the first file.
You can also drag-and-drop an audio file into Audacity. Try that with the second file.
## Interface
We are dealing with two **stereo** clips here. The top half of a clip is the left channel, and the bottom half is the right channel.
The louder the sound, the higher the **waveform**. The quieter, the closer to the middle point.
The dark blue area shows the waveform peak of grouped samples (the loudest part), whereas the light blue area shows the Root Mean Square value of grouped samples (an guide to how loud it sounds).
## Controls
We have two audio files. If we press **play** (green button, or spacebar), they will be played at the same time.
We can focus on the longer track by **muting** the song, with the "Mute" button. It is then obvious which track is muted, as it is displayed in grey.
We can use the mouse wheel to scroll vertically through our audio clips. To **zoom and pan** the audio clips efficiently, we need to learn about the keyboard keys we can associate with the mouse wheel:
* <kbd>Ctrl</kbd> + Scroll: zoom in and out
* <kbd>Shift</kbd> + Scroll: navigate the timeline horizontally
These controls allow us to quickly navigate the clips and find the precise spots we want to work on. Make sure you practise them! You will notice that it is a lot more comfortable to work with Audacity when using a mouse.
If you zoom close enough to a soundwave, you will see that sound can't be stored digitally as actual waves. Each dot is a **sample** point. Depending on the **bitrate** of your audio file (i.e. the quality), the encoding will be more or less precise.
## Clipping and normalising
You might see a red line on the Carlos Valderrama track (if not, use `View > Show Clipping`). This denotes **clipping**, which means the soundwave goes over an intensity limit, which might result in artefacts when exporting the project.
To resolve clipping, we can **normalise** the track, which is equivalent to reducing the amplitude of the soundwave, for it to fit within a range. Click on the grey area next to the track to select it, and use:
`Effect > Normalize...`
That should have reduced the amplitude, and removed the red bars.
## Compressing
Sometimes, normalising is not enough. If a recording has a few very loud peaks, but the rest is very quiet, it might be worth it playing with **compression**. Select the whole clip and use:
`Effect > Compressor...`
We can use the default settings and see the effect.
The compressor amplifies quiet parts differently to louder parts, according to the settings. This means that we can make quieter sections a lot louder, while only amplifying the peaks a tiny bit – or even lowering their level. It ends up evening out the volume of the whole recording, which can be particularly useful if the audio is to be played in a noisy environment.
As you can expect, the compressor has to be used carefully as it reduces the **dynamic range** of a recording, i.e. it can render a sound less interesting because of less variability in the amplitude. Some music genres, like classical music, need a lot of dynamic range, so classical recordings does not make much sense.
You might have to normalise again after compressing – and keep an eye on clipping!
## Recording audio
If you have a microphone, make sure the device used is the right one in the microphone dropdown, and click the red dot to start **recording**.
We can introduce the first song by talking about the artist.
## Envelope tool
When we want to change the amplitude of one small part of a recording, we are better off using the **envelope tool**. You can add points on the light blue bar that appears around your tracks, and drag them to change the amplitude more smoothly than when using the `Amplify` effect on a section of audio.
Try it on the speech we recorded, on a section where the audio is way louder than the rest (useful when someone laughs, or coughs, or hits the microphone...).
## Splitting audio
The Carlos Valderrama track is actually two songs. We can use the select tool to highlight the second song, use <kbd>Ctrl</kbd> + <kbd>X</kbd> to cut it, click out of the track, and use <kbd>Ctrl</kbd> + <kbd>V</kbd> to paste it into its own separate track.
Let's mute it for now.
## Noise reduction
As you can hear, there is quite a lot of noise in the first music track. Luckily, the recording starts with a few seconds of only noise before the piano comes in.
We can use this section to create a noise profile, and then use the **noise reduction** effect to try and clean part of the noise.
1. Select the section at the beginning of the recording that is only noise (you can then use the spacebar to play only that section and check if you only selected noise)
1. Use "Effect > Noise Reduction..."
1. Click "Get Noise Profile"
1. Select the whole track
1. Use "Effect > Noise Reduction..." again
1. Click OK
You can play with the effect's settings to optimise the noise reduction. As you can expect, you have to find the right balance between removing lots of noise and not degrading the interesting part of the audio.
## Removing audio
Now that we have cleaned up some of the noise, we can remove the first few seconds of the clip so we get straight away to the interesting bit.
With the selection tool, we can select the (roughly) 2 first seconds, and remove them with <kbd>Del</kbd>. We can do the same thing with the end of the recording.
## Fading in and out
To make our recording start smoothly, we can **fade** the sound in.
Still using our selection tool, select the first two seconds of the clip, and use:
`Effect > Fade In`.
We can do the same with the end of the recording, but using the "Fade Out" effect instead.
## Moving audio
Let's unmute the jingle and the speech recording. We want our podcast to start with the jingle, then introduce the first song, and have the first song start at the end of the speech recording. We can do that by changing to the **Time Shift Tool** and sliding the clip to the right position.
Let's make sure the clips fade into each other by using the fading effects. We also want to normalise the tracks and use the volume sliders so the sound level is more uniform.
## Using the spectrogram
You can switch between visualisation tools by using the clip title dropdown menu.
The **spectrogram** view makes it possible to visualise **frequencies** rather than the level, and can help finding specific sounds in the recording, and removing particular frequencies.
For example, if there is a constant high-pitched hissing noise throughout a recording, the spectral selection option will allow the selection of the range of frequencies, and the Spectral edit multitool effect will remove it.
Try changing the view of the jingle from waveform to spectrogram, and then:
* `Select > Spectral > Toggle spectral selection` will allow you to select a frequency range by drawing a rectangle in the spectrogram (see how it turns green?). There is a beeping throughout the recording, at 5 kHz.
* `Effect > Spectral edit multitool` will then edit that frequency range out of the recording.
Other use cases include finding tongue clicks or saliva sounds in speech, to then remove them.
## Saving and exporting
Saving an **Audacity project will** save everything in the current state, so you can keep editing your audio files and putting everything together.
If you are finished with your project and you want to **export** a finished product, you can use `File > Export`. A few common formats are listed, including lossy formats like MP3 and OGG, and lossless formats like WAV. Using `Export Audio...`, you can choose other formats FLAC, a lossless format that uses less space than WAV.
Try exporting you project and giving it relevant **tags** so information can be displayed by audio players. By default, Audacity will use the tags from the first clip imported into the project.
The resulting file is a single stereo audio file. You can also `Mix and Render` tracks inside a project, which is the equivalent.
Remember that if a track is muted, it won't be exported!
## Where to find audio files?
Always make sure that the **licence** is compatible with your use of the files.
* The Internet Archive is a great source of recordings: https://archive.org/details/audio
* FreeSound.org is a wealth of sound snippets released under Creative Commons licences
* SoundCloud can be searched with Creative Commons licence filters
* http://freemusicarchive.org/ offers thousands of songs released under a variety of licences
* Wikimedia Commons can also be searched for audio files: https://commons.wikimedia.org/wiki/Category:Audio_files
* http://dig.ccmixter.org/ specialises in making Creative Commons music discoverable.
## Where to publish?
Once more, make sure you have the right to release the recording publicly.
The choice of platform used to publish an audio file will depend on the audience and the use.
The Internet Archive and Wikimedia Commons are non-profit organisations that are generally considered to be reliable hosts of media. SoundCloud is very popular to share audio files, in particular because of its social features, but it is run by a for-profit entity that has been having difficulties to survive in the last few years.
Freesound is an initiative of the Music Technology Group, a research group of the Universitat Pompeu Fabra (UPF) in Barcelona. Having a project like this one backed up by a university's infrastructure is a good sign of sustainability.
Both the Internet Archive and SoundCloud will allow you to embed a sound into another webpage, which might be useful.