Git Product home page Git Product logo

Comments (4)

justinsalamon avatar justinsalamon commented on July 27, 2024

Thanks for reporting this! Please provide the exact command you used to call the script, and the versions of your operating system and numpy (I see you're on python 2.7). I'll have time to fix this in 2-3 weeks.

from melosynth.

dmitrymurashenkov avatar dmitrymurashenkov commented on July 27, 2024

Command:
./melosynth.py melody.csv

melody.csv content:
0.0,0
0.02,0
0.04,0

System: Linux Ubuntu 17.04
python package version: 2.7.13-2
python-numpy package version: 1:1.12.1-1ubuntu1

from melosynth.

beantowel avatar beantowel commented on July 27, 2024

to make the code compatible with python 3.6, i made following changes:

  • line 135:
signal = b''.join((wave.struct.pack('h', int(item))) for item in x)
  • line 138:
sampwidth = int(N / 8) # in bytes
  • line 308:
nsamples = int(np.round((t - t_prev) * fs))

from melosynth.

justinsalamon avatar justinsalamon commented on July 27, 2024

Thanks @dmitrymurashenkov for reporting and thanks @beantowel for the suggested fix. I've just pushed the fix to version 0.1.1 of melosynth (now on master).

from melosynth.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.