ReplayGain Archives - Airtime Pro Get your online radio started with Airtime Pro, the internet radio broadcasting software with intelligent automation and state-of-the-art station management tools. Mon, 06 Dec 2021 11:20:45 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://www.airtime.pro/wp-content/uploads/2022/01/favicon.png ReplayGain Archives - Airtime Pro 32 32 Turn up the volume in Airtime https://www.airtime.pro/turn-up-the-volume-in-airtime/ https://www.airtime.pro/turn-up-the-volume-in-airtime/#respond Tue, 07 Apr 2015 09:10:28 +0000 http://airtime-dev.sourcefabric.org/?p=2648 Sometimes I get asked if Sourcefabric’s Ardour. If there’s no headroom between any of the peaks and 0dBFS, and there’s a dense lump of data in the middle of the waveform, the CD has probably been hard limited. This is … Read More

The post Turn up the volume in Airtime appeared first on Airtime Pro.

]]>
Sometimes I get asked if Sourcefabric’s Airtime broadcast automation system includes a compressor or a limiter in the output stage. I’m glad to report that it does not. It might seem like a purely technical matter, but this issue really has a major impact on the way that people experience music on the radio. Airtime does not need to compress or limit music, because contemporary digital music is already suffering from greatly reduced dynamic range.

Back in the vinyl days, there was a maximum loudness a recording could reach before the stylus would jump off the record, and so a ‘mastering engineer’ was employed to supervise the production of the master discs used in the vinyl stamping machine. As CDs became the norm, mastering engineers found ways to make the average sound level higher. They figured out how to do this without breaching 0dBFS, the new maximum level imposed by digital audio systems; exceeding this limit produces clipping, a distortion which is unpleasant and fatiguing to the human ear.

While the peak level of an audio CD cannot go any higher than 0dBFS, the average level has crept up steadily over the last 25 years. This is generally assumed to be for commercial reasons, because in a direct comparison, the average human will prefer a louder track to a quieter one. There’s been a kind of arms race to make the loudest, brightest recordings possible, and when records are played on the radio, even more processing is applied at the broadcast end of the chain. Flip between a pop radio station and a classical station on FM, and you’ll hear a massive difference in average level. This is because of what is known as dynamic range. The classical recording has a high dynamic range, which means there are some very quiet parts – like a vocal solo – and some extremely loud parts, when all the instruments in an orchestra are going at full blast. By contrast, most contemporary music records are made to be loud all the time, which means that their dynamic range is relatively small. Instead of quiet, loud, quiet, it’s loud, really loud, extremely loud, using every trick in the digital audio book.

There’s a growing consensus (among people who care) that some of these techniques are being over-applied in the pursuit of subjective loudness, which equates to a high average level. You can examine the waveforms of commercially mastered CDs by ripping them to WAV format and opening them in Ardour. If there’s no headroom between any of the peaks and 0dBFS, and there’s a dense lump of data in the middle of the waveform, the CD has probably been hard limited. This is the crudest way to raise average level – just slice off all the peaks, and boost what’s left. It’s not all that different to clipping done on purpose. You can say goodbye to musical subtlety, and hello to a headache in about five minutes time.

In the extreme and rather ridiculous juxtaposition which follows, we’re going to look at Peter Lawson’s recording of Erik Satie’s Three Gymnopédies for EMI (CD-CFP 4329). This was recorded on analogue tape at the Wigmore Hall in London during 1979, and remastered for CD at the famous Abbey Road studios in 1989. Then we’re going to load up Snoop Dogg’s track Doggfather, from the 1996 album Tha Doggfather, on Death Row/Interscope (IND-90038), right beneath it.

Three Gymnopédies is at the top, Doggfather is underneath.

Three Gymnopédies is at the top, Doggfather is underneath.

Firstly, we can see that the Satie recording has a great deal of headroom. It could be one of the quietest recordings ever released commercially on CD. The neophyte might ask, “why didn’t the engineer at Abbey Road simply run this track through a ‘normaliser’ plugin to boost the level?” The reason is that professional mastering engineers don’t rely on a plugin to calculate and apply the maximum possible gain to each track. They listen to the material first, then adjust track levels by ear until all the tracks play well together. The engineer in this case may have decided that Three Gymnopédies, being a very softly played solo piano piece, deserved to be quiet. There are louder tracks coming later on the CD, and so making the opening track quiet preserves the natural dynamic range of the instrument. There is no law which says that dynamics processing has to be applied at all. But stick this CD on the average car stereo in rush-hour traffic, and many people will wonder if the speakers are broken.

By contrast, the Snoop Dogg recording is not only peaking at 0dBFS on every kick drum hit and hand clap, but the average level is many, many times higher than the Satie recording. True, you can hear the song clearly, even when the volume control on your amplifier is turned down low, but the hand claps sound very harsh, and any dynamics present in the studio mix have been squashed flat. What we’re aiming for is a happy medium between these two extremes, with enough processing to enable a mix to be heard, but without damaging the qualities that the musicians were able to hear during the recording.

Of course, some records deserve to be played loud. But by over-using limiting techniques, the record label has made that decision for you. Excessive processing during the CD mastering stage may be one reason why many critical listeners still prefer the ‘warm’ and ‘natural’ sound of vinyl, even though the vinyl mastering process can produce artifacts of its own. Consider that a complex musical waveform is the product of many superimposed sound waves, of various shapes and frequencies. It usually ends up looking something like a sine wave, but with lots of smaller ripples in it. Using hard limiting, all the musical information over 0dBFS is lost, and only a flat-topped waveform remains. It’s a bit like having the complete works of Shakespeare, except with every fourth word replaced by ‘blah’:

Shall I compare blah to a summer’s blah?

Thou art more blah and more temperate:

Blah winds do shake blah darling buds of Blah,

And summer’s lease blah all too short blah date

You’d get pretty sick of hearing the word ‘blah’ by the end of a three-hour play. Your ear feels the same way about square waves.

Fortunately, there are now technical solutions. Airtime can be configured to support ReplayGain, which means that over-compressed and over-limited tracks do not sound louder at playout time than tracks with better dynamic range. This technique cannot reverse sonic damage caused at the mastering stage, but it removes the incentive for record labels to insist on louder mastering. As to the question of how loud is loud enough, the European Broadcasting Union now provides Loudness Recommendation EBU R128 as guidance for broadcasters. Fons Adriaensen has released an EBU R128 meter for GNU/Linux which also has a command-line file analyser. So let’s back off that compressor, give the limiter a break, and turn the volume knob clockwise!

The post Turn up the volume in Airtime appeared first on Airtime Pro.

]]>
https://www.airtime.pro/turn-up-the-volume-in-airtime/feed/ 0
How Silan and ReplayGain make Airtime broadcasts sound better https://www.airtime.pro/how-silan-and-replaygain-made-airtime-broadcasts-sound-better/ https://www.airtime.pro/how-silan-and-replaygain-made-airtime-broadcasts-sound-better/#respond Thu, 19 Mar 2015 09:13:47 +0000 http://airtime-dev.sourcefabric.org/?p=2517 In radio, it is natural to want our broadcasts and web streams to sound as polished as possible. We also want to avoid wasting contributor time on routine production tasks that could otherwise be spent creating great content. There are two … Read More

The post How Silan and ReplayGain make Airtime broadcasts sound better appeared first on Airtime Pro.

]]>
In radio, it is natural to want our broadcasts and web streams to sound as polished as possible. We also want to avoid wasting contributor time on routine production tasks that could otherwise be spent creating great content. There are two features in Airtime which will bring us closer to that goal – automatic silence detection and adjustable ReplayGain correction.

Silence detection

A frequently requested feature, silence detection in Airtime uses the program Silan, written by Robin Gareus, to analyse an audio file when it is imported into the Airtime library. Any new file imported by Airtime’s media monitor is checked for leading and trailing silence, as well as average level. Non-destructive cue in and cue out points and an amplitude correction factor are saved in Airtime’s database automatically. When you create a smart block, a playlist, or drop the file into a running show, those cue in and cue out points and correction factor will be used in the show playout. The original length of the file is displayed for your reference, so you can see how much silence has been trimmed. Airtime uses many digits of precision to avoid cumulative timing problems, but the display of time is rounded to tenths of a second for practical purposes. The amplitude correction for each file can be viewed by enabling the ReplayGain column in the Airtime library. In ‘ Library’ , click on the ‘Show/Hide columns’ button and click the ReplayGain field.

Should you wish to adjust cue points manually, you can still do that in Airtime, but the tedious task of trimming and levelling each and every file in the Airtime library is no longer necessary, removing an entire step from the workflow. Perhaps you are broadcasting a news report that has been uploaded in a hurry, and the journalist has left a few seconds of silence at the end of the edit. Or perhaps you are streaming a music track ripped from a CD where the mastering engineer has left silence at the beginning of the piece for dramatic effect. Files from different producers no longer have to be manually adjusted to match average levels.

ReplayGain

The ReplayGain standard (originally proposed by David Robinson) was already implemented in Airtime, but with a fixed output level of -14dBFS average. For broadcast purposes, we might need to match average level with louder or quieter live streams from other systems. With this requirement in mind, a ReplayGain Modifier control has been added to the Stream Settings page. You’ll find it by going to ‘System’ and heading to ‘Streams’. It’s available at the top left part of the page. This slider enables output to be adjusted up to 10dB either way from ReplayGain’s reference level. Of course, going too loud is likely to result in clipping, given that an average level of -4dBFS is louder than a typical death metal album – but automated output level is now under the broadcaster’s control.

Arguably, given the relative cost and limited reach of mobile data services, streaming media is less likely to be listened to in noisy environments like a car, or on the street. Therefore it may not be necessary to compress and limit Internet streams as much as FM broadcasts have been processed in the past. The demand for upmarket headphones that Dr. Dre has introduced to the wider world might engender a new appreciation of dynamic range.

Thanks to the combination of Silan and ReplayGain, Airtime playout sounds tighter, levels are balanced with plenty of headroom, and the risk of dead air is greatly reduced. We’d like to say a big thank-you to both Robin and David for their contribution to web-enabled and collaborative open source broadcasting!

Want to start broadcasting live right now? A managed hosting account can save you time and effort. You could be on the air today with Airtime Pro.

*** Photo by Gavin Whitner

The post How Silan and ReplayGain make Airtime broadcasts sound better appeared first on Airtime Pro.

]]>
https://www.airtime.pro/how-silan-and-replaygain-made-airtime-broadcasts-sound-better/feed/ 0