public class Exercise
extends java.lang.Object
An exercise is a List of one or more "exercise units", an exercise unit is a List of one or more samples to be played at once.
In an exercise, the exercise units are played one after the other.
This enables the following exercise setups:
- A single note (for whatever reason): exerciseUnits = { { note } }
- A single chord: exerciseUnits = { { note1, note2, note3 } }
- A sequence of single notes or chords: exerciseUnits = { { note1, note2, note3 }, { note1, note2, note3 }, {etc} }
Modifier and Type | Field and Description |
---|---|
java.util.List<java.util.List<java.lang.Integer>> |
exerciseUnits
Contains the exercise units of this Exercise.
|
Constructor and Description |
---|
Exercise() |
public final java.util.List<java.util.List<java.lang.Integer>> exerciseUnits
The values relate to each other as follows:
If exerciseUnits = { { note1, note2, note3 }, { note4, note5, note6 } }
note1 is _always_ 0, this is basically the center of the entire exercise.
note2 and note3 are offsets from note1 and can only be positive.
note4 is the offset from note1(so zero) of the lowest note for this exercise unit.
note5 and note6 are offsets from note4 and can only be positive.
As an example a representation of an Exercise with 2 exercise units, a Major chord and then
the same Major chord played a whole tone lower:
exerciseUnits = { { 0, 4, 7}, {-2, 4, 7} }