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

Sound / music ? #28

Open
danigb opened this issue Aug 10, 2018 · 5 comments
Open

Sound / music ? #28

danigb opened this issue Aug 10, 2018 · 5 comments

Comments

@danigb
Copy link

danigb commented Aug 10, 2018

Hi,

This looks awesome. Congrats!

Are you planning to integrate audio/sound generation in any way? I'm intrigued by the idea of mapping the points into sound or music. Any suggestion?

Thanks!

@williamngan
Copy link
Owner

Yes! Combining visuals + sounds using the same approach of Point/Space/Form would be amazing.

At the very least we should support mapping amplitude and frequency. Potentially also offer algorithms based on music theory.

Any other suggestions or use cases you have in mind?

@danigb
Copy link
Author

danigb commented Aug 17, 2018

Yes, amplitude and frequency are mandatory. I'm the creator of tonal music theory library, and some kind of connection between both projects would be really nice. I'll think about it.

Meanwhile, do you have a plan to develop an audio module for "pts" or you're delegating that to the community?

@williamngan
Copy link
Owner

Hi @danigb , you tonal library is amazing. What would it take for it to work with Pts? Would be great to explore some options together.

My initial thought is that Pts can provide an "Op" class (say, Signal), that's generic enough to process audio signals and hopefully tie them to Pt and Group class. Probably the goal is not to do everything in Pts, but to make it easy to work seamlessly with other cool sound libraries like tonal. (This way we can also keep the Pts file size smaller)

Do you have suggestions or ideas in mind?

@danigb
Copy link
Author

danigb commented Aug 29, 2018

Hi @williamngan,

I would love to work with you on this, but I am afraid (as the delay in my answers reveals) that I am too busy to put time and energy into this development (the situation may change in a couple of months).

Anyway, a Signal class that provides some kind of continuous data that can be mapped to things like amplitude or frequency would be wonderful (frequency can be used not only to control pitch, but also other kind of sound modulations).

I think this continuous signal can be converted to discrete values (like note pitch) using external libraries like tonal to produce more "musical" or "melodic" effects. But I think is ok to have this kind of transformations outside pts itself.

With this in mind, I think that if you build this kind of Signal class I would be able to produce (with help) some examples of usage with Web Audio or some libraries like Tone.js and/or Gibberish

Thanks for your work!

@williamngan
Copy link
Owner

Sounds like a good plan, @danigb . I'll try to get started on it soon, and would love your feedbacks on it. Let's keep this thread open for discussions.

Totally understood that you might be busy (same here actually, Pts is my midnight project 😅).

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

No branches or pull requests

2 participants