SAF
Loading...
Searching...
No Matches
powermap_internal.h File Reference

A sound-field visualiser, which utilises spherical harmonic signals as input; note this code is a remnant from the work conducted in [1]. More...

#include "powermap.h"
#include "saf.h"
#include "saf_externals.h"

Go to the source code of this file.

Data Structures

struct  powermap_codecPars
 Contains variables for scanning grids, and beamforming. More...
 
struct  powermap_data
 Main structure for powermap. More...
 

Macros

#define POWERMAP_FRAME_SIZE   ( 1024 )
 Framesize, in time-domain samples.
 
#define HOP_SIZE   ( 128 )
 STFT hop size.
 
#define HYBRID_BANDS   ( HOP_SIZE + 5 )
 Number of frequency bands.
 
#define TIME_SLOTS   ( POWERMAP_FRAME_SIZE / HOP_SIZE )
 Number of STFT timeslots.
 
#define NUM_DISP_SLOTS   ( 2 )
 Number of display slots.
 
#define MAX_COV_AVG_COEFF   ( 0.45f )
 Maximum supported covariance averaging coefficient

 

Functions

void powermap_setCodecStatus (void *const hPm, CODEC_STATUS newStatus)
 Sets codec status (see CODEC_STATUS enum)
 
void powermap_initAna (void *const hPm)
 Intialises the codec variables, based on current global/user parameters.
 
void powermap_initTFT (void *const hPm)
 Initialise the filterbank used by powermap.
 

Detailed Description

A sound-field visualiser, which utilises spherical harmonic signals as input; note this code is a remnant from the work conducted in [1].

See also
[1] McCormack, L., Delikaris-Manias, S. and Pulkki, V., 2017. Parametric acoustic camera for real-time sound capture, analysis and tracking. In Proceedings of the 20th International Conference on Digital Audio Effects (DAFx-17) (pp. 412-419)
Author
Leo McCormack
Date
26.04.2016
License
ISC

Definition in file powermap_internal.h.

Macro Definition Documentation

◆ HOP_SIZE

#define HOP_SIZE   ( 128 )

STFT hop size.

Definition at line 54 of file powermap_internal.h.

◆ HYBRID_BANDS

#define HYBRID_BANDS   ( HOP_SIZE + 5 )

Number of frequency bands.

Definition at line 55 of file powermap_internal.h.

◆ MAX_COV_AVG_COEFF

#define MAX_COV_AVG_COEFF   ( 0.45f )

Maximum supported covariance averaging coefficient

Definition at line 58 of file powermap_internal.h.

◆ NUM_DISP_SLOTS

#define NUM_DISP_SLOTS   ( 2 )

Number of display slots.

Definition at line 57 of file powermap_internal.h.

◆ POWERMAP_FRAME_SIZE

#define POWERMAP_FRAME_SIZE   ( 1024 )

Framesize, in time-domain samples.

Definition at line 51 of file powermap_internal.h.

◆ TIME_SLOTS

#define TIME_SLOTS   ( POWERMAP_FRAME_SIZE / HOP_SIZE )

Number of STFT timeslots.

Definition at line 56 of file powermap_internal.h.

Function Documentation

◆ powermap_initAna()

void powermap_initAna ( void *const hPm)

Intialises the codec variables, based on current global/user parameters.

Definition at line 46 of file powermap_internal.c.

◆ powermap_initTFT()

void powermap_initTFT ( void *const hPm)

Initialise the filterbank used by powermap.

Note
Call this function before powermap_initAna()

Definition at line 123 of file powermap_internal.c.

◆ powermap_setCodecStatus()

void powermap_setCodecStatus ( void *const hPm,
CODEC_STATUS newStatus )

Sets codec status (see CODEC_STATUS enum)

Definition at line 35 of file powermap_internal.c.