Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Meaning of MCLT bins... (Read 5705 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Meaning of MCLT bins...

The MCLT produces "FFT-like" output, however, for a single frequency (with exactly N periods (N is integer) within window of size M), the MCLT produces a peak at two (2!) bins. What does this mean? I'm trying to use the MCLT for dynamic filtering of a signal, but then I'd need to estimate its spectrum, and to do that I need to know what the bins "mean".

TIA
/r

Meaning of MCLT bins...

Reply #1
Quote
The MCLT produces "FFT-like" output, however, for a single frequency (with exactly N periods (N is integer) within window of size M), the MCLT produces a peak at two (2!) bins. What does this mean? I'm trying to use the MCLT for dynamic filtering of a signal, but then I'd need to estimate its spectrum, and to do that I need to know what the bins "mean". 


I believe a "bin" in the loosest sense in terms of transformation is a statistical grouping of spectral coeffcients or a large number of them that would not be possible with a histogram.
budding I.T professional

Meaning of MCLT bins...

Reply #2
Quote
The MCLT produces "FFT-like" output, however, for a single frequency (with exactly N periods (N is integer) within window of size M), the MCLT produces a peak at two (2!) bins. What does this mean? I'm trying to use the MCLT for dynamic filtering of a signal, but then I'd need to estimate its spectrum, and to do that I need to know what the bins "mean".
[a href="index.php?act=findpost&pid=330096"][{POST_SNAPBACK}][/a]


"FFT-like output" refers to the fact that you get two real values for a frequency bin and can reconstruct amplitude and phase with it. The difference to the FFT is actually the following:
- the MCLT's bin's frequencies peak at N/2 periods, N is an odd integer.
- windowing is sort of mandatory in a MCLT. So even if you produce a test signal with N/2 periods in the M sample window (N an odd integer) you still get more than one non-zero amplitude -- There's a peak at the expected bin, though.

If you don't have a good reason for using this transform, just do an FFT instead and reuse your current window function. It'll be much easier to code with pretty much the same effect -- plus you seem to be more familar with an FFT's output
;-)

Sebi

Meaning of MCLT bins...

Reply #3
Quote
"FFT-like output" refers to the fact that you get two real values for a frequency bin and can reconstruct amplitude and phase with it. The difference to the FFT is actually the following:
- the MCLT's bin's frequencies peak at N/2 periods, N is an odd integer.
- windowing is sort of mandatory in a MCLT. So even if you produce a test signal with N/2 periods in the M sample window (N an odd integer) you still get more than one non-zero amplitude -- There's a peak at the expected bin, though.

If you don't have a good reason for using this transform, just do an FFT instead and reuse your current window function. It'll be much easier to code with pretty much the same effect -- plus you seem to be more familar with an FFT's output
;-)


Thanks Sebi, that explains a lot. The reason I want to use MCLT is precisely because it has no blocking artefacts, and I want to use it in time compression/expansion. However, to do that I need to change the phases so that when doing inverse MCLT, there'll be no artefacts. I'm not entirely convinced that this can be done though...

-r

Meaning of MCLT bins...

Reply #4
Quote
Thanks Sebi, that explains a lot. The reason I want to use MCLT is precisely because it has no blocking artefacts, and I want to use it in time compression/expansion. However, to do that I need to change the phases so that when doing inverse MCLT, there'll be no artefacts. I'm not entirely convinced that this can be done though...

-r
[a href="index.php?act=findpost&pid=335142"][{POST_SNAPBACK}][/a]


I'm 100% sure that in this case there's no advantage over the FFT. There isn't 'cause you only use the outcome of the MCLT temporarly and transform it back for storage. The FFT is as good (possibly as bad!) for your puspose.

The MCLT and the (complex valued) FFT (using a similar window) don't differ greatly. The only thing is the already mentioned shifted bin frequency peak.

The cool thing about the MCLT is though that you can kill two birds with one stone. Example: Lossy audio transform coder. Those usually utilize the MDCT. By applying the MCLT you can do 1) FFT-like spectral analysis and 2) get the transformed MDCT samples (to be coded) for free (real part of the MCLT).

BTW: I believe you're better off doing cutting/blending in the time domain anyway.

Sebi