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

[Enhancement] Export and import of MIDI settings in editable format #1199

Open
willeke1234 opened this issue Sep 15, 2022 · 7 comments
Open
Milestone

Comments

@willeke1234
Copy link
Contributor

willeke1234 commented Sep 15, 2022

It is a lot of work to add in and out MIDI events to all buttons and other objects. Hence the request to export and import the MIDI settings in an editable, commonly used format.

See also:
MIDI setup change #596
how to edit cmb files #622
Custom initial MIDI events #1081
Organ configuration and respective files #565

@willeke1234
Copy link
Contributor Author

See also:
create a settings file that can be imported into new organs #1951

@willeke1234 willeke1234 changed the title (Enhancement] Export and import of MIDI settings in editable format [Enhancement] Export and import of MIDI settings in editable format Nov 13, 2024
@oleg68 oleg68 added this to the 3.16.0 milestone Jan 19, 2025
oleg68 added a commit to oleg68/GrandOrgue-official that referenced this issue Feb 15, 2025
oleg68 added a commit to oleg68/GrandOrgue-official that referenced this issue Feb 15, 2025
oleg68 added a commit to oleg68/GrandOrgue-official that referenced this issue Feb 15, 2025
oleg68 added a commit to oleg68/GrandOrgue-official that referenced this issue Feb 15, 2025
oleg68 added a commit to oleg68/GrandOrgue-official that referenced this issue Feb 15, 2025
@oleg68
Copy link
Contributor

oleg68 commented Feb 16, 2025

@willeke1234 I implemented this capability in my intermediate build. It is available as buttons in the MIDI objects dialog. Could you test it?

@willeke1234
Copy link
Contributor Author

There are some issues:

  • When I try to export then I get
    Image
    If I choose "Use .ini" then the file is named "Friesach.midi.ini". If I choose "Use Both" then the file is named "Friesach.midi.ini.ini.midi.ini".
  • When I try to import then I can't select a .ini file. I changed the name to "Friesach.ini", didn't work.
  • The .ini file format is not what I would call an editable format. Technically it is editable, but in practice it is not.

@oleg68
Copy link
Contributor

oleg68 commented Feb 16, 2025

  • When I try to export then I get

Seems it is a mac-specific issue. Do you know anything about forbidding .ini in your OS?

If I choose "Use .ini" then the file is named "Friesach.midi.ini".

It is a correct filename. The right extension is .midi.ini instead of .ini.

If I choose "Use Both" then the file is named "Friesach.midi.ini.ini.midi.ini".

  • When I try to import then I can't select a .ini file. I changed the name to "Friesach.ini", didn't work.

Does Friesach.midi.ini work?

  • The .ini file format is not what I would call an editable format. Technically it is editable, but in practice it is not.

I think it is acceptable if only non empty MIDI settings are there. The size is not so huge.

@willeke1234
Copy link
Contributor Author

forbidding .ini in your OS

I don't know why and how I should do this.

The right extension is .midi.ini instead of .ini.
Does Friesach.midi.ini work?

I don't think macOS can handle dots in extensions and sees "Friesach.midi" with extension "ini".

If this file format should be edited by users then it needs a specification and a manual.

@oleg68
Copy link
Contributor

oleg68 commented Feb 17, 2025

don't think macOS can handle dots in extensions and sees "Friesach.midi" with extension "ini".

Would the ".midi-settings" extension better?

If this file format should be edited by users then it needs a specification and a manual.

I'll look at the possibility to use yaml format instead. The main difficulty is a lot of structured information is encoded in the section name now. It is not user-freandly. I think mapping it to a yaml hierarchy would be better.

oleg68 added a commit to oleg68/GrandOrgue-official that referenced this issue Feb 17, 2025
@willeke1234
Copy link
Contributor Author

Would the ".midi-settings" extension better?

It is better to use only alphanumeric characters.

I have decided to stick with GO 3.7 due to bugs and incompatibilities and will not be using this MIDI settings export/import. I have tried to discuss the file format and the MIDI Objects window but it did not work. I don't really care what the format will be, just try to think from the user's perspective.

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