Rainbow-Dreamer / musicpy

Musicpy is a music programming language in Python designed to write music in very handy syntax through music theory and algorithms.
https://musicpy.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
1.27k stars 121 forks source link

Can't load the module if there is no audio interface #36

Closed dustyny closed 2 years ago

dustyny commented 2 years ago

I'd like to use this module to generate loops using a server. But when you try to load the module it tries to initiate the audio interface which fails without an audio interface.

I don't need to playback the audio, I just need to export the loops I generate as WAV file.

The work around is to create a dummy audio interface but it's complicated and I'm having issues keeping the dummy interface running.

Rainbow-Dreamer commented 2 years ago

Thanks for the feedback. Yes, currently the initialization of musicpy and its sampler module requires audio interface to start with, which means it cannot run on a server without audio interface. I improve the initialization of musicpy, and it now does not requires any audio interface to start with, you can now generate wav files using this module on a server.