hi, is there a better normalizing of an array that isn't just [normalize arrayname(
? because this seems to reduce the "volume" of the whole array, instead of, well, doing an audio normalize?
-
normalizing an audio array? better than normalize( ?
-
@esaruoho normalize finds the highest sample value, sets it to "1"... max, and scales the whole array to match. So it can increase or decrease the level of the whole file depending on whether your levels were too low or too high to start with.
The only way (same in other programs) to keep the level the same is to compress the audio....... although that will anyway increase the power under the curve, and therefore the perceived volume will increase........ see I05.compressor.pd in the Pd/doc/ folder.
I think the message should be..
[;
arrayname normalize(
and you can add after "normalize" the level you wish...... 0.5 or 1.5 or whatever.
David. -
hmm, so it seems like somewhere around here there's a way to take an array and compress it's contents (which is what i'm seemingly after). but to have an array and then compress it back to itself once with a button is what i'm hoping to accomplish.
is this the right segment of the tutorial, @whale-av ?
-
@esaruoho said:
hmm, so it seems like somewhere around here there's a way to take an array and compress it's contents (which is what i'm seemingly after). but to have an array and then compress it back to itself once with a button is what i'm hoping to accomplish.
Wait, so you want to do something to the array, and then do something else to get back to the original data...? In that case, maybe it isn't necessary to do anything to the data? Normalizing is fine, but why un-normalize later? Compression is even harder to undo.
32 bit floats have the same dynamic range as 24 bit integers (maybe 6 dB more). That should be enough.
hjh
-
@ddw_music said:
@esaruoho said:
hmm, so it seems like somewhere around here there's a way to take an array and compress it's contents (which is what i'm seemingly after). but to have an array and then compress it back to itself once with a button is what i'm hoping to accomplish.
Wait, so you want to do something to the array, and then do something else to get back to the original data...?
not exactly.
what i was hoping to do was this:
record audio into array 1.
press "proper compress and normalize" to the array 1 -> and there it is.what i was kinda convolutedly trying to say was "array1 content to array2 where it's processed, and then copied back to array1"..
-
@whale-av said:
see I05.compressor.pd in the Pd/doc/ folder.
I think that example compresses the spectral power variation across the FFT bands, not the dynamics. (As you increase squelch you approach white noise, which is why he uses it to fill-in the carrier in I06.timbre.stamp) Maybe a better example for @esaruoho is in the [slop~] help file, under the compander-limiter subpatch.