Skip to content

AudioWizard.GetWaveformData structure #19

@regorxxx

Description

@regorxxx

I'm failing to understand the current structure. For example lets take the first 8 points of data for 2ps/sec:

[
-60, -60, -49, 0.00372314453125,
 -21, -21, -10, 0.323944091796875,
 -20, -20, -9, 0.3531494140625,
 -20, -20, -8, -0.3931884765625,
 -17, -17, -6, -0.47894287109375,
 -18, -18, -6, 0.49261474609375,
 -18, -18, -7, -0.432281494140625,
 -23, -23, -11, -0.292633056640625
]

RMS -60, -21...
RMS_Peak -60 -21...
Peak -49 - 21...
Waveform_Peak 0.00372314453125, 0.323944091796875, 0.3531494140625, , ...

In ffmpeg is ensured that all metrics have the same sign for any point. (below 8 points)
[[0,-61.8,-3076.5,-48.6],[0.25,-58.7,-3076.5,-50.4],[0.5,-20.6,-3076.5,-9.8],[0.75,-20,-3076.5,-11.1],[1,-19.1,-3076.5,-9.4],[1.25,-20.6,-3076.5,-9],[1.5,-20.1,-3076.5,-8.1],[1.75,-19.5,-3076.5,-8.2]]

In this case I swap the sign of every second point for drawing.

In audiowaveform you have both negative and positive subpoints for every point. (below 4 points)
Array [0,0,-23,20,-31,31,-42,47]

i.e. the output is actually meant to be drawed as is.

But in your case the waveform data can be anything (?) Can you give me some insight about what it currently represent?

I presume it's just the current peak at the point sampled, and it can fall at the negative or positive side of the waveform (?)

If that's the case that makes really hard to draw anything (except a single line for a waveform), lets say at 2 point per second, there is zero security I will actually get a negative and a positive point. And interpolation is a nope for this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions