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

Does p5.Panner3D work? #6939

Open
1 of 17 tasks
tas509 opened this issue Apr 4, 2024 · 6 comments
Open
1 of 17 tasks

Does p5.Panner3D work? #6939

tas509 opened this issue Apr 4, 2024 · 6 comments
Labels

Comments

@tas509
Copy link

tas509 commented Apr 4, 2024

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

No response

Web browser and version

No response

Operating system

No response

Steps to reproduce this

P5.Panner has no documentation to speak of.

There are small typos "sorce" and .rollof()

There is no example working.

I've tried to make a polar butterfly pan according to the plot... and I can't hear any difference. It seems like the audio isn't being panned at all... I kind of got a dummy working using an osc and reducing the volume and frequency based on vector distance but that defeats the purpose I think.

Here is my crappy code.
https://editor.p5js.org/tom.smith/sketches/N6SR16nYB

Any help gratefully received, I'd like this to be used to explain a polar butterflies shape to a blind person (we'll do a relief print, but it'd nice to have the temporal aspect).

Thanks for any pointers received,

Tom
p.s If this is the wrong place, sorry, I followed the link in the P5 docs.

@tas509 tas509 added the Bug label Apr 4, 2024
Copy link

welcome bot commented Apr 4, 2024

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

@tas509
Copy link
Author

tas509 commented Apr 4, 2024

p5.js version - whatever is on editor.p5js.org (probably not relevant)

Web browser and version - Chrome latest (probably not relevant)

Operating system -Ventura 13.5.1 (22G90) (probably not relevant)

Steps to reproduce this -- er, run the sketch listed

@tas509
Copy link
Author

tas509 commented Apr 5, 2024

I maybe have begun to understand it a bit more... this now seems to produce lefty/righty sound, but not fronty/backy

https://editor.p5js.org/tom.smith/sketches/N6SR16nYB

@limzykenneth
Copy link
Member

@tas509 I don't use p5.Sound very much myself so can't really provide detailed help, the example you shared seem to be working as far as I understand though. p5.Sound is currently being revamp as well and something we draw a lot of inspiration from is Tone.js, you can check it out and see if it gives you better results at this stage.

@tas509
Copy link
Author

tas509 commented Apr 8, 2024

Thanks @limzykenneth , I was trying to avoid Tone.js :-) I struggle to use libraries sometimes when there is documentation that doesn't include working examples ... like...

thisFunction(number, number)

but doesn't explain what the numbers might realistically be... 0 to 1 or 0 to 255 or frequencies... etc.

Thanks for your help.

@limzykenneth
Copy link
Member

@tas509 No worries, we will have an opportunity to look into this further. p5.Panner3D probably needs better documentation as you mentioned anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants