MCPcopy Create free account
hub / github.com/audacity/audacity / c2even

Function c2even

lib-src/libsbsms/src/utils.h:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#define TWOPI 6.28318530717958647692528676655900576f
14
15inline void c2even(audio *eo, audio *even, int N)
16{
17 int Nover2 = N/2;
18 even[0][0] = eo[0][0];
19 even[0][1] = 0.0f;
20 for(int k=1;k<=Nover2;k++) {
21 int Nk = N-k;
22 even[k][0] = 0.5f*(eo[k][0] + eo[Nk][0]);
23 even[k][1] = 0.5f*(eo[k][1] - eo[Nk][1]);
24 }
25}
26
27inline void c2odd(audio *eo, audio *odd, int N)
28{

Callers 2

adjustMethod · 0.85
addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected