Skip to content

Commit 0d926dc

Browse files
Project name change. README
1 parent 81dafa3 commit 0d926dc

File tree

6 files changed

+45
-6
lines changed

6 files changed

+45
-6
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Wax
2+
3+
A component-driven library to abstract the Web Audio API, intended to be targeted by JSX.
4+
5+
```jsx
6+
/** @jsx createAudioElement */
7+
8+
import {
9+
createAudioElement,
10+
renderAudioGraph,
11+
AudioGraph,
12+
Oscillator,
13+
Gain,
14+
StereoPanner,
15+
Destination,
16+
setValueAtTime,
17+
exponentialRampToValueAtTime,
18+
} from 'web-audio-x';
19+
20+
renderAudioGraph(
21+
<AudioGraph>
22+
<Oscillator
23+
frequency={[
24+
setValueAtTime(200, 0),
25+
exponentialRampToValueAtTime(800, 3),
26+
]}
27+
type="square"
28+
endTime={3}
29+
/>
30+
<Gain gain={0.2} />
31+
<StereoPanner pan={-1} />
32+
<Destination />
33+
</AudioGraph>
34+
);
35+
```
36+
37+
## Getting Started
38+
39+
TODO

example/src/aggregation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
Destination,
1313
setValueAtTime,
1414
exponentialRampToValueAtTime,
15-
} from 'web-audio-x';
15+
} from 'wax-core';
1616

1717
const fetchAsAudioBuffer = async (url, audioContext) => {
1818
const response = await fetch(url);

example/src/simple.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Destination,
1111
setValueAtTime,
1212
exponentialRampToValueAtTime,
13-
} from 'web-audio-x';
13+
} from 'wax-core';
1414

1515
renderAudioGraph(
1616
<AudioGraph>

example/src/withReact.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
Gain,
1313
StereoPanner,
1414
Destination,
15-
} from 'web-audio-x';
15+
} from 'wax-core';
1616

1717
import combineElementCreators from './combineElementCreators';
1818

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "wax",
2+
"name": "wax-core",
33
"version": "0.0.1",
4-
"description": "A component-driven abstraction of the Web Audio API, intended to be targeted by JSX",
4+
"description": "A component-driven library to abstract the Web Audio API, intended to be targeted by JSX",
55
"main": "dist/index.js",
66
"scripts": {
77
"build": "babel src --out-dir dist",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
resolve(),
2121
commonjs(), // for React and ReactDOM
2222
alias({
23-
'web-audio-x': resolvePath(__dirname, 'dist', 'index.js'),
23+
'wax-core': resolvePath(__dirname, 'dist', 'index.js'),
2424
}),
2525
babel(
2626
entry === 'withReact'

0 commit comments

Comments
 (0)