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

Search for patches with specific parameter values #51

Open
christofmuc opened this issue Dec 24, 2020 · 0 comments
Open

Search for patches with specific parameter values #51

christofmuc opened this issue Dec 24, 2020 · 0 comments
Labels
Epic Large task

Comments

@christofmuc
Copy link
Owner

An undocumented feature: If the synth supports detailed parameters (like the Rev2), you can actually type a python expression into the name search advanced filter. If you prefix the name search with an exclamation mark, the current patch will be a dictionary called p.

The syntax matches the pytschirp syntax.

Example:

!p["LPF Audio Mod"].get()!=0

Will search for patches that use the Rev2's audio mod feature for the low pass filter.

The names of the parameters currently can be seen best in the Patch Diff dialog. If there are no parameters shown in the patch diff, the synth does not support detailed parameters yet.

To productize: currently, the search is run in memory, so I would need to load all patches first, not just a single page, and then run the search. Exploding that information into the SQL database probably is overkill for a desktop application, that would make most sense in a client/server scenario.

Also, the parameters would need to be documented, e.g. an autocomplete of parameter name.

The syntax is ugly with the p["..."].get(), these characteres could go away and be added automatically. Or I improve pytschirp to allow better syntax.

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

No branches or pull requests

1 participant