Back to project page Music-Theory.
The source code is released under:
GNU General Public License
If you think the Android project Music-Theory listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.mt.theory; /*from w ww. jav a2 s.c o m*/ public enum Tone { A(0, -3), B(1, -1), C(2, 0), D(3, 2), E(4, 4), F(5, 5), G(6, 7); // Midi representation offset used for generating the actual midi value of a // tone + octave. Used for audio playback. private int midiValue; // Arbitrary relative offset for determining the number of visual steps // between two given notes on the musical staff private int staffValue; private Tone(int staffValue, int midiValue) { this.staffValue = staffValue; this.midiValue = midiValue; } public int getMidiPositionValue() { return midiValue; } public int getStaffPositionValue() { return staffValue; } }