Skip to content
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

Merged
merged 45 commits into from
Jan 23, 2025
Merged

Feat/analyser node #242

merged 45 commits into from
Jan 23, 2025

Conversation

maciejmakowski2003
Copy link
Collaborator

@maciejmakowski2003 maciejmakowski2003 commented Dec 18, 2024

Closes #168

Introduced changes

  • Implemented AnalyserNode
  • Refactored FFTFrame
  • Added AudioVisualizer example using AnalyserNode(early version)

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code

Maciej Makowski and others added 30 commits December 18, 2024 10:12
@maciejmakowski2003 maciejmakowski2003 marked this pull request as ready for review January 20, 2025 14:17
@maciejmakowski2003 maciejmakowski2003 self-assigned this Jan 20, 2025
Copy link
Member

@michalsek michalsek left a 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 });
Copy link
Member

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.

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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`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`

michalsek and others added 4 commits January 23, 2025 17:13
* feat: some changes to the audio visualizer example

* Update apps/common-app/src/examples/AudioVisualizer/Charts.tsx
@maciejmakowski2003 maciejmakowski2003 merged commit fde5da6 into main Jan 23, 2025
11 checks passed
@maciejmakowski2003 maciejmakowski2003 deleted the feat/analyser-node branch January 23, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement AnalyserNode
2 participants