Socket
Socket
Sign inDemoInstall

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.6 to 1.0.7

2

package.json
{
"name": "harmonics",
"version": "1.0.6",
"version": "1.0.7",
"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.",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -58,3 +58,3 @@ const scaleMaps = require('../gen/scaleMaps.json');

const rootOctave = rootOctaveScale.slice(0, indexOfFirstSpace);
const root = sharpToFlat(rootOctave.replace(/\d/g, ''));
const root = sharpToFlat(rootOctave.replace(/\d/g, '').toUpperCase());
const octave = +rootOctave.replace(/\D/g, '');

@@ -61,0 +61,0 @@

@@ -87,2 +87,21 @@ const scalesAndChords = require('./scalesAndChords');

test('accepts lowercase note name', () => {
expect(scalesAndChords.scale('c5 phrygian')).toStrictEqual([
'C5',
'Db5',
'Eb5',
'F5',
'G5',
'Ab5',
'Bb5',
]);
expect(scalesAndChords.chord('c5 maj7')).toStrictEqual([
'C5',
'E5',
'G5',
'B5',
]);
});
test('returns the notes of a chord if available', () => {

@@ -89,0 +108,0 @@ expect(scalesAndChords.chord('C4 M')).toStrictEqual(['C4', 'E4', 'G4']);

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