From b4b507b2d67ed9da42250e03619649c39e13c8f6 Mon Sep 17 00:00:00 2001 From: Miika Alonen Date: Wed, 3 Jan 2024 20:17:58 +0200 Subject: [PATCH] Added number of components to octa, hexa, enneacycles & octatowers. --- src/classes/ZPlayer.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/classes/ZPlayer.ts b/src/classes/ZPlayer.ts index 58340d4..459c253 100644 --- a/src/classes/ZPlayer.ts +++ b/src/classes/ZPlayer.ts @@ -338,18 +338,18 @@ export class Player extends AbstractEvent { return this; } - octaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 4) { - if (this.atTheBeginning()) this.ziffers.octaCycle(tonnetz, repeats); + octaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 4, components: number = 1) { + if (this.atTheBeginning()) this.ziffers.octaCycle(tonnetz, repeats, components); return this; } - hexaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3) { - if (this.atTheBeginning()) this.ziffers.hexaCycle(tonnetz, repeats); + hexaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3, components: number = 1) { + if (this.atTheBeginning()) this.ziffers.hexaCycle(tonnetz, repeats, components); return this; } - enneaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3) { - if (this.atTheBeginning()) this.ziffers.enneaCycle(tonnetz, repeats); + enneaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3, components: number = 1) { + if (this.atTheBeginning()) this.ziffers.enneaCycle(tonnetz, repeats, components); return this; } @@ -364,8 +364,8 @@ export class Player extends AbstractEvent { } powerTower = this.powerTowers; - octaTower(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3) { - if (this.atTheBeginning()) this.ziffers.octaTower(tonnetz, repeats); + octaTower(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3, components: number = 1) { + if (this.atTheBeginning()) this.ziffers.octaTower(tonnetz, repeats, components); return this; } octaTowers = this.octaTower;