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.