public static class MetricTree.QualifiedRational extends Tuple2<Rational,Boolean> implements Comparable<Tuple2<Rational,Boolean>>
Constructor and Description |
---|
QualifiedRational(Rational r,
Boolean b) |
Modifier and Type | Method and Description |
---|---|
static List<MetricTree.QualifiedRational> |
allPause(List<Rational> duras) |
static List<MetricTree.QualifiedRational> |
allSounds(List<Rational> duras) |
int |
compareTo(Tuple2<Rational,Boolean> other) |
static List<MetricTree.QualifiedRational> |
fold(List<Rational> duras,
List<Boolean> pauses) |
static List<MetricTree.QualifiedRational> |
fold(Rational[] duras,
Boolean[] pauses) |
static List<Rational> |
get_durations(List<MetricTree.QualifiedRational> qrats)
Projection to first component of products.
|
static List<Boolean> |
get_soundsNotPauses(List<MetricTree.QualifiedRational> qrats)
Projection to second component of products.
|
String |
toString() |
MetricTree.QualifiedRational |
withRational(Rational duration) |
public int compareTo(Tuple2<Rational,Boolean> other)
compareTo
in interface Comparable<Tuple2<Rational,Boolean>>
public MetricTree.QualifiedRational withRational(Rational duration)
public static List<Rational> get_durations(List<MetricTree.QualifiedRational> qrats)
public static List<Boolean> get_soundsNotPauses(List<MetricTree.QualifiedRational> qrats)
public static List<MetricTree.QualifiedRational> allSounds(List<Rational> duras)
public static List<MetricTree.QualifiedRational> allPause(List<Rational> duras)
public static List<MetricTree.QualifiedRational> fold(Rational[] duras, Boolean[] pauses)