Skip to content

Commit

Permalink
Merge web/offline v4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-thompson committed Dec 21, 2024
2 parents 69c8401 + e1f0a65 commit 60e7234
Show file tree
Hide file tree
Showing 30 changed files with 4,297 additions and 6,208 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`event propagation 1`] = `
Array [
Object {
[
{
"max": 0,
"min": 0,
"source": undefined,
},
Object {
{
"max": 0,
"min": 0,
"source": undefined,
},
Object {
{
"max": 0,
"min": 0,
"source": undefined,
},
Object {
{
"max": 0,
"min": 0,
"source": undefined,
Expand All @@ -26,23 +26,23 @@ Array [
`;

exports[`event propagation 2`] = `
Array [
Object {
[
{
"max": 1,
"min": 1,
"source": undefined,
},
Object {
{
"max": 1,
"min": 1,
"source": undefined,
},
Object {
{
"max": 1,
"min": 1,
"source": undefined,
},
Object {
{
"max": 1,
"min": 1,
"source": undefined,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`mc capture 1`] = `
Array [
[
Float32Array [
1,
1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,53 +38,53 @@ Float32Array [
`;

exports[`events 1`] = `
Array [
Object {
[
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
},
Object {
{
"max": 6,
"min": 6,
"source": undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1552,30 +1552,30 @@ Float32Array [
`;

exports[`idle feedback taps 1`] = `
Array [
Array [
Object {
[
[
{
"max": 0,
"min": 0,
"source": undefined,
},
],
Array [
Object {
[
{
"max": 1,
"min": 1,
"source": undefined,
},
],
Array [
Object {
[
{
"max": 2,
"min": 2,
"source": undefined,
},
],
Array [
Object {
[
{
"max": 3,
"min": 3,
"source": undefined,
Expand All @@ -1585,30 +1585,30 @@ Array [
`;

exports[`idle feedback taps 2`] = `
Array [
Array [
Object {
[
[
{
"max": 4,
"min": 4,
"source": undefined,
},
],
Array [
Object {
[
{
"max": 3,
"min": 3,
"source": undefined,
},
],
Array [
Object {
[
{
"max": 2,
"min": 2,
"source": undefined,
},
],
Array [
Object {
[
{
"max": 1,
"min": 1,
"source": undefined,
Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/delays.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/events.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/gc.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/maxhold.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
4 changes: 1 addition & 3 deletions js/packages/offline-renderer/__tests__/mc.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from "../index";
import OfflineRenderer from "..";
import { el } from "@elemaudio/core";

test("mc table", async function () {
Expand Down Expand Up @@ -360,7 +360,6 @@ test("mc.sample again", async function () {
);

core.process(inps, outs);
console.log(outs[0]);
expect(outs[0]).toMatchSnapshot();

await core.render(
Expand All @@ -386,6 +385,5 @@ test("mc.sample again", async function () {
core.process(inps, outs);
}

console.log(outs[0]);
expect(outs[0]).toMatchSnapshot();
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { createNode, el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/ref.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/sampleseq.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/sparseq.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/sparseq2.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/tap.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/time.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
2 changes: 1 addition & 1 deletion js/packages/offline-renderer/__tests__/vfs.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import OfflineRenderer from '../index';
import OfflineRenderer from '..';
import { el } from '@elemaudio/core';


Expand Down
70 changes: 70 additions & 0 deletions js/packages/offline-renderer/elementary-wasm.cjs

Large diffs are not rendered by default.

70 changes: 0 additions & 70 deletions js/packages/offline-renderer/elementary-wasm.js

This file was deleted.

2 changes: 1 addition & 1 deletion js/packages/offline-renderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@elemaudio/core';

// NEEDS WASM_ASYNC COMPILATION FLAG IN THE WASM BUILD SCRIPT
import Module from './elementary-wasm';
import Module from './elementary-wasm.cjs';

export default class OfflineRenderer extends EventEmitter {
private _module: any;
Expand Down
Loading

0 comments on commit 60e7234

Please sign in to comment.