Skip to content

Commit

Permalink
refactor(scale_pattern): ♻️ use var instead of int for variable i…
Browse files Browse the repository at this point in the history
…nitialization

Signed-off-by: Albert Mañosa <26429103+albertms10@users.noreply.github.com>
  • Loading branch information
albertms10 committed May 14, 2024
1 parent df15bd3 commit eab343d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/scale/scale_pattern.dart
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ final class ScalePattern {
assert(sequence > 0, 'Sequence must be greater than 0');

final degrees = [
for (int i = 0; i < chromaticDivisions; i++)
for (var i = 0; i < chromaticDivisions; i++)
if (sequence.bitAt(i) != 0) PitchClass(i),
PitchClass.c,
];
final descendingDegrees = descendingSequence == null
? null
: [
PitchClass.c,
for (int i = chromaticDivisions - 1; i >= 0; i--)
for (var i = chromaticDivisions - 1; i >= 0; i--)
if (descendingSequence.bitAt(i) != 0) PitchClass(i),
];

Expand Down

0 comments on commit eab343d

Please sign in to comment.