You can convert between Nsound.Buffer/AduioStream and numpy.array quite easily already (see attached file with example code), but it performs very badly. I think numpy accesses Buffers/AudioStream passed to a np.array constructor through the iterator protocol and this goes through the get_at_index method, which is obviously very slow.
Yes, please!
You can convert between Nsound.Buffer/AduioStream and numpy.array quite easily already (see attached file with example code), but it performs very badly. I think numpy accesses Buffers/AudioStream passed to a np.array constructor through the iterator protocol and this goes through the get_at_index method, which is obviously very slow.