Hear the whole recording: choosing what to measure

Eleutherodactylus Research Course · Fall 2026

Tom Devitt

2026-10-21

Welcome, visitors

A research course in the Freshman Research Initiative: six teams of four, mostly second-year students, measuring the calls of Mexican and Texan Eleutherodactylus frogs.

  • Each team: one shared R notebook and a folder of recordings
  • Each student: one AmphibiaWeb species account

Cliff chirping frog, Eleutherodactylus marnockii, in side view on a white background: mottled brown and olive back, large dark eye, long thin toes.

E. marnockii. Photo: Alex Wild

Today

0–15 min Mini-lesson: look at the whole recording, grade it
15–35 Work: overview and grade your files
35–46 Stand-ups, about 2 min per team
46–50 Exit ticket

Due today: AmphibiaWeb full draft

Due Fri Oct 23, 11:59 PM: mid-semester evaluations (peer/self on Canvas, course evaluation on Qualtrics)

By the end of class you can

  1. Find the usable stretch of a recording from a picture of the whole file, before you measure anything.
  2. Decide whether a recording is worth measuring and write down the reason, so a teammate would reach the same decision.

Is 30 seconds enough?

Most of our recordings run 2 to 10 minutes.

Predict

TJD 894 · E. jamesdixoni · the first 30 seconds

A spectrogram shows frequency (up) over time (across); darker means louder. kHz is kilohertz, thousands of cycles per second.

Eleutherodactylus jamesdixoni on a red-brown leaf: back marbled black and cream, legs banded black and yellow.

Spectrogram of the first 30 seconds of a recording, frequency 0 to 8 kHz. The first several seconds are dark with low-frequency noise; a few short call marks appear near 2.5 kHz.

Turn to a neighbor (1 min): how many calls could you measure here? What would you write about this frog?

The whole file

TJD 894 · all 10 minutes · one row per two minutes · orange box = what we looked at

The same recording drawn as five rows, two minutes each. Call marks near 2.5 kHz repeat through every row. The first 30 seconds, boxed in orange, are the noisiest part.

How to read an overview

What you see What it is
Marks repeating at one frequency Frog calls
A band across a whole row Insects or electrical hum
A dark streak, bottom to top A click or handling noise
A dark smear along the bottom Wind or traffic

Four steps, in this order

1. Look at the whole file

overview(file)

2. Pick the clearest stretch

Write down its start and end (seconds)

3. Read that stretch and zoom in

w <- read_any(file, 30, 60)
spectro(w, tlim = c(2, 3.5))

4. Listen to it

play_wave(w, 2, 3.5)

Plays in the Viewer pane

Is this recording worth measuring?

Grade it before you measure it.

What makes a call usable

Spectrogram and waveform of one E. humboldti call near 2.4 kHz, boxed and labeled 'the call'. The waveform rises clearly above a flat background.

The call, from the focal male (the frog with the TJD number). In the oscillogram (waveform), its edges stand clear of the noise.

The same call with a second, fainter band boxed at about 4.8 kHz, twice the call's frequency, labeled 'harmonic'.

A harmonic: a fainter copy at twice the frequency. Part of the call, not noise.

Spectrogram of an E. pallidus recording with two steady horizontal bands boxed: one near 6.5 kHz above the call, one near 4 kHz in the call's own band.

Insects: a steady band. Above the call, fine. In the call’s band, exclude that call.

Spectrogram of 12 seconds of the E. jamesdixoni recording with a dark smear below 1.4 kHz boxed and labeled 'traffic'. The waveform swells while it passes.

Traffic: a low smear. Below the call, but it raises the noise in the waveform.

Spectrogram of an E. albolabris recording with a loud call boxed as 'focal male' and a fainter call at a slightly higher pitch boxed as 'another frog'.

Another frog: fainter, at a different pitch. Measure only the focal male.

Twenty milliseconds of the loud E. pallidus call's waveform. The peaks run into dashed lines at the recorder's limit and are cut flat.

Clipped: too loud for the recorder, so the peaks are cut flat. Exclude it.

Three grades

Grade What you see What to do
good 10+ usable calls, a clean band Measure
usable 3–9 usable calls, or some noise near the band Measure; flag dominant frequency
exclude No readable edges, overlap, unclear focal male, or clipped Write down why

Grade it: file A

TJD 868 · E. maurus · 2.5 min

Overview of a 2.5-minute recording in three rows. Regular call marks near 3 kHz with little other noise.

1 good · 2 usable · 3 exclude

Grade it: file B

TJD 836 · E. albolabris · 47 s

Overview of a 47-second recording in one row. Call marks near 3 kHz sit inside a band of steady noise at about the same frequency, with more noise bands above.

1 good · 2 usable · 3 exclude

Grade it: file C

TJD 981 · E. gaigeae · 4 min

Overview of a 4-minute recording in four rows. Silence, then handling noise in the first 20 seconds; short regular clicks through the rest; a run of seven longer marks near 2 kHz at 80 to 92 seconds.

1 good · 2 usable · 3 exclude

Write the grade down

One row per file in your quality_<initials>.csv, excluded files too.

column what goes in it
grade good, usable, or exclude
n_usable_calls a rough count
best_stretch e.g. 120-180 (seconds)
reason one sentence, unless good
second_grader a teammate who agrees with an exclude

One bad call inside a good file

Test each call. A call that fails ends the run.

Your team’s window rule from Step 1: don’t skip over a bad call.

The overview lets you pick a run that won’t need to end early.

Work time

Teams 2–6, each member

  1. Paste play_wave() and overview() into Setup (Tuesday’s announcement)
  2. overview() each of your files
  3. Grade each one in quality_<initials>.csv

Team 1: keep labeling; play_clip() in Step 3

Stewards: check that Setup runs for everyone

Stand-ups

Two minutes per team: done, doing, stuck.

Team 1 → 6. Include how many of your files you graded, and one you’d exclude.

Exit ticket

Name one file you graded today, its grade, and the reason in one sentence.

Credits

Recordings: TJD field recordings of vouchered males. The sound pages on the site are adapted, with permission, from Araya-Salas 2025, Bioacoustic analysis in R. E. jamesdixoni photo: Tom Devitt.

Prepared with Claude Code (Claude Opus 5.5, Anthropic): figure script, play-along player, and first draft of the deck; Nov 3 species correction.