Here you can find the source of shiftChroma(float[] chroma, int step)
public static float[] shiftChroma(float[] chroma, int step)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] shiftChroma(float[] chroma, int step) { float[] result = new float[12]; if (step < 0) { step = 12 - step;/*from ww w. j a va 2s .c o m*/ } for (int i = 0; i < 12; i++) { result[i] = chroma[(i + step) % 12]; } return result; } }