From b7ff8915574a3d4e683c628e9b255de0721bbeaf Mon Sep 17 00:00:00 2001 From: Pedro Santos Date: Sat, 20 Jan 2024 16:51:41 +0100 Subject: [PATCH] refactor: rename method --- src/Domain/Barry.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Domain/Barry.ts b/src/Domain/Barry.ts index 3c628610..6d2ac46c 100644 --- a/src/Domain/Barry.ts +++ b/src/Domain/Barry.ts @@ -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; } @@ -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; @@ -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);