GitXplorerGitXplorer
a

Chroma

public
7 stars
2 forks
0 issues

Commits

List of commits on branch master.
Verified
a9262d750c047e2f782ded7f8ab30ea80dcd716a

Merge pull request #1 from agazzarini/feature/maven_project_layout

aadiyoss committed 6 years ago
Unverified
5920574e704227ea8ac372f70a54622ac419a860

Apache Maven project layout

aagazzarini committed 6 years ago
Unverified
6f020b50c43a50a1bb6b6e246b2c99a2541459e1

Update README.md

aadiyoss committed 8 years ago
Unverified
af77e7084f129018889e7ce955ac6ad552a5e944

.

aadiyoss committed 8 years ago
Unverified
ea8d8a2dbac15b3e74e350a66662adc1ba9e8881

.

aadiyoss committed 8 years ago
Unverified
39a3732c2510b8e2b44ec03104f673973bb8835c

Update README.md

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