-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/analyser node #242
Feat/analyser node #242
Conversation
…example folders and format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🔥 Can't wait to play with it myself 😈
|
||
const Canvas: React.FC<PropsWithChildren> = ({ children }) => { | ||
const [size, setSize] = useState<Size>({ width: 0, height: 0 }); | ||
const [canvasPan] = useState<Position>({ x: 40, y: 0 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canvasPan
can be removed (unless you want to use it later). I've planned to add pan & zoom effects to the spy app, but due to the bugs in mac catlyst+reanimated i've never finished that.
apps/common-app/src/examples/AudioVisualizer/AudioVisualizer.tsx
Outdated
Show resolved
Hide resolved
packages/react-native-audio-api/common/cpp/core/AnalyserNode.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Maciej Makowski <[email protected]>
public set fftSize(value: number) { | ||
if (!AnalyserNode.allowedFFTSize.includes(value)) { | ||
throw new IndexSizeError( | ||
`Provided value (${value}) must be a power of 2 2^5 and 2^15` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`Provided value (${value}) must be a power of 2 2^5 and 2^15` | |
`Provided value (${value}) must be a power of 2 between 32 and 32768` |
* feat: some changes to the audio visualizer example * Update apps/common-app/src/examples/AudioVisualizer/Charts.tsx
Closes #168
Introduced changes
AnalyserNode
FFTFrame
AudioVisualizer
example using AnalyserNode(early version)Checklist