medokin / soundpad-connector

.NET Connector for remote controlling Soundpad
https://medokin.github.io/soundpad-connector/
MIT License
25 stars 5 forks source link

Support loading a soundlist #7

Closed BarRaider closed 5 years ago

BarRaider commented 5 years ago

Currently, there is a SaveSoundlist() function that allows to save a Soundlist.

Could we also add a LoadSoundList(string fileName) which will load a *.spl file?

medokin commented 5 years ago

I can check if soundpad provides such a call, but cannot promise anything. The connector is just a .net wrapper.

BarRaider commented 5 years ago

Totally understand, was not able to find actual documentation in the Soundpad website, so figured you may know if that exists of not...

medokin commented 5 years ago

It's not supported by rpc. But the implementation of the workaround would be possible with the limitation that you cannot create a new list. Saving a new list would prompt a dialog in soundpad which we cannot handle. Is this an option for you?

BarRaider commented 5 years ago

Hi, So if I understand correctly, it will be possible to open an existing spl file (and play songs) but not modify and save it?

medokin commented 5 years ago

You could also modify and save an already existing list. Only limitation is that you could not create a new list.

BarRaider commented 5 years ago

But if I open an existing spl file, isn't it an already existing list?

medokin commented 5 years ago

Ok, another try:

You have a file called myList.spl You do something like LoadSoundList("myList.spl"). Everything would work file. Adding sounds, saving the list.

Soundpad also allows to create a new list like LoadSoundList("fileThatDoesNotExistYes.spl"). Thats something the connector would prevent, because saving this not yet existing file would trigger a prompt.

BarRaider commented 5 years ago

Now I got it, sorry for being a little slow! Yes, that's totally fine. I'm fine with only existing files.

BarRaider commented 5 years ago

Is this something you think you'll be able to add sometime soon?

medokin commented 5 years ago

Nuget package is indexing and should be available shortly