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

@elemaudio/core

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elemaudio/core - npm Package Compare versions

Comparing version 3.2.1 to 4.0.0-alpha.2

59

./dist/index.js

@@ -20,2 +20,14 @@ var __defProp = Object.defineProperty;

var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
var __export = (target, all) => {

@@ -918,2 +930,3 @@ for (var name in all)

props,
outputChannel: 0,
children: childrenList

@@ -943,2 +956,3 @@ };

props: Object.assign({}, node.props),
outputChannel: node.outputChannel,
generation: {

@@ -970,3 +984,3 @@ contents: 0

forEach(node.children, function(child) {
delegate.appendChild(node.hash, child.hash);
delegate.appendChild(node.hash, child.hash, child.outputChannel);
});

@@ -1063,2 +1077,9 @@ nodeMap.set(node.hash, shallowCopy(node));

}
function unpack(node, numChannels) {
return Array.from({ length: numChannels }, (v, i) => {
return __spreadProps(__spreadValues({}, node), {
outputChannel: i
});
});
}

@@ -1673,2 +1694,22 @@ // lib/core.ts

// lib/mc.ts
var mc_exports = {};
__export(mc_exports, {
sampleseq: () => sampleseq3,
sampleseq2: () => sampleseq22,
table: () => table2
});
function sampleseq3(props, time2) {
let _a = props, { channels } = _a, other = __objRest(_a, ["channels"]);
return unpack(createNode("mc.sampleseq", other, [resolve(time2)]), channels);
}
function sampleseq22(props, time2) {
let _a = props, { channels } = _a, other = __objRest(_a, ["channels"]);
return unpack(createNode("mc.sampleseq2", other, [resolve(time2)]), channels);
}
function table2(props, t) {
let _a = props, { channels } = _a, other = __objRest(_a, ["channels"]);
return unpack(createNode("mc.table", other, [resolve(t)]), channels);
}
// lib/oscillators.ts

@@ -1745,2 +1786,3 @@ var oscillators_exports = {};

var stdlib = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, core_exports), dynamics_exports), envelopes_exports), filters_exports), math_exports), oscillators_exports), signals_exports), {
mc: mc_exports,
"const": constant,

@@ -1770,7 +1812,7 @@ "in": identity

createNode: [],
deleteNode: [],
appendChild: [],
setProperty: [],
activateRoots: [],
commitUpdates: []
commitUpdates: [],
deleteNode: []
};

@@ -1792,5 +1834,5 @@ }

}
appendChild(parentHash, childHash) {
appendChild(parentHash, childHash, childOutputChannel) {
this.edgesAdded++;
this.batch.appendChild.push([InstructionTypes.APPEND_CHILD, parentHash, childHash]);
this.batch.appendChild.push([InstructionTypes.APPEND_CHILD, parentHash, childHash, childOutputChannel]);
}

@@ -1814,7 +1856,7 @@ setProperty(hash, key, value) {

...this.batch.createNode,
...this.batch.deleteNode,
...this.batch.appendChild,
...this.batch.setProperty,
...this.batch.activateRoots,
...this.batch.commitUpdates
...this.batch.commitUpdates,
...this.batch.deleteNode
];

@@ -1878,3 +1920,4 @@ }

stdlib,
stepGarbageCollector2 as stepGarbageCollector
stepGarbageCollector2 as stepGarbageCollector,
unpack
};

@@ -19,2 +19,3 @@ import EventEmitter from 'eventemitter3';

readonly props: props;
readonly outputChannel: number;
readonly children: list<t>;

@@ -28,2 +29,3 @@ };

declare function createNode(kind: string, props: any, children: Array<ElemNode>): t;
declare function unpack(node: t, numChannels: number): Array<t>;

@@ -50,2 +52,41 @@ declare abstract class RenderDelegate_t {

declare function sampleseq(props: {
key?: string;
seq?: Array<{
value: number;
time: number;
}>;
duration: number;
path: string;
channels: number;
}, time: ElemNode): Array<t>;
declare function sampleseq2(props: {
key?: string;
seq?: Array<{
value: number;
time: number;
}>;
duration: number;
path: string;
stretch?: number;
shift?: number;
channels: number;
}, time: ElemNode): Array<t>;
declare function table(props: {
key?: string;
path: string;
channels: number;
}, t: ElemNode): Array<t>;
declare const mc_sampleseq: typeof sampleseq;
declare const mc_sampleseq2: typeof sampleseq2;
declare const mc_table: typeof table;
declare namespace mc {
export {
mc_sampleseq as sampleseq,
mc_sampleseq2 as sampleseq2,
mc_table as table,
};
}
declare type EventTypes = {

@@ -84,2 +125,3 @@ capture: (data: {

declare const stdlib: {
mc: typeof mc;
const: typeof constant;

@@ -526,3 +568,3 @@ in: typeof identity;

deleteNode(hash: any): void;
appendChild(parentHash: any, childHash: any): void;
appendChild(parentHash: any, childHash: any, childOutputChannel: any): void;
setProperty(hash: any, key: any, value: any): void;

@@ -548,2 +590,2 @@ activateRoots(roots: any): void;

export { Delegate, ElemNode, export_default as EventEmitter, t as NodeRepr_t, Renderer, createNode, stdlib as el, isNode, renderWithDelegate, resolve, stdlib, stepGarbageCollector };
export { Delegate, ElemNode, export_default as EventEmitter, t as NodeRepr_t, Renderer, createNode, stdlib as el, isNode, renderWithDelegate, resolve, stdlib, stepGarbageCollector, unpack };

@@ -20,2 +20,14 @@ var __defProp = Object.defineProperty;

var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
var __export = (target, all) => {

@@ -918,2 +930,3 @@ for (var name in all)

props,
outputChannel: 0,
children: childrenList

@@ -943,2 +956,3 @@ };

props: Object.assign({}, node.props),
outputChannel: node.outputChannel,
generation: {

@@ -970,3 +984,3 @@ contents: 0

forEach(node.children, function(child) {
delegate.appendChild(node.hash, child.hash);
delegate.appendChild(node.hash, child.hash, child.outputChannel);
});

@@ -1063,2 +1077,9 @@ nodeMap.set(node.hash, shallowCopy(node));

}
function unpack(node, numChannels) {
return Array.from({ length: numChannels }, (v, i) => {
return __spreadProps(__spreadValues({}, node), {
outputChannel: i
});
});
}

@@ -1673,2 +1694,22 @@ // lib/core.ts

// lib/mc.ts
var mc_exports = {};
__export(mc_exports, {
sampleseq: () => sampleseq3,
sampleseq2: () => sampleseq22,
table: () => table2
});
function sampleseq3(props, time2) {
let _a = props, { channels } = _a, other = __objRest(_a, ["channels"]);
return unpack(createNode("mc.sampleseq", other, [resolve(time2)]), channels);
}
function sampleseq22(props, time2) {
let _a = props, { channels } = _a, other = __objRest(_a, ["channels"]);
return unpack(createNode("mc.sampleseq2", other, [resolve(time2)]), channels);
}
function table2(props, t) {
let _a = props, { channels } = _a, other = __objRest(_a, ["channels"]);
return unpack(createNode("mc.table", other, [resolve(t)]), channels);
}
// lib/oscillators.ts

@@ -1745,2 +1786,3 @@ var oscillators_exports = {};

var stdlib = __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, core_exports), dynamics_exports), envelopes_exports), filters_exports), math_exports), oscillators_exports), signals_exports), {
mc: mc_exports,
"const": constant,

@@ -1770,7 +1812,7 @@ "in": identity

createNode: [],
deleteNode: [],
appendChild: [],
setProperty: [],
activateRoots: [],
commitUpdates: []
commitUpdates: [],
deleteNode: []
};

@@ -1792,5 +1834,5 @@ }

}
appendChild(parentHash, childHash) {
appendChild(parentHash, childHash, childOutputChannel) {
this.edgesAdded++;
this.batch.appendChild.push([InstructionTypes.APPEND_CHILD, parentHash, childHash]);
this.batch.appendChild.push([InstructionTypes.APPEND_CHILD, parentHash, childHash, childOutputChannel]);
}

@@ -1814,7 +1856,7 @@ setProperty(hash, key, value) {

...this.batch.createNode,
...this.batch.deleteNode,
...this.batch.appendChild,
...this.batch.setProperty,
...this.batch.activateRoots,
...this.batch.commitUpdates
...this.batch.commitUpdates,
...this.batch.deleteNode
];

@@ -1878,3 +1920,4 @@ }

stdlib,
stepGarbageCollector2 as stepGarbageCollector
stepGarbageCollector2 as stepGarbageCollector,
unpack
};

4

package.json
{
"name": "@elemaudio/core",
"version": "3.2.1",
"version": "4.0.0-alpha.2",
"type": "module",

@@ -60,3 +60,3 @@ "description": "Official Elementary Audio core package",

},
"gitHead": "7a27fcc897ae3e6da6b319a2378f08fa3159592e"
"gitHead": "1b88511dadced10f77e867533f62a417bbc14b34"
}

Sorry, the diff of this file is not supported yet

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