Creates a new note. @param note Internal note id. #getId() always return this value. The value has to be in the interval [0; 24].
(int note)
| 135 | * value. The value has to be in the interval [0; 24]. |
| 136 | */ |
| 137 | public Note(int note) { |
| 138 | Preconditions.checkArgument(note >= 0 && note <= 24, "The note value has to be between 0 and 24."); |
| 139 | |
| 140 | this.note = (byte) note; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Creates a new note. |
nothing calls this directly
no test coverage detected