@vouhardy/core 4.0.2-mozart.9

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.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Nick Thompson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @elemaudio/core
2
+
3
+ Elementary is a JavaScript/C++ library for building audio applications.
4
+
5
+ The `@elemaudio/core` package provides the standard library for composing
6
+ audio processing nodes, as well as the core graph reconciling and rendering utilities. Often this
7
+ will be used with one of the provided renderers, `@elemaudio/web-renderer` or `@elemaudio/offline-renderer`.
8
+
9
+ Please see the full documentation at [https://www.elementary.audio/](https://www.elementary.audio/)
10
+
11
+ ## Installation
12
+
13
+ ```js
14
+ npm install --save @elemaudio/core
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```js
20
+ import { el, Renderer } from '@elemaudio/core';
21
+
22
+
23
+ // Here we're using a default Renderer instance, so it's our responsibility to
24
+ // send the instruction batches to the underlying engine
25
+ let core = new Renderer((batch) => {
26
+ // Send the instruction batch somewhere: you can set up whatever message
27
+ // passing channel you want!
28
+ console.log(batch);
29
+ });
30
+
31
+ // Now we can write and render audio. How about some binaural beating
32
+ // with two detuned sine tones in the left and right channel:
33
+ core.render(el.cycle(440), el.cycle(441));
34
+ ```
35
+
36
+ ## License
37
+
38
+ MIT