Skip to content

Commit

Permalink
updated total-serialism and added sort()
Browse files Browse the repository at this point in the history
  • Loading branch information
tmhglnd committed Nov 3, 2020
1 parent 2ab6a8a commit ffed222
Show file tree
Hide file tree
Showing 5,177 changed files with 120,502 additions and 11,510 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
19 changes: 19 additions & 0 deletions mercury_ide/code/mercury.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const Gen = require('total-serialism').Generative;
const Algo = require('total-serialism').Algorithmic;
const Mod = require('total-serialism').Transform;
const Rand = require('total-serialism').Stochastic;
const Stat = require('total-serialism').Statistic;
const TL = require('total-serialism').Translate;
const Util = require('total-serialism').Utility;
const Dict = require('./dictionary.js');
Expand Down Expand Up @@ -264,6 +265,10 @@ const handlers = {
'flip' : (...v) => {
return Mod.invert(...v);
},
'filter' : (...v) => {
let args = [...v];
return Mod.filter(v[0], v.slice(1, v.length));
},
'inv' : (...v) => {
return Mod.invert(...v);
},
Expand Down Expand Up @@ -311,6 +316,10 @@ const handlers = {
'retrograde' : (...v) => {
return Mod.reverse(...v);
},
// sort an array in ascending or descending order
'sort' : (...v) => {
return Stat.sort(...v);
},
// spray values on the non-zero places of another array
'spray' : (...v) => {
return Mod.spray(...v);
Expand Down Expand Up @@ -340,6 +349,16 @@ const handlers = {
'dtoms' : (...v) => {
return TL.divisionToMs(...v);
},
//
// Statistic Methods
//
// IMPLEMENTATION NEEDED
// maximum
// minimum
// mean
// median
// mode

//
// Utility Methods
//
Expand Down
24 changes: 12 additions & 12 deletions mercury_ide/code/node_modules/@tonaljs/chord-detect/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions mercury_ide/code/node_modules/@tonaljs/chord-type/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions mercury_ide/code/node_modules/@tonaljs/chord/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions mercury_ide/code/node_modules/@tonaljs/progression/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions mercury_ide/code/node_modules/@tonaljs/range/dist/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions mercury_ide/code/node_modules/@tonaljs/range/dist/index.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions mercury_ide/code/node_modules/@tonaljs/range/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions mercury_ide/code/node_modules/@tonaljs/range/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ffed222

Please sign in to comment.