File: gen_chroma.h

package info (click to toggle)
audacity 3.2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 106,704 kB
  • sloc: cpp: 277,038; ansic: 73,623; lisp: 7,761; python: 3,305; sh: 2,715; perl: 821; xml: 275; makefile: 119
file content (11 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#define CHROMA_BIN_COUNT 12

bool is_midi_file(char *filename);

// index into matrix to extract chroma vector
#define AREF1(chrom_energy, row) \
    ((chrom_energy) + (row) * (CHROMA_BIN_COUNT + 1))

// index into matrix to extract element of chroma vector
#define AREF2(chrom_energy, row, column) AREF1(chrom_energy, row)[column]