gariscat / loopy Goto Github PK
View Code? Open in Web Editor NEWA data framework for music information retrieval focusing on electronic music.
License: GNU General Public License v3.0
A data framework for music information retrieval focusing on electronic music.
License: GNU General Public License v3.0
Hi, first thank you for the amazing work, i herad thw sample you have on you demo page and it sounds really good.
I tried to run the file demo.py but i realized i was missing all the samples Ultrasonic-...-.wav, so i downloaded some other samples of the same instruments (leads, pads, kicks etc) and tried to run you code again changing the references.
But i get this error:
Traceback (most recent call last):
File "demo.py", line 223, in
track.save_audio(save_name=f'prog_{i}', target_dir='../renders')
File "C:\Users\tborghesi\Desktop\loopy-master\loopy\track.py", line 151, in save_audio
sf.write(target_path, self.render(gain), self._sr)
File "C:\Users\tborghesi\Desktop\loopy-master\loopy\track.py", line 122, in render
source_y=pattern.render(),
File "C:\Users\tborghesi\Desktop\loopy-master\loopy\pattern.py", line 120, in render
return self._channel(self._core.render())
File "C:\Users\tborghesi\Desktop\loopy-master\loopy\pattern.py", line 86, in render
note_y = note.render(bpm=self._bpm, sig=self._sig)
File "C:\Users\tborghesi\Desktop\loopy-master\loopy\generator.py", line 177, in render
return self._generator.render(
File "C:\Users\tborghesi\Desktop\loopy-master\loopy\generator.py", line 116, in render
ret = y * np.expand_dims(e, -1)
ValueError: operands could not be broadcast together with shapes (0,2) (15503,1)
This is due to the fact that my samples are apparently not long enough and when reading them through the parse function only the lists of the first pitches (from A0 to A1) gets filled and the other remains empty, and thus we have the (0,2) shape that gives us the error.
So i was wondering if the code is strongly bounded to the sample that are referenced or if making some simple tweaks i can try to generate with Loopy using custom samples.
And if you can could you please spend a some words explaining how do you go from the waveform of the samples to the generated piece? A simple high level overview is enough and highly appreciated of course, is just that the code is not that easy and understand exactly what is going on is not so immediate.
In any case thank you and have a nice day.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.