This page is a companion for the course MUS2640, but can hopefully also be helpful for other university courses.
Reading research articles¶
How can researchers get through tens of articles in a day? The trick is not to read everything, but to assess whether the article is relevant in the first place and, if so, to read the most important things first. With the habits below you can get a good overview of an article in about 15 minutes:
Title and abstract. The title can be seen as a one-sentence abstract of the paper and is your first guess at whether you want to read on or not. If you like the title, read the abstract. If that does not convince you, move on to something else.
The venue. Always check where the article is published. The journal or conference tells you the field, which also gives you an impression of which methods and standards to expect. A music psychology journal article, a music technology conference paper, and a musicology book chapter are written and reviewed in different ways.
The authors and their order. The author names can also give an idea about what you should expect. Sometimes, you recognise the name of a researcher whose work you are interested in learning more about. Also check the author order. In empirical research the first author usually did the work and the last author led the group. However, this is not a general rule. In some fields, authors are listed alphabetically.
The affiliations. Also check the authors’ affiliations. A conservatory, a psychology department, a computer science lab and a company bring different questions, equipment and interests to the same topic.
The figures. Looking at an image can spare you from reading 1,000 words. Start by browsing through the figures and their captions. They often show the setup, the stimuli and the main result more directly than the text.
Then the sections you need. If, after the above, you realise that this paper is not for you, move on. If it is, go to the section you find most interesting. You could start by finding the research questions in the introduction, then jump to the results and the discussion to look at limitations. If you really want to know what was done, read the methods section. Such non-linear reading may speed up the reading process considerably.
Be critical. Use the checklist from the introduction: find the claim, evidence, method, and limits, and evaluate how the argument is developed.
Keep what you read. Most researchers use a reference manager such as Zotero to keep track of relevant literature, store PDFs, notes and citations. These can also generate bibliographies for articles.
You should always have a critical mind when reading research literature. Try to identify who took part, what they heard or did, what was measured, where it happened, and how the data were analysed. Then, try to think of how the study could have been done differently. Researchers stand on each other’s shoulders and develop new research questions by scrutinising the works of others. For each limitation, say which conclusion it blocks: if only professional drummers took part, we cannot say whether amateurs do the same. Check the method section before proposing a change, since the authors may already have done it.
Writing academic texts¶
Writing academic texts is a craft. By adhering to some basic principles, you will make your texts more effective.
It is all about the planning¶
Start by understanding what type of text you are about to write. How long, for whom, when it should be finished, and in which format and citation style. If anything is unclear, ask; that will save you a lot of time.
Plan in a few bullet points, separating what something is from why it matters, and decide for each section which evidence you will lean on: articles, listening examples or your own data.
Structure of a text¶
When you begin writing, always try to specify the question you are trying to answer. The introduction should explain the context, the question and a one- or two-sentence summary of the answer.
Next, each body paragraph should carry one idea. It could be phrased as a topic sentence, followed by sentences providing evidence for that claim, and, finally, a bridge to the next paragraph.
The conclusion of your text draws the layers together, connects to the introduction, and may note the limits of the argument or what further work would be needed.
This “formula” works equally well for a 1,000-word text and an 80,000-word thesis. You can always develop your argument in this way, and expand from there.
Which person to write in¶
For more formal analysis, third person works well (“The results suggest...”). In the past, first-person writing was unusual, but nowadays it is normal in reflection sections and in methods sections describing what you did.
Prefer simple language and active phrasing when it clarifies who did what. Most importantly, do not drift between voices. Write as to a stranger who will judge the text on its own: no contractions, no exclamation marks, no “not much to say here”.
Writing about sound and music¶
When writing about music, it can help to describe before you interpret. Use visualisations to guide the reader and/or refer to recordings and timecodes so that the reader can check.
Remember to include units: a reverberation time in seconds, a frequency in hertz, a level in decibels, a distance in metres. Remember that 1 kHz is 1,000 Hz.
Be picky about terminology; here are some words that many students confuse:
Reverberation is many reflections that merge into a tail; an echo is one reflection you hear separately.
Level is measured in decibels; volume is a knob. Loudness is what you hear.
Absorption takes energy out of the sound and makes a room drier; diffusion scatters it; diffraction bends it round an edge or through a doorway; refraction bends it as it passes into another medium or through warmer or colder air; isolation (what people call soundproofing) keeps it out of the next room.
A keynote is what you stop noticing, a sound signal is what makes you turn your head, a soundmark is what the people of a place would miss if it were gone, so a sound that only you would miss, such as your own front door, is not one.
Pitch is heard, frequency is measured.
EEG records the brain’s electrical activity, fast but blurred in space; fMRI its blood oxygen, sharp in space but seconds late; ECG records the heart.
Tempo is a rate, the beat is the level you tap.
Motion is what a sensor measures, movement is what a person experiences.
Compression of data (MP3) and compression of dynamics (a compressor) are two different things and should not be confused.
Figures¶
A figure must be readable on its own.
Caption: always include text underneath a figure saying what the reader is looking at and what to notice.
Axes, legend and scale: always label both axes with units (Hz, dB, s, BPM) and use a legend when there is more than one series.
Readability: fonts should be large enough at the size the figure will appear.
Reference and credit: refer to each figure in the text (“Figure 3 shows...”) and cite the source if it is not your own.
Referencing¶
It is generally better to paraphrase (that is, reformulate other people’s thinking in your own words) rather than quoting at length. Whether you paraphrase or quote, you should always mention whose work you are borrowing from and give page numbers, if available.
All citations should be in the reference list, and the list should only contain the works cited. Any consistent style (APA, Chicago, Harvard) is accepted.
Google Scholar is a good place to start searching for academic literature. Use the university library search to get access to material behind paywalls. Cite anything that is not common knowledge, including paraphrases and figures.
Double-check your text¶
Before you submit any text, check against the brief and revise in separate passes: structure (does the argument flow?), claims and evidence (is each point supported?), language and references (clarity, tone, accurate citation).
Format your text consistently: font sizes, heading levels, indents and spacing. The formatting should not distract the reader from your content.
Spectrograms¶
Reading a spectrogram¶
A spectrogram is a picture of sound: time along the horizontal axis, frequency up the vertical axis, and brightness for how much energy the sound carries at each point. Here are some tips on how to “read” them.
The axes¶
The horizontal axis is time, as in a waveform display; a vertical slice of the image is one moment of sound.
The vertical axis is frequency in hertz, a physical quantity, not a note name. On a linear scale the distance from 0 to 1,000 Hz equals that from 1,000 to 2,000 Hz, which squeezes the musically important low range into a thin band at the bottom. On a logarithmic scale every octave gets the same space, so the step from 220 to 440 Hz looks as big as the step from 440 to 880 Hz. Check which scale you are looking at before interpreting anything.
The third dimension is colour or brightness: the energy at that time and frequency, usually in decibels. A spectrogram is a three-dimensional surface (time, frequency, energy) seen from above, with height turned into colour, so a bright spot at two seconds and 440 Hz means that at that moment the recording contained strong vibration at 440 cycles per second. A waveform shows only time and overall amplitude; the spectrogram unfolds the amplitude into its frequency content, which is why it shows more and takes more care to read.
One note is many lines¶
The most common misreading is to treat a spectrogram as a score or a piano roll. When one voice or instrument plays one note, the spectrogram shows a stack of horizontal lines, the partials of the tone, at whole-number multiples of the fundamental (see acoustics). One note at 220 Hz on a guitar gives lines at 220, 440, 660, 880 Hz and upwards. To an eye trained on piano rolls the stack looks like a chord, but it is, indeed, only one note. The pitch you hear corresponds to the lowest line, and to the spacing between the lines; everything above shapes the timbre.
A spectrogram shows the physical, composite structure of sound, while a note is a perceptual unit: the auditory system fuses the stack, the spectrogram leaves it unfused for you to inspect. So follow the lowest strong line of a stack to find the melody, and expect the stacks of several instruments to interleave. Untangling them is the problem your auditory system solves in auditory scene analysis (psychoacoustics) and the reason automatic transcription remains hard (machine listening). When unsure whether a stack is one note or a chord, check the spacing: the partials of one harmonic tone are equally spaced in hertz (220, 440, 660), the fundamentals of a chord are not (a major triad on A has 220, 277 and 330 Hz, each with its own stack).
A short video introduction from the National Music Centre covers the same ideas:
What common sounds look like¶
A harmonic sound, a sung vowel or a plucked string, is a stack of horizontal lines with the fundamental lowest. A drum hit or click is a thin vertical stripe: short in time, spread across all frequencies. Vibrato makes every line of a stack wave up and down, most visibly in the upper harmonics. Noise, a cymbal wash, wind or hiss, is a diffuse wash without lines. Speech alternates quickly between short harmonic stacks, whose bright bands (the formants) slide up and down within a tenth of a second, noise bursts for consonants such as s and t, and short gaps between words; it rarely holds a line as long as a sung or played note. Silence is the weakest end of the colour scale, dark in most colour maps but often white in greyscale, so read the legend or find a silent stretch before deciding; background noise usually leaves a faint trace near the bottom. The figure below shows all of these in one synthesised clip.
Source
# Annotated spectrogram of a synthesised clip with a count-in click,
# a harmonic tone with vibrato, a noise burst, and silence
import numpy as np
import librosa
import librosa.display
import matplotlib.pyplot as plt
plt.rcParams.update({
"font.size": 10,
"axes.titlesize": 11,
"axes.labelsize": 10,
"xtick.labelsize": 9,
"ytick.labelsize": 9,
"legend.fontsize": 9,
"figure.figsize": (10, 4),
"figure.dpi": 100,
"savefig.dpi": 150,
"axes.spines.top": False,
"axes.spines.right": False,
})
rng = np.random.default_rng(2640)
sr = 22050
duration = 6.0
n = int(sr * duration)
t = np.linspace(0, duration, n, endpoint=False)
y = np.zeros(n)
# Count-in clicks: two short broadband bursts
for start in (0.4, 0.9):
idx = (t >= start) & (t < start + 0.012)
y[idx] += 0.9 * rng.uniform(-1, 1, idx.sum())
# Sustained harmonic tone with vibrato (f0 = 220 Hz, 5.5 Hz vibrato)
f0, vib_rate, vib_depth = 220.0, 5.5, 8.0
inst_f0 = f0 + vib_depth * np.sin(2 * np.pi * vib_rate * t)
phase0 = 2 * np.pi * np.cumsum(inst_f0) / sr
tone = np.zeros(n)
for k in range(1, 7):
tone += (0.5 / k) * np.sin(k * phase0)
env = np.where((t >= 1.5) & (t < 3.8), 1.0, 0.0)
ramp = int(0.05 * sr)
attack = np.searchsorted(t, 1.5)
release = np.searchsorted(t, 3.8)
env[attack:attack + ramp] *= np.linspace(0, 1, ramp)
env[release - ramp:release] *= np.linspace(1, 0, ramp)
y += 0.6 * tone * env
# Noise burst
idx = (t >= 4.2) & (t < 4.8)
y[idx] += 0.35 * rng.uniform(-1, 1, idx.sum())
# Silence from 4.8 s onwards (nothing added)
y = y / np.max(np.abs(y))
n_fft, hop_length = 2048, 256
D = librosa.stft(y, n_fft=n_fft, hop_length=hop_length, window='hann')
S_db = librosa.amplitude_to_db(np.abs(D), ref=np.max)
fig, ax = plt.subplots(figsize=(10, 4.2), constrained_layout=True)
img = librosa.display.specshow(S_db, sr=sr, hop_length=hop_length,
x_axis='time', y_axis='hz', cmap='magma', ax=ax)
ax.set_ylim(0, 2500)
ax.set_title('An annotated spectrogram of a six-second synthesised clip')
fig.colorbar(img, ax=ax, format='%+2.0f dB')
notes = [
('count-in clicks:\nvertical stripes', (0.65, 1900), (1.15, 2300)),
('harmonics:\nhorizontal stack', (2.6, 480), (2.05, 2050)),
('vibrato:\nwavy lines', (3.3, 1310), (3.85, 1850)),
('noise burst:\nbroadband wash', (4.5, 1500), (4.35, 2250)),
('silence:\ndarkness', (5.5, 900), (5.15, 1500)),
]
for text, xy, xytext in notes:
ax.annotate(text, xy=xy, xytext=xytext, color='white',
ha='center', va='center',
arrowprops=dict(arrowstyle='->', color='white', lw=1.2))
plt.show()
Figure: An annotated spectrogram of a synthesised six-second clip: two count-in clicks, a sustained harmonic tone with vibrato, a noise burst and silence.
Every spectrogram is computed with an analysis window, and the window size sets a trade-off: a short window is sharp in time but blurry in frequency, a long window the opposite. Acoustics shows the same signal analysed with three window sizes.
Checklist when describing a spectrogram¶
The axes first: the time span, the frequency range, whether the frequency and intensity scales are linear or logarithmic, and the width of the colour scale (the dynamic range).
The settings: the window size (in samples or milliseconds) and the overlap, which decide what the picture can and cannot show. A printed figure rarely states them; infer the window from how sharp the clicks and partials are, and say that you are inferring.
The obvious events: where does something begin, end or change?
The content sorted into harmonic (horizontal lines), percussive (vertical stripes) and noisy (diffuse washes).
The development over time: what stays constant and what moves?
What you cannot conclude: a spectrogram shows physical energy, not perceived loudness, and does not by itself reveal which source produced the sound.
Making spectrograms in Sonic Visualiser¶
Sonic Visualiser is a beginner-friendly tool for making spectrograms. Open an audio file (File > Open) and you see a waveform; spectrograms are added as layers from the Layer menu, in three types computed from the same analysis but showing different things.
Regular spectrogram (Layer > Add Spectrogram, shortcut G): all frequencies from 0 Hz to half the sampling rate, energy as colour. Start here; it shows stacks, stripes and washes at once, but its linear frequency default gives most of the image to high frequencies where little music happens. The properties pane on the right holds the choices: Window sets the analysis window (1024 samples as a general default, 2048 or 4096 for sustained tones and fine pitch detail, 256 or 512 for drum hits and onsets), Scale sets the colour mapping (dB is usually the most readable), and the frequency axis can be switched between linear and logarithmic and zoomed with the wheels at the bottom right.
Melodic range spectrogram (shortcut M): the same analysis preset for melody, with a restricted range, a logarithmic axis and a longer window. Pitch contours, vibrato and slides read almost like a drawn line. Even here one sung note is several parallel lines, and the contour is the lowest strong one.
Peak frequency spectrogram (shortcut K): draws a thin line at the estimated exact frequency of the strongest component in each bin, so partials become needle-thin traces whose frequencies can be read off accurately. This is the view for tuning, exact harmonic frequencies, and whether two lines are really one; noise and reverberation come out speckled, since they really are smeared across frequency.
For an overview use the regular spectrogram, to follow melody the melodic range spectrogram, to measure a clear tonal sound the peak frequency spectrogram. Keep two of them as layers in one pane and switch between them with the tabs at the top of the properties pane; the differences teach you what each view hides.
Exporting a spectrogram as a figure¶
Do not hand in a screenshot of the window. Switch on the vertical scale and the time ruler in the View menu, use File > Export Image, and crop to the plot if you must. The window size, the overlap and the colour scale are not drawn into the image, so they go in the caption, as the figure habits above say.
This video shows spectrogram settings in Sonic Visualiser on real recordings, including the trade-off between time and frequency detail: