nwhitehead / pyfluidsynth

Python bindings for FluidSynth
GNU Lesser General Public License v2.1
204 stars 56 forks source link

Merged Use np.frombuffer instead of np.fromstring to avoid DeprecationWarning. #13

Closed adarob closed 5 years ago

adarob commented 5 years ago

Example warning:

/usr/local/lib/python2.7/dist-packages/fluidsynth.py:394: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
  return numpy.fromstring(buf[:], dtype=numpy.int16)
adarob commented 5 years ago

Ping, we are getting warnings all over the place in our code because of this.

adarob commented 5 years ago

Thanks! Will you also be updating the pip package?