int nameIdx=rowWithoutEmpty/notesPerScaleTotal;
Scale s=scaleBuffer.get(nameIdx);
if (s==null) {
//log.debug("nameIdx......: "+nameIdx);
if (scaleName.isMajor()) {
NoteName nn=Scale.MAJOR_SCALES_CLASSIC[nameIdx];
s=new Scale(nn, scaleName);
} else {
NoteName nn=Scale.MINOR_SCALES_CLASSIC[nameIdx];
s=new Scale(nn, scaleName);
}
scaleBuffer.put(nameIdx, s);
}
int noteIdx=rowWithoutEmpty%notesPerScaleTotal;