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

'Load .scl' and 'Load .kbm' function inconsistently #34

Open
thenorili opened this issue Feb 22, 2020 · 9 comments
Open

'Load .scl' and 'Load .kbm' function inconsistently #34

thenorili opened this issue Feb 22, 2020 · 9 comments

Comments

@thenorili
Copy link

https://sourceforge.net/p/zynaddsubfx/bugs/168/

I've encountered the same bug as sourceforge #168. Certain directories of .scl files will display their contents sometimes and some have never displayed their contents. I've considered all responses to sourceforge #168 none of which are relevant. Any expertise related to the functions in question would be welcomed!

@fundamental
Copy link
Member

So, issues with the file browser are either in zynaddsubfx's MiddleWare.cpp file (IIRC) as that should be where the file lists are run or they are likely in https://github.com/mruby-zest/mruby-zest/blob/master/mrblib/file-browser.rb which houses the logic and some unit tests. The view itself is https://github.com/mruby-zest/mruby-zest/blob/master/example/FileSelector.qml . I know there's still some unresolved issues with regards to filesystem path string encoding on windows, though I was never able to fully replicate those issues when I tried it out on local systems.

@thenorili
Copy link
Author

I've got both the 'file' files open already! I'll take a look at MiddleWare.cpp very soon since the error messages sound like an error in transmission to the backend to me.

Just so you know, I'm running Debian.

@thenorili
Copy link
Author

Tangentially, when I use the 'favorites' function to navigate to a path there isn't a '..' option which makes me quite stuck.

@thenorili
Copy link
Author

I can access the microtonal files just fine in the FLTK UI though! Perhaps if I look at how it interacts with MiddleWare.cpp, I can find out how Zest should be interacting with it.

@fundamental
Copy link
Member

The FLTK UI and the Zest file browsers work in fairly different manners. Performance on one isn't particularly indicative of the other in that capacity unfortunately. Also, if you're debugging what's sent between the backend and zest UI I'd recommend getting oscprompt hooked up (or a similar osc send/receive combo) if you haven't already.

@thenorili
Copy link
Author

How do I determine what port zynaddsubfx owns? I can't find that information with top or /etc/services.

@fundamental
Copy link
Member

When starting zyn (standalone) use the -P option to set the port number.

@thenorili
Copy link
Author

I don't see any port corresponding to file_list_dirs, file_list_files, or load_scl. Even when I successfully load a .scl file, I'm seeing complete radio silence from the backend.

Screenshot from 2020-02-22 14-53-11

As you can see, I've found ports related to the intention of importing .scl and .kbm objects, but none of them are being used by zest.

@fundamental
Copy link
Member

There's a few places where the metadata isn't immediately available in oscprompt, though messages can still be sent/received.

On zyn's side https://github.com/zynaddsubfx/zynaddsubfx/blob/master/src/Misc/MiddleWare.cpp#L1365-L1402 should be what the file browser is querying. e.g.

 /file_list_files "/tmp"

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