Skip to content

Commit

Permalink
Merge v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-thompson committed Oct 16, 2023
2 parents 15b948c + 7f915af commit 00af34a
Show file tree
Hide file tree
Showing 87 changed files with 5,814 additions and 9,147 deletions.
2 changes: 1 addition & 1 deletion cli/Benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <choc_javascript.h>
#include <choc_javascript_QuickJS.h>

#include "Runtime.h"
#include "Benchmark.h"


const auto* kConsoleShimScript = R"script(
Expand Down
3 changes: 2 additions & 1 deletion cli/Benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#include <functional>

#include "Runtime.h"
#include <elem/Runtime.h>


/*
* Your main can call this function to run a complete benchmark test for either
Expand Down
2 changes: 0 additions & 2 deletions cli/Realtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include <choc_javascript.h>
#include <choc_javascript_QuickJS.h>

#include <Runtime.h>

#include "Realtime.h"

#define MINIAUDIO_IMPLEMENTATION
Expand Down
2 changes: 1 addition & 1 deletion cli/Realtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <functional>

#include "Runtime.h"
#include <elem/Runtime.h>

/*
* Your main can call this function to execute the realtime command line loop. Before audio playback
Expand Down
2 changes: 1 addition & 1 deletion cli/examples/00_HelloSine.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {Renderer, el} from '@elemaudio/core';
// The signal we're generating here is a simple sine tone via `el.cycle` at 440Hz in the left
// channel and 441Hz in the right, creating some interesting binaural beating. Each sine tone is
// then multiplied by 0.3 to apply some simple gain before going to the output. That's it!
let core = new Renderer(44100, (batch) => {
let core = new Renderer((batch) => {
__postNativeMessage__(JSON.stringify(batch));
});

Expand Down
2 changes: 1 addition & 1 deletion cli/examples/01_FMArp.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Renderer, el} from '@elemaudio/core';

// This example builds upon the HelloSine example to implement some very basic FM synthesis,
// and builds in some simple pattern sequencing to create an interesting arp.
let core = new Renderer(44100, (batch) => {
let core = new Renderer((batch) => {
__postNativeMessage__(JSON.stringify(batch));
});

Expand Down
2 changes: 1 addition & 1 deletion cli/examples/02_StrangerThings.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Renderer, el} from '@elemaudio/core';

// Much like the FM Arp example, this example demonstrates another case of building a simple
// synth arp to recreate the classic Stranger Things synth line.
let core = new Renderer(44100, (batch) => {
let core = new Renderer((batch) => {
__postNativeMessage__(JSON.stringify(batch));
});

Expand Down
3 changes: 1 addition & 2 deletions js/packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import { el, Renderer } from '@elemaudio/core';

// Here we're using a default Renderer instance, so it's our responsibility to
// send the instruction batches to the underlying engine
let sampleRate = 44100;
let core = new Renderer(sampleRate, (batch) => {
let core = new Renderer((batch) => {
// Send the instruction batch somewhere: you can set up whatever message
// passing channel you want!
console.log(batch);
Expand Down
Loading

0 comments on commit 00af34a

Please sign in to comment.