Added number of components to octa, hexa, enneacycles & octatowers.

This commit is contained in:
2024-01-03 20:17:58 +02:00
parent 3ddcc38f87
commit b4b507b2d6

View File

@ -338,18 +338,18 @@ export class Player extends AbstractEvent {
return this; return this;
} }
octaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 4) { octaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 4, components: number = 1) {
if (this.atTheBeginning()) this.ziffers.octaCycle(tonnetz, repeats); if (this.atTheBeginning()) this.ziffers.octaCycle(tonnetz, repeats, components);
return this; return this;
} }
hexaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3) { hexaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3, components: number = 1) {
if (this.atTheBeginning()) this.ziffers.hexaCycle(tonnetz, repeats); if (this.atTheBeginning()) this.ziffers.hexaCycle(tonnetz, repeats, components);
return this; return this;
} }
enneaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3) { enneaCycle(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3, components: number = 1) {
if (this.atTheBeginning()) this.ziffers.enneaCycle(tonnetz, repeats); if (this.atTheBeginning()) this.ziffers.enneaCycle(tonnetz, repeats, components);
return this; return this;
} }
@ -364,8 +364,8 @@ export class Player extends AbstractEvent {
} }
powerTower = this.powerTowers; powerTower = this.powerTowers;
octaTower(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3) { octaTower(tonnetz: TonnetzSpaces = [3, 4, 5], repeats: number = 3, components: number = 1) {
if (this.atTheBeginning()) this.ziffers.octaTower(tonnetz, repeats); if (this.atTheBeginning()) this.ziffers.octaTower(tonnetz, repeats, components);
return this; return this;
} }
octaTowers = this.octaTower; octaTowers = this.octaTower;