Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harmonics

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harmonics - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

webpack.config.js

2

main.js

@@ -1,1 +0,1 @@

(()=>{"use strict";var a={413:a=>{a.exports=JSON.parse('{"5th":"1000000100000","M7#5sus4":"1000010000000","7#5sus4":"1000010000000","sus4":"1000010100000","M7sus4":"1000010100010","7sus4":"1000010100100","7no5":"1000100000100","aug":"1000100000000","M7b6":"1000100010010","maj7#5":"1000100000000","7#5":"1000100000000","7b13":"1000100000100","M":"1000100100000","maj7":"1000100100010","7th":"1000100100100","6th":"1000100101000","7add6":"1000100100100","7b6":"1000100110100","Mb5":"1000101000000","M7b5":"1000101000010","7b5":"1000101000100","maj#4":"1000100100010","7#11":"1000100100100","M6#11":"1000100101000","7#11b13":"1000100100100","m#5":"1001000000000","mb6M7":"1001000010010","m7#5":"1001000010100","m":"1001000100000","m/ma7":"1001000100010","m7":"1001000100100","m6":"1001000101000","mMaj7b6":"1001000110010","dim":"1001001000000","oM7":"1001001000010","m7b5":"1001001000100","dim7":"1001001000000","o7M7":"1001001001010","4th":"1000010000100","madd4":"1001010100000","m7add11":"1001000100100","+add#9":"1000100000000","7#5#9":"1000100000000","7#9":"1000100100100","13#9":"1000100100100","7#9b13":"1000100100100","maj7#9#11":"1000100100010","7#9#11":"1000100100100","13#9#11":"1000100100100","7#9#11b13":"1000100100100","sus2":"1010000100000","M9#5sus4":"1000010000000","sus24":"1010010100000","M9sus4":"1000010100010","11th":"1000000100100","9sus4":"1000010100100","13sus4":"1000010100100","9no5":"1000100000100","13no5":"1000100000100","M#5add9":"1000100000000","maj9#5":"1000100000000","9#5":"1000100000000","9b13":"1000100000100","Madd9":"1000100100000","maj9":"1000100100010","9th":"1000100100100","6/9":"1000100101000","maj13":"1000100100010","M7add13":"1000100101010","13th":"1000100100100","M9b5":"1000101000010","9b5":"1000101000100","13b5":"1000101001100","9#5#11":"1000100000000","maj9#11":"1000100100010","9#11":"1000100100100","69#11":"1000100101000","M13#11":"1000100100010","13#11":"1000100100100","9#11b13":"1000100100100","m9#5":"1001000010100","madd9":"1001000100000","mM9":"1001000100010","m9":"1001000100100","m69":"1001000101000","m13":"1001000100100","mMaj9b6":"1001000110010","m9b5":"1011001000100","m11A":"1001000000000","m11":"1001000100100","b9sus":"1000010100100","11b9":"1000000100100","7sus4b9b13":"1000010100100","alt7":"1000100000100","7#5b9":"1000100000000","Maddb9":"1000100100000","M7b9":"1000100100010","7b9":"1000100100100","13b9":"1000100100100","7b9b13":"1000100100100","7#5b9#11":"1000100000000","7b9#11":"1000100100100","13b9#11":"1000100100100","7b9b13#11":"1000100100100","mb6b9":"1001000010000","7b9#9":"1000100100100"}')},722:a=>{a.exports=JSON.parse('{"major pentatonic":"1010100101000","ionian pentatonic":"1000110100010","mixolydian pentatonic":"1000110100100","ritusen":"1010010101000","egyptian":"1010010100100","neopolitan major pentatonic":"1000111000100","vietnamese 1":"1001010110000","pelog":"1101000110000","kumoijoshi":"1100010110000","hirajoshi":"1011000110000","iwato":"1100011000100","in-sen":"1100010100100","lydian pentatonic":"1000100000000","malkos raga":"1001010010100","locrian pentatonic":"1001011000100","minor pentatonic":"1001010100100","minor six pentatonic":"1001010101000","flat three pentatonic":"1011000101000","flat six pentatonic":"1010100110000","scriabin":"1100100101000","whole tone pentatonic":"1000101010100","lydian #5P pentatonic":"1000100000000","lydian dominant pentatonic":"1000100000000","minor #7M pentatonic":"1001010100010","super locrian pentatonic":"1001000000000","minor hexatonic":"1011010100010","augmented":"1000000000000","major blues":"1011100101000","piongio":"1010010101100","prometheus neopolitan":"1100100000000","prometheus":"1010100000000","mystery #1":"1100101010100","six tone symmetric":"1100110000000","whole tone":"1010100000000","messiaen\'s mode #5":"1100010000000","minor blues":"1001011100100","locrian major":"1010111010100","double harmonic lydian":"1100100000000","harmonic minor":"1011010110010","altered":"1101000000000","locrian #2":"1011011010100","mixolydian b6":"1010110110100","lydian dominant":"1010100000000","lydian":"1010100000000","lydian augmented":"1010100000000","dorian b2":"1101010101100","melodic minor":"1011010101010","locrian":"1101011010100","ultralocrian":"1101000000000","locrian 6":"1101011001100","augmented heptatonic":"1000000000000","romanian minor":"1011001101100","dorian #4":"1011000000000","lydian diminished":"1011000000000","phrygian":"1101010110100","leading whole tone":"1010100000000","lydian minor":"1010100000000","phrygian dominant":"1100110110100","balinese":"1101010110010","neopolitan major":"1101010101010","aeolian":"1011010110100","harmonic major":"1010110110010","double harmonic major":"1100110110010","dorian":"1011010101100","hungarian minor":"1011000000000","hungarian major":"1000000000000","oriental":"1100111001100","flamenco":"1101100000000","todi raga":"1101000000000","mixolydian":"1010110101100","persian":"1100111010010","major":"1010110101010","enigmatic":"1100101010110","major augmented":"1010110000000","lydian #9":"1000000000000","messiaen\'s mode #4":"1110010000000","purvi raga":"1100110000000","spanish heptatonic":"1101110110100","bebop":"1010110101110","bebop minor":"1011110101100","bebop major":"1010110100000","bebop locrian":"1101011110100","minor bebop":"1011010110110","diminished":"1011011011010","ichikosucho":"1010111101010","minor six diminished":"1011010111010","half-whole diminished":"1101100000000","kafi raga":"1001110101110","messiaen\'s mode #6":"1010110000000","composite blues":"1011111101100","messiaen\'s mode #3":"1011100000000","messiaen\'s mode #7":"1111010000000","chromatic":"1111111111110","ionian":"1010110101010","minor":"1011010110100"}')}},n={};function i(o){var e=n[o];if(void 0!==e)return e.exports;var m=n[o]={exports:{}};return a[o](m,m.exports,i),m.exports}i(722),i(413)})();
(()=>{"use strict";var n={413:n=>{n.exports=JSON.parse('{"5th":"1000000100000","M7#5sus4":"1000010000000","7#5sus4":"1000010000000","sus4":"1000010100000","M7sus4":"1000010100010","7sus4":"1000010100100","7no5":"1000100000100","aug":"1000100000000","M7b6":"1000100010010","maj7#5":"1000100000000","7#5":"1000100000000","7b13":"1000100000100","M":"1000100100000","maj7":"1000100100010","7th":"1000100100100","6th":"1000100101000","7add6":"1000100100100","7b6":"1000100110100","Mb5":"1000101000000","M7b5":"1000101000010","7b5":"1000101000100","maj#4":"1000100100010","7#11":"1000100100100","M6#11":"1000100101000","7#11b13":"1000100100100","m#5":"1001000000000","mb6M7":"1001000010010","m7#5":"1001000010100","m":"1001000100000","m/ma7":"1001000100010","m7":"1001000100100","m6":"1001000101000","mMaj7b6":"1001000110010","dim":"1001001000000","oM7":"1001001000010","m7b5":"1001001000100","dim7":"1001001000000","o7M7":"1001001001010","4th":"1000010000100","madd4":"1001010100000","m7add11":"1001000100100","+add#9":"1000100000000","7#5#9":"1000100000000","7#9":"1000100100100","13#9":"1000100100100","7#9b13":"1000100100100","maj7#9#11":"1000100100010","7#9#11":"1000100100100","13#9#11":"1000100100100","7#9#11b13":"1000100100100","sus2":"1010000100000","M9#5sus4":"1000010000000","sus24":"1010010100000","M9sus4":"1000010100010","11th":"1000000100100","9sus4":"1000010100100","13sus4":"1000010100100","9no5":"1000100000100","13no5":"1000100000100","M#5add9":"1000100000000","maj9#5":"1000100000000","9#5":"1000100000000","9b13":"1000100000100","Madd9":"1000100100000","maj9":"1000100100010","9th":"1000100100100","6/9":"1000100101000","maj13":"1000100100010","M7add13":"1000100101010","13th":"1000100100100","M9b5":"1000101000010","9b5":"1000101000100","13b5":"1000101001100","9#5#11":"1000100000000","maj9#11":"1000100100010","9#11":"1000100100100","69#11":"1000100101000","M13#11":"1000100100010","13#11":"1000100100100","9#11b13":"1000100100100","m9#5":"1001000010100","madd9":"1001000100000","mM9":"1001000100010","m9":"1001000100100","m69":"1001000101000","m13":"1001000100100","mMaj9b6":"1001000110010","m9b5":"1011001000100","m11A":"1001000000000","m11":"1001000100100","b9sus":"1000010100100","11b9":"1000000100100","7sus4b9b13":"1000010100100","alt7":"1000100000100","7#5b9":"1000100000000","Maddb9":"1000100100000","M7b9":"1000100100010","7b9":"1000100100100","13b9":"1000100100100","7b9b13":"1000100100100","7#5b9#11":"1000100000000","7b9#11":"1000100100100","13b9#11":"1000100100100","7b9b13#11":"1000100100100","mb6b9":"1001000010000","7b9#9":"1000100100100"}')},722:n=>{n.exports=JSON.parse('{"major pentatonic":"1010100101000","ionian pentatonic":"1000110100010","mixolydian pentatonic":"1000110100100","ritusen":"1010010101000","egyptian":"1010010100100","neopolitan major pentatonic":"1000111000100","vietnamese 1":"1001010110000","pelog":"1101000110000","kumoijoshi":"1100010110000","hirajoshi":"1011000110000","iwato":"1100011000100","in-sen":"1100010100100","lydian pentatonic":"1000100000000","malkos raga":"1001010010100","locrian pentatonic":"1001011000100","minor pentatonic":"1001010100100","minor six pentatonic":"1001010101000","flat three pentatonic":"1011000101000","flat six pentatonic":"1010100110000","scriabin":"1100100101000","whole tone pentatonic":"1000101010100","lydian #5P pentatonic":"1000100000000","lydian dominant pentatonic":"1000100000000","minor #7M pentatonic":"1001010100010","super locrian pentatonic":"1001000000000","minor hexatonic":"1011010100010","augmented":"1000000000000","major blues":"1011100101000","piongio":"1010010101100","prometheus neopolitan":"1100100000000","prometheus":"1010100000000","mystery #1":"1100101010100","six tone symmetric":"1100110000000","whole tone":"1010100000000","messiaen\'s mode #5":"1100010000000","minor blues":"1001011100100","locrian major":"1010111010100","double harmonic lydian":"1100100000000","harmonic minor":"1011010110010","altered":"1101000000000","locrian #2":"1011011010100","mixolydian b6":"1010110110100","lydian dominant":"1010100000000","lydian":"1010100000000","lydian augmented":"1010100000000","dorian b2":"1101010101100","melodic minor":"1011010101010","locrian":"1101011010100","ultralocrian":"1101000000000","locrian 6":"1101011001100","augmented heptatonic":"1000000000000","romanian minor":"1011001101100","dorian #4":"1011000000000","lydian diminished":"1011000000000","phrygian":"1101010110100","leading whole tone":"1010100000000","lydian minor":"1010100000000","phrygian dominant":"1100110110100","balinese":"1101010110010","neopolitan major":"1101010101010","aeolian":"1011010110100","harmonic major":"1010110110010","double harmonic major":"1100110110010","dorian":"1011010101100","hungarian minor":"1011000000000","hungarian major":"1000000000000","oriental":"1100111001100","flamenco":"1101100000000","todi raga":"1101000000000","mixolydian":"1010110101100","persian":"1100111010010","major":"1010110101010","enigmatic":"1100101010110","major augmented":"1010110000000","lydian #9":"1000000000000","messiaen\'s mode #4":"1110010000000","purvi raga":"1100110000000","spanish heptatonic":"1101110110100","bebop":"1010110101110","bebop minor":"1011110101100","bebop major":"1010110100000","bebop locrian":"1101011110100","minor bebop":"1011010110110","diminished":"1011011011010","ichikosucho":"1010111101010","minor six diminished":"1011010111010","half-whole diminished":"1101100000000","kafi raga":"1001110101110","messiaen\'s mode #6":"1010110000000","composite blues":"1011111101100","messiaen\'s mode #3":"1011100000000","messiaen\'s mode #7":"1111010000000","chromatic":"1111111111110","ionian":"1010110101010","minor":"1011010110100"}')}},e={};function o(a){var i=e[a];if(void 0!==i)return i.exports;var t=e[a]={exports:{}};return n[a](t,t.exports,o),t.exports}o.d=(n,e)=>{for(var a in e)o.o(e,a)&&!o.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:e[a]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var a={};(()=>{o.r(a),o.d(a,{chord:()=>m,chords:()=>r,inlineChord:()=>t,scale:()=>c,scales:()=>s});var n=o(722),e=o(413),i=function(o){var a=o.scale,i=o.chord,t=a||i,r=a?"scale":"chord";if("string"!=typeof t)throw"".concat(t," is not a valid input for ").concat(r);var s=t.indexOf(" "),m=t.slice(s+1),c=t.slice(0,s),d=c.replace(/\d/g,""),l=+c.replace(/\D/g,"");if(isNaN(l))throw"".concat(c[0]," does not have a valid octave");if(!n[m]&&!e[m])throw"".concat(t," is not a valid ").concat(r);for(var b=function(n,e){var o=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"].map((function(n){return n+e})),a=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"].map((function(n){return n+(e+1)})),i=o.concat(a);return i.slice(i.indexOf(n+e))}(d,l),u=[],p=0,h=0,f=a?n:e;p<f[m].length;)"1"===f[m][p]&&u.push(b[h]),p++,h++;return u},t=function(n){var e,o,a="b9sus",t=4;return n.includes(a)?(o=a,e=n.slice(0,n.indexOf(a))):(e=n[0],o=n.slice(1),"b"!==n[1]&&"#"!==n[1]||(e+=n[1],o=n.slice(2))),n.includes("_")&&(t=+n.split("_")[1],o=o.slice(0,o.indexOf("_"))),i({chord:e+t+" "+o})},r=function(){return Object.keys(e)},s=function(){return Object.keys(n)},m=function(n){return i({chord:n})},c=function(n){return i({scale:n})}})();var i=exports;for(var t in a)i[t]=a[t];a.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
{
"name": "harmonics",
"version": "1.0.3",
"version": "1.0.4",
"description": "Tools and utilities for a generic representation of scales, chords, progressions etc. for use in music software, music related web & mobile apps, VST/VCV plugins and Max for Live devices.",

@@ -9,3 +9,3 @@ "main": "main.js",

"test:watch": "jest --watch",
"build": "webpack -o ./ --entry=./src/index.js"
"build": "webpack"
},

@@ -38,2 +38,3 @@ "repository": {

"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"jest": "^26.6.3",

@@ -40,0 +41,0 @@ "webpack": "^5.35.0",

@@ -1,3 +0,3 @@

import { chords, scales, chord, scale } from "./scalesAndChords";
import { chords, scales, chord, inlineChord, scale } from './scalesAndChords';
export { chords, scales, chord, scale };
export { chords, scales, chord, inlineChord, scale };
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc