Tag Archives: weather

Singing in the rain

Not me! The birds.

Last year I decided I ought to buy myself an audio recorder, and so I extravagantly did: a Tascam DR-07X, if you’re interested in that sort of thing.

This of course led to downloading the popular audio editor Audacity, and to experimenting with it to see what I could do.

The rain

Here’s the result of such an experiment. A couple of weeks ago we had some nice heavy rain, which was making a nice satisfying noise, so I stood at the back door for a while trying to get a nice satisfying recording of it. What I got was a mixture of rain (wanted), birds singing as though oblivious to the rain (wanted), button presses and wind dropouts (not wanted), and a motorbike (definitely not wanted).

So, here are two versions of the recording.

In the first, all I’ve done is increase the sound level.

In the second, I’ve done my best to remove the extraneous noises while keeping the birdsong intact and not affecting the sound of the rain more than necessary. I think I did better with the first two of these than the third. Have a listen, and see what you think.

I’m particularly pleased with the successful removal of the motorbike.

(The download button in the player will give you a 22 MB CD-quality file of whichever track is currently playing. If you’d prefer something smaller, here are MP3 versions of the original and edited track. They’re 4.1 MB each.)

The editing

The technique I used was as follows:

  • First split the track into two: a high-frequency one containing the birds and the upper end of the rain, and a low-frequency one containing the motorbike and the lower end of the rain.
  • Where the motorbike appears, carefully listen to the rain, and identify a nearby section that sounds similar but has no motorbike.
  • In the lower track only, completely delete the section with the motorbike. Replace it with audio from the motorbikeless section, with a short crossfade at either end.
  • Recombine the two tracks into one.
  • Apply equalisation, to restore the correct frequency balance.

The result is a track in which the birdsong has been left (almost) untouched, the motorbike is gone, but the upper and lower frequencies in the rain are sometimes from entirely different raindrops.

Making the split

To split the sound, I used a high-pass filter on one copy of the original track and a low-pass filter on another, both with the same cutoff frequency. But what frequency?

I could see from a spectrogram view of the original that most of the birdsong was above 2000 Hz, and most of the motorbike sound was below 500 Hz. The sharpness of the filter cut-off is specified in dB per octave, and these pitches are two octaves apart. So I made the split midway, at 1000 Hz: an octave below the birdsong and an octave above the motorbike. This should mean the birdsong and motorbike were equally well removed by the two filters.

(To imagine 1000 Hz, imagine the Greenwich Time Signal pips: that’s their frequency.)

On listening to check, I couldn’t hear any birdsong at all in the lower track and I at least couldn’t identify any motorbike sound in the upper one, as intended.

Would it work?

I was most unsure whether “fake rain” made up of high frequencies from one lot of rain and low frequencies from another would still sound realistic. In particular, would the process affect the stereo spread, built up from the locations of thousands of individual drops? And might the result sound like an unnatural mixture of some muffled drops and some overly bright ones?

In the event, I think it did work, but I can’t quite decide whether the stereo of the original is more convincing.


The equalisation step is needed because the splitting and recombining process is imperfect. Frequencies close to the split end up louder than they should be, resulting in an obviously “boxy” sound. I did this part by ear, and the reconstituted rain definitely doesn’t sound the same as the original rain. However, I reached a point where I preferred the sound to that of the original, so I stopped there rather than try to get a perfect match.

Really I think I should do the maths to work out the theoretically correct equalisation, and use that as a starting point.

On the other hand, the rain still sounds heavy and very wet, which it was, and the birds still sound determined to keep singing, which they were. And I hope you’ll enjoy listening.

More from my phone camera

A couple of nights ago I played around some more with the camera in my new phone, taking photos out of the back bedroom window. The weather was rather grey, showing promise of a good sunset but not producing one. It did however produce some nice clouds, which in my book are much better to look at than the featureless blue sky described by many as “lovely weather”. (Apparently, weather is “good” when it saps your energy and makes you permanently uncomfortable as a continuous stream of sweat runs down into your eyes, soaks into your clothes, and makes your hands sticky; the weather in which your nose runs non-stop, the air becomes steadily less and less breatheable and everyone gets skin cancer from the direct sun . . .)

Yes, I’m glad that the hot weather of the beginning of last week has now subsided. I don’t like the summer.

I initially decided against posting these photos, but people on Twitter seemed to like them so I’ve changed my mind.

Unfortunately the silhouetted skyline in the first one isn’t as sharp as it might be. Maybe I forgot to set the focus to infinity, or maybe the camera moved. I like the sky though:

Clouds over Manchester

Clouds over Manchester

The second one is a lot sharper:

A more in-focus skyline

A more in-focus skyline.

To produce these photos, I first found an exposure setting which showed as much detail as possible in the clouds, and took the photos. Then I used the phone’s built-in picture editor to adjust the brightness and contrast, so as to make the skyline (nearly) black and highlight the cloud detail. The next step was to adjust the setting the phone calls “colour balance”, which I think is actually the saturation level (it has grey at one end of the scale, and unnaturally strong colours at the other). I wasn’t aiming for a realistic picture: I wanted to show the shape of the clouds as dramatically as possible, and to show the viewer why I think they’re worth looking at. Finally I did some cropping to get the composition how I wanted it. (On the phone for one of them, and in Windows Paint for the other.)

For reference, this is how the weather actually looked. It’s the original version of the first photo above, before I adjusted the contrast and colour.

How the weather really was: unedited photo

Original photo, before enhancing the contrast and colour

Don’t complain about the “bad” weather. Enjoy it, and point your camera at it!