Sammy1Am / Moppy2

The evolution of the Musical flOPPY controller
Other
311 stars 51 forks source link

Moppy2 controlled by Command Line possible? #149

Open jlhirondelle opened 2 years ago

jlhirondelle commented 2 years ago

I'm using Moppy for a group project in university right now, and it involves hooking up several floppy drives to a server, and using Moppy to automatically play music on them whenever a certain type of log is generated by the server. I can't see a good way to do this with the GUI, so I was wondering if it was possible to run Moppy as a command-line sort of thing instead? That way we'd be able to just run a command/set of commands as a task if our thing is triggered, and that would automatically play the MIDI. I'm unsure if this is a thing, but if it already is or you could point us in the right direction, it would be very appreciated

jlhirondelle commented 2 years ago

Windows Server 2016, by the way, if it makes any difference.

Sammy1Am commented 2 years ago

Hey there, sorry it took a bit to get back to you (busy week here!).

There isn't out-of-the-box command line functionality, but there are two (hopefully quick) options for you to look into:

You basically just need these four lines, though you'll need to do some initialization to get the objects you need (some of which might just be do-nothing objects like the statusBus if you're not planning on providing feedback).

If you decide to go that route, let me know if you have any specific questions you run into. Depending on your timeline, I might be able to try slapping something crude together to get you started, but I wouldn't want you to end up waiting on me if I can't get around to it (musical floppies are, sadly, not a life-priority at the moment 😜)