GitXplorerGitXplorer
a

Chroma

public
7 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
8875d82434c3ceaaca87a18b7139cf9a998ca303

Update README.md

aadiyoss committed 8 years ago
Unverified
53298a1d621c852e0e6f420201c1c001f2aed96e

r

aadiyoss committed 8 years ago
Unverified
9387e9f78094a2f24254acbddd21f9f08e644fb1

update

aadiyoss committed 8 years ago
Unverified
cd7a835e56b76c35fdabf98cd7ab8f95214b71d6

s

aadiyoss committed 8 years ago
Unverified
ec212f2508bfaf5dbe42009f48634fd73e62333e

s

aadiyoss committed 8 years ago
Unverified
675a7395dbd3a5f046bc10172bfa0efba258057f

.

aadiyoss committed 8 years ago

README

The README file for this repository.

Chroma

A pitch and chroma implementation in written Java

The implementation is based on http://resources.mpi-inf.mpg.de/MIR/chromatoolbox/

Usage

After loading the .wav file using the Wave class, we can use the Chroma class to generate the chroma.

The signal2Chroma function gets as input a wave file and returns a 2D matrix which represents the chroma.

Usage Example

    String filename = "data/piano.wav"; // THE PATH TO THE WAV FILE
    Wave wave = new Wave(filename);
    Chroma chromaGenerator = new Chroma();
    double [][] chroma;
    chroma = chromaGenerator.signal2Chroma(wave.getNormalizedAmplitudes());
    DataAccess dal = new DataAccess();
    dal.writeMatrixToFile(chroma,"src/test/resources/data/chroma.txt");

Visualize

In order to visualize the chroma, you can use the python script inside the python folder.

cd into the python folder and type:

    python plot_matrix.py --chroma 'src/test/resources/data/chroma.txt'

chroma