Comments (4)
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.
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.
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.
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)
- MemoryError HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from melosynth.