Created
April 10, 2020 10:46
-
-
Save Sciss/02fc25822a77d590e503ce6e6ea04eb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val in = AudioFileIn("in") | |
//val in1 = in * Seq[GE](0.0.dbAmp, 4.5.dbAmp) | |
val in1 = in * Seq[GE](1.0, 1.75) | |
val rms = (in1.squared.sum / in.numFrames).sqrt | |
rms.out(0).ampDb.poll("RMS [dB] [0]") | |
rms.out(1).ampDb.poll("RMS [dB] [1]") | |
val loud0 = Loudness(in1, sampleRate = in.sampleRate, | |
size = 2048) | |
val loud = (loud0.sum / (in.numFrames / 2048)) | |
loud.out(0).poll("Avg. loudness [phon] [0]") | |
loud.out(1).poll("Avg. loudness [phon] [1]") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment