Padding broken in fluid.bufloudness?

Before filing a proper bug report on git, I want to check here in case I’m overlooking something.

But it seems like @padding 0 in fluid.bufloudness~ isn’t working properly?

According to the reference:

No padding - The first analysis window starts at time 0, and the samples at either end will be tapered by the STFT windowing function.

This leads me to believe that it would still be more than one frame of analysis (for most settings).

In this example with @hopsize 64 and @numframes 1024 @windowsize 1024, having @padding 0 returns a single frame/channel of analysis.

Screenshot 2023-12-05 at 11.07.30 AM


----------begin_max5_patcher----------
725.3ocuVkrTiCCD8ryWgJcNwkV75bJ+GSMEkrsRvfijKaYH.E7sORsbBgYB
AGHvEszpU+zq2reZV.tPuU1iQ+B8aTPvSyBB.QNAAi6CvaDaKaD8fZ3hAiQq
vy8GoF1nGLMRCbHcTpWj4gVo2x3BgZMF8mwiaElxqqUqupSVZ7ZjjFRliRIt
QVztw82ntBvVWbyhb7dqzI1HMxtqjJQQC.E40mUsZ+qxI64YybCymHKsFnP1
cbVxdOVhmOYlxRntoXOgYGmpo+LTUduErcPYjagGJ9wFTiT8I7.Sg8TXhmdJ
1ywGigrOAC2H66Eqk+GEWPogLzBJILiyyh4vx3znbRDrjDyo7Xzh7vbXLkSR
nQvJVRTVhaURdLwcS6JddB2aCBIMIK2aNNg4tiEpTNmvcR4gjrLdDGVxyyXw
YvxTVFKwI0l5yhi4Nowgznbd9dmQSsRVpGT.C3mWU3IiLzb5gglbXJJ+chMo
Wrfy6j9spYntJrXXEqot2blsafq7wogzTNz0gcxzP92MUsjbkr6EzMZ05FYu
e9gPQ8pyr5aUiVXlTSnnX5AN.5oKDo3u4VM6i0M5gJksX8EzRKVkWKT8HJZ4
80pJ8880OJQTBKBszZzCjEQxSPKuV2B6Rrma5FjsRwsHBXnUttm8i2sUTUYc
Fti5kMVOBZGpnkEM5xacGZAsWOzUJ2ETNZ4G6ao4Hkl.eZfAgHd7wCJrKVPQ
XrtqZ7krUBEpnR84XYwmL4hb9ejaTn6gC1YLjhOf7.TPz5e94F345j+VOhOZ
ORtwey.85CtR1apUBSs8OedUGlWmi5ymJNt1KeHPt1s1bxcJo6pj.yI+.P+F
c1iL8qg7D.N8B3bYSgf7K.Ptr3OQ5hOKUz1dmrqeTY.CaE5MZvQmMG1Vq7aS
fscx6p2oOThfEc1hPisBbnCdW3sIQX+U01PlxVf6iZV1YgDp9UtthsBOQflD
ydd1egSuXmA
-----------end_max5_patcher-----------

if there is no padding, how do you expect it, with 1024 frames to analyse with a 1024 window, to hop anywhere?

frame 0= 0-1024
done :slight_smile:

There is this thread where we explain all of this with a patch. let me find it for you

ok here we go

I never pushed because I need help to review. Fancy helping? There are a few of these that need English language and general readability check (and SC coding but hey if it is live I can push the sc code soon after)

in this specific case, we need someone to do a lean learn page to host this patch and explain what it is for. taking examples from other lean learn pages.

Gotcha. I just use @padding 2 everywhere else (except for with sine-based things), so was confusing to see that.

Yeah this patch is super super useful. I guess the time for that kind of development has passed, but this would be really nice as an interactive thing on the learn page (ala the other interactive examples).

indeed it would. feel free to post a PR :wink: