UNPKG

react-frequency

Version:

A simple React component and hook which creates a frequency and play it !

9 lines (8 loc) 254 B
import IFrequency from '../../interface/IFrequency'; declare function useFrequency({ type, oscillator, gain, hz, }: IFrequency): { toggle: () => void; start: () => void; stop: () => void; playing: boolean; }; export default useFrequency;