-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I would like to have a high level interface similar to playrec (http://www.playrec.co.uk/) - but of course with a much better API!
Basically it should provide:
- a function to initialize PortAudio (set device ID, samplerate, latency, other low level stuff, ...). This should be optional. It should probably be allowed to call it several times to set one setting at a time?
- a function to play a NumPy array on a given set of output channels (specified by another iterable)
- a function to record a given time of audio from a given set of input channels into a NumPy array
- a function to simultaneously (and of course sample-accurately) do both playback and recording
This could be realized by either a new class or as a new submodule, I guess there are only minor differences.
The hardest thing would probably be to find a name for it.
The individual functions could also be dropped directly into the main module, but then the state (a.k.a. the "preferences") would also have to be stored directly in the module namespace.
In the latter case there would be no clear separation between low-level and high-level interface, but it would have the benefit that no name has to be invented for a new class/submodule.
Any comments?
Metadata
Metadata
Assignees
Labels
No labels