tone 14.9.7 → 14.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,10 @@ export function isNumber(arg: any): arg is number {
32
32
  * Test if the given argument is an object literal (i.e. `{}`);
33
33
  */
34
34
  export function isObject(arg: any): arg is object {
35
- return Object.prototype.toString.call(arg) === "[object Object]" && arg.constructor === Object;
35
+ return (
36
+ Object.prototype.toString.call(arg) === "[object Object]" &&
37
+ arg.constructor === Object
38
+ );
36
39
  }
37
40
 
38
41
  /**
@@ -61,5 +64,5 @@ export function isString(arg: any): arg is string {
61
64
  * e.g. "C4"
62
65
  */
63
66
  export function isNote(arg: any): arg is Note {
64
- return isString(arg) && /^([a-g](?:b|#|x|bb)?)(-[4321]|[0-9]|10|11)$/.test(arg);
67
+ return isString(arg) && /^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(arg);
65
68
  }
package/Tone/version.ts CHANGED
@@ -1 +1 @@
1
- export const version: string = "14.9.7";
1
+ export const version: string = "14.9.8";