@tonaljs/core
Version:
Music theory library
52 lines (51 loc) • 2.11 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// index.ts
var core_exports = {};
__export(core_exports, {
deprecate: () => deprecate,
fillStr: () => fillStr,
isNamed: () => isNamed
});
module.exports = __toCommonJS(core_exports);
var import_pitch = require("@tonaljs/pitch");
__reExport(core_exports, require("@tonaljs/pitch"), module.exports);
__reExport(core_exports, require("@tonaljs/pitch-distance"), module.exports);
__reExport(core_exports, require("@tonaljs/pitch-interval"), module.exports);
__reExport(core_exports, require("@tonaljs/pitch-note"), module.exports);
var fillStr = (s, n) => Array(Math.abs(n) + 1).join(s);
function deprecate(original, alternative, fn) {
return function(...args) {
console.warn(`${original} is deprecated. Use ${alternative}.`);
return fn.apply(this, args);
};
}
var isNamed = deprecate("isNamed", "isNamedPitch", import_pitch.isNamedPitch);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
deprecate,
fillStr,
isNamed,
...require("@tonaljs/pitch"),
...require("@tonaljs/pitch-distance"),
...require("@tonaljs/pitch-interval"),
...require("@tonaljs/pitch-note")
});
//# sourceMappingURL=index.js.map
;