Skip to content

Instantly share code, notes, and snippets.

View 41y08h's full-sized avatar
💫
nullius in verba

Piyush 41y08h

💫
nullius in verba
View GitHub Profile
@41y08h
41y08h / stage 3.js
Created January 26, 2023 07:18
stage 3
import "./styles.css";
import { useEffect, useRef, useState } from "react";
import * as Tone from "tone";
export default function App() {
const [filter, setFilter] = useState<Tone.PitchShift | undefined>(undefined);
const [pitch, setPitch] = useState(1);
const audioRef = useRef<any>();
async function init() {
@41y08h
41y08h / working pitch shift.js
Created January 26, 2023 07:18
working pitch shift
import "./styles.css";
import { useEffect, useState } from "react";
import * as Tone from "tone";
export default function App() {
const [filter, setFilter] = useState<Tone.PitchShift | undefined>(undefined);
const [pitch, setPitch] = useState(1);
async function init() {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });