@grame/faustwasm 0.0.34 → 0.0.35
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/README.md
CHANGED
|
@@ -200,6 +200,14 @@ process = ba.pulsen(1, 10000) : pm.djembe(60, 0.3, 0.4, 1);
|
|
|
200
200
|
})();
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
+
### Projects examples
|
|
204
|
+
|
|
205
|
+
The package is used in the following projects:
|
|
206
|
+
|
|
207
|
+
- [faust-web-component](https://github.com/grame-cncm/faust-web-component), a package providing two web components for embedding interactive Faust snippets in web pages.
|
|
208
|
+
- [Faust Playground](https://github.com/grame-cncm/faustplayground), a Web platform designed to enable children to learn basic audio programming in a simple and graphic way.
|
|
209
|
+
- [Faust Editor](https://github.com/grame-cncm/fausteditor), an online editor used to edit, compile and run Faust code from any recent Web Browser with WebAssembly support.
|
|
210
|
+
|
|
203
211
|
## Documentation
|
|
204
212
|
|
|
205
213
|
- [Organisation of the API](#org)
|
|
@@ -249,7 +257,7 @@ This level takes a Faust Wasm instance to build an audio node. [AudioWorklet](ht
|
|
|
249
257
|
|
|
250
258
|
Note that ScriptProcessor is marked as [deprecated](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode) but it's the only audio architecture available in older Safari versions. Both monophonic (generators, effects...) or polyphonic (instruments) nodes can be created. It is described in `FaustScriptProcessorNode.ts` file.
|
|
251
259
|
|
|
252
|
-
|
|
260
|
+
Created audio nodes have a `start` and stop` methods. When started (which is done by default), they are processing audio buffers. You may have to explicitly stop them to save CPU (and start then again when needed), if for instance several nodes are created at init time before actual use.
|
|
253
261
|
|
|
254
262
|
An offline processor to render a DSP in a non real-time context and get the computed frames is available. It is described in `FaustOfflineProcessor.ts`. It will automatically use the `start` and `stop` methods internally to activate actual rendering in its `plot` method.
|
|
255
263
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Oscillator440",
|
|
3
|
+
"filename": "mono",
|
|
4
|
+
"version": "2.63.0",
|
|
5
|
+
"compile_options": "-lang wasm-i -ct 1 -es 1 -mcd 16 -single -ftz 0",
|
|
6
|
+
"library_list": [
|
|
7
|
+
"/usr/share/faust/stdfaust.lib",
|
|
8
|
+
"/usr/share/faust/oscillators.lib",
|
|
9
|
+
"/usr/share/faust/platform.lib",
|
|
10
|
+
"/usr/share/faust/maths.lib",
|
|
11
|
+
"/usr/share/faust/basics.lib"
|
|
12
|
+
],
|
|
13
|
+
"include_pathnames": [
|
|
14
|
+
"/share/faust",
|
|
15
|
+
"/usr/local/share/faust",
|
|
16
|
+
"/usr/share/faust",
|
|
17
|
+
"."
|
|
18
|
+
],
|
|
19
|
+
"size": 262184,
|
|
20
|
+
"code": "1KAe",
|
|
21
|
+
"inputs": 0,
|
|
22
|
+
"outputs": 1,
|
|
23
|
+
"meta": [
|
|
24
|
+
{
|
|
25
|
+
"author": "Fr0stbyteR"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"basics.lib/name": "Faust Basic Element Library"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"basics.lib/tabulateNd": "Copyright (C) 2023 Bart Brouns <bart@magnetophon.nl>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"basics.lib/version": "1.11.0"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"compile_options": "-lang wasm-i -ct 1 -es 1 -mcd 16 -single -ftz 0"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"copyright": "shren2021"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"description": "This is an oscillator"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"filename": "mono"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"license": "BSD"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"maths.lib/author": "GRAME"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"maths.lib/copyright": "GRAME"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"maths.lib/license": "LGPL with exception"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"maths.lib/name": "Faust Math Library"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"maths.lib/version": "2.6.0"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Oscillator440"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"oscillators.lib/name": "Faust Oscillator Library"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"oscillators.lib/version": "1.4.0"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"platform.lib/name": "Generic Platform Library"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"platform.lib/version": "1.3.0"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"version": "1.0"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"ui": [
|
|
86
|
+
{
|
|
87
|
+
"type": "vgroup",
|
|
88
|
+
"label": "Oscillator440",
|
|
89
|
+
"items": []
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
Binary file
|