Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how is the program to be used without qprompt ? #2

Closed
robertmuth opened this issue Oct 30, 2021 · 1 comment
Closed

how is the program to be used without qprompt ? #2

robertmuth opened this issue Oct 30, 2021 · 1 comment

Comments

@robertmuth
Copy link

Currently, it is not possible to use the program without qprompt at all because

This stanza accesses a bunch of undefined variables in this case

     if options.division:
          edit_division()
       if options.swing:
          edit_swing()
       if options.dial:
         edit_dial(int(options.dial))
       if options.pad:
         edit_pad(int(options.pad))

But it is also not clear how to use it in this case.
Is there an inverse operation to dump?

@mungewell
Copy link
Owner

Pushed a fix, should be good now but I no longer have the MPD218 to test with a real device.

Project is based around Construct, which is bi-direction way of describing binary formats and uses parse/build functions to decode/encode. This project actually re-builds the changed in order to write to file:
https://github.com/mungewell/mpd-utils/blob/master/mpd218.py#L412

If you wanted to use the same method you can change the dictionaries made by parsing and build the result. On other projects I have done I have made the Python code be more of a library for other code to call... this project pre-dates doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants