Cracking Calf Analyser plugin

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
User avatar
peacefromtheruins
Established Member
Posts: 7
Joined: Thu Aug 10, 2023 6:12 pm
Has thanked: 13 times
Been thanked: 6 times
Contact:

Cracking Calf Analyser plugin

Post by peacefromtheruins »

Hello! I am trying to understand how Phase Correlation part in Calf Analyser is computed by looking into its source code. As far as I understood, there are two major files I should look at modules_tools.cpp and ctl_phasegraph.cpp. I have found that ctl_phasegraph.cpp refers to phase_buffer to compute point cloud (lines 171-180) and modules_tools.cpp sets phase_buffer based on some scaling of input ins (lines 479-502).
My question is, what kind of data does ins array contain (line 479)? My best guess is that it's just a waveform. Am I right?
Image

User avatar
sadko4u
Established Member
Posts: 1037
Joined: Mon Sep 28, 2015 9:03 pm
Has thanked: 7 times
Been thanked: 432 times

Re: Cracking Calf Analyser plugin

Post by sadko4u »

Just convert stereo signal to Mid/Side and draw dots with corresponding coordinates where mid is vertical axis and side is horizontal axis.
The formulas for Mid/Side conversion:
Mid = (Left + Right) / 2
Side = (Left - Right) / 2

LSP (Linux Studio Plugins) Developer and Maintainer.
Post Reply