summaryrefslogtreecommitdiff
path: root/src/ui/App.jsx
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2023-05-09 19:26:47 +0200
committerjulian laplace <julescarbon@gmail.com>2023-05-09 19:26:47 +0200
commitd13f2873d53f615b2d497ab1e6d0fc12159a804a (patch)
treefdd0e6e11f57537d1236bfa3cf361adbcf0d77a3 /src/ui/App.jsx
parent72b3b1fff01bcd20b3a79144d02455dfc9d6367a (diff)
add controls
Diffstat (limited to 'src/ui/App.jsx')
-rw-r--r--src/ui/App.jsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/App.jsx b/src/ui/App.jsx
index eaca9a4..fbbbd35 100644
--- a/src/ui/App.jsx
+++ b/src/ui/App.jsx
@@ -7,6 +7,7 @@ import * as React from "react";
import { useState, useEffect, useRef } from "react";
import Relabi from "../relabi";
import { Kalimba, Drums } from "../lib/instruments";
+import Controls from "./Controls.jsx";
export default function App() {
const [relabi, setRelabi] = useState();
@@ -19,10 +20,10 @@ export default function App() {
if (!relabi) {
const relabiGenerator = new Relabi({
waves: [
- { type: "sine", frequency: 0.75 },
- { type: "sine", frequency: 1.0 },
- { type: "sine", frequency: 1.617 },
- { type: "sine", frequency: 3.141 },
+ { shape: "sine", frequency: 0.75 },
+ { shape: "sine", frequency: 1.0 },
+ { shape: "sine", frequency: 1.617 },
+ { shape: "sine", frequency: 3.141 },
],
bounds: [
{
@@ -86,6 +87,7 @@ export default function App() {
}}
>
<div ref={relabiRef} />
+ <Controls relabi={relabi} />
</div>
);
}