Skip to content

Commit

Permalink
refactor: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromsantos committed Jan 20, 2024
1 parent 2df2a21 commit b7ff891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Domain/Barry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class BarryHarrisLine {

pivotArpeggioUpFrom(degree: ScaleDegree) {
const arpeggio = this.scale.thirdsTo(degree).slice(0, 4);
this.createArpeggioLine(arpeggio, 0, 1);
this.createPivotArpeggioLine(arpeggio, 0, 1);
return this;
}

Expand All @@ -73,7 +73,7 @@ export class BarryHarrisLine {

if (from) {
const arpeggio = this.scale.thirdsTo(from).slice(0, 4);
this.createArpeggioLine(arpeggio, 1, 2);
this.createPivotArpeggioLine(arpeggio, 1, 2);
}

return this;
Expand Down Expand Up @@ -157,7 +157,7 @@ export class BarryHarrisLine {
return this.line;
}

private createArpeggioLine(line: Pitch[], lowCut: number, highCut: number) {
private createPivotArpeggioLine(line: Pitch[], lowCut: number, highCut: number) {
const arpeggioRoot = new PitchLine(line.slice(lowCut, highCut), PitchLineDirection.Descending);
this.line.add(arpeggioRoot);
const pivot = new PitchLine(line.slice(highCut), PitchLineDirection.Ascending);
Expand Down

0 comments on commit b7ff891

Please sign in to comment.