Women in Technology

Hear us Roar



Article:
  Java and Sound, Part 2
Subject:   other offsets
Date:   2008-11-27 23:33:53
From:   jesuson
this code is very useful for training the ear. I've made a note random generator and this code save in a midi file for playing and learning.


other offsets easier for musicall:


static final int[ ] offsets = { // add these amounts to the base value
// A B C D E F G
// -4, -2, 0, 1, 3, 5, 7
9, 11, 0, 2, 4, 5, 7
};


is esaier define a String scale from C to +C


lots of thanks for the example