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

Live Playing #22

Open
jdan opened this issue Aug 31, 2011 · 9 comments
Open

Live Playing #22

jdan opened this issue Aug 31, 2011 · 9 comments

Comments

@jdan
Copy link
Owner

jdan commented Aug 31, 2011

We need to make a play() or sample() method which gives Melopy that capabilities of playing sound right from .data. This shouldn't be terribly hard to achieve, considering programs like Audacity do it without issue. Any ideas?

@gal-leib
Copy link
Contributor

Rendering to memory, and playing it? It's the naive method but we should check if it's not too inefficient it should be OK.

@jdan
Copy link
Owner Author

jdan commented Aug 31, 2011

No need to even render into memory. It's already in memory, in the data array. We should be able to play right from it.

@td5r
Copy link
Contributor

td5r commented Aug 31, 2011

yes it will be faster, if we could play sound without creating files...

@td5r
Copy link
Contributor

td5r commented Aug 31, 2011

we currently we could create hidden temp files, and play it... xD no body will ever know it

@gal-leib
Copy link
Contributor

We're gonna have to use a 3rd-party library.. There is nothing in the standard library that is OS independent.. Look here: http://wiki.python.org/moin/Audio/

@td5r
Copy link
Contributor

td5r commented Aug 31, 2011

@td5r
Copy link
Contributor

td5r commented Aug 31, 2011

I will try implementing this feature asap

@jdan
Copy link
Owner Author

jdan commented Mar 11, 2012

See 2c34064. We have sped up the rendering process twenty-fold, to the point where playing live is close to feasible (we know the speed is there).

@b1naryth1ef
Copy link
Contributor

This could be done easily with Pygame. I recommend something that will try to use a few different libraries...

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

No branches or pull requests

4 participants