File: gen_chroma.h

package info (click to toggle)
audacity 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 44,240 kB
  • sloc: cpp: 182,841; ansic: 120,375; sh: 26,421; lisp: 7,495; makefile: 1,606; python: 240; xml: 104; perl: 31
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]