total-serialism
Advanced tools
Comparing version 1.6.2 to 1.6.3
@@ -12,4 +12,6 @@ { | ||
"locrian" : [0, 1, 1, 3, 3, 5, 6, 6, 8, 8, 10, 10], | ||
"gypsy" : [0, 0, 2, 3, 3, 6, 6, 7, 8, 8, 11, 11], | ||
"gypsy_spanish" : [0, 1, 1, 4, 4, 5, 5, 7, 8, 8, 11, 11], | ||
"hungarian" : [0, 0, 2, 3, 3, 6, 6, 7, 8, 8, 11, 11], | ||
"gypsy" : [0, 1, 1, 4, 4, 5, 5, 7, 8, 8, 11, 11], | ||
"major_neapolitan" : [0, 1, 1, 3, 3, 5, 7, 7, 8, 8, 11, 11], | ||
"minor_neapolitan" : [0, 1, 1, 3, 3, 5, 7, 7, 9, 9, 11, 11], | ||
"hexatonic" : [0, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10], | ||
@@ -16,0 +18,0 @@ "hexatonic_blues" : [0, 0, 2, 2, 4, 4, 6, 6, 7, 7, 10, 10], |
@@ -203,5 +203,4 @@ //============================================================================== | ||
// | ||
function pisano(mod, len=-1){ | ||
function pisano(mod=12, len=-1){ | ||
mod = (mod < 1)? 1 : mod; | ||
if (len < 1){ | ||
@@ -215,3 +214,3 @@ return pisanoPeriod(mod); | ||
function pisanoPeriod(mod, length=64){ | ||
function pisanoPeriod(mod=2, length=64){ | ||
// console.log('pisano', '@mod', mod, '@length', length); | ||
@@ -218,0 +217,0 @@ var seq = numBonacci(length, 0, 1, 1).map(x => x.mod(mod).toNumber()); |
{ | ||
"name": "total-serialism", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "A set of methods for the generation and transformation of number sequences useful in algorithmic composition", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,6 +32,6 @@ | ||
// testGen(); | ||
// testAlgo(); | ||
testAlgo(); | ||
// testRand(); | ||
// testMod(); | ||
testTranslate(); | ||
// testTranslate(); | ||
// testUtil(); | ||
@@ -120,2 +120,3 @@ | ||
pagebreak("Fibonacci"); | ||
test('Algo.fibonacci()'); | ||
test("Algo.fibonacci(12)"); | ||
@@ -125,2 +126,3 @@ test("Algo.fibonacci(2, 100)"); | ||
test('Algo.pisano()'); | ||
test("Algo.pisano(12)"); | ||
@@ -127,0 +129,0 @@ test("Algo.pisano(7)"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
688925
5939