-
Notifications
You must be signed in to change notification settings - Fork 7
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
sample_modifiers and project_modifiers in looper config file #270
Comments
as a general rule, yes. And this is how we advertise this in the docs. Options set in
Why is that confusing? But I thnik you're right maybe we should elaborate more on the general CLI - |
it's confusing because you just have to be really aware of exactly what the |
Some notes for how this works currently in 1.8.0 Using Project_config:
CLI command:
Rendered command: Using |
Maybe: add 'sample_modifiers' and 'project_modifiers' to looper config, and have looper merge these with the PEP? |
And remove appending command_extra within the PEP from the documentation to steer users to use the looper config. |
Ok, I've got a first pass of this working in the above PR where I lazily replace sample modifiers in the pep with any supplied in the looper config. Will work on merging them instead of just a simple replacement. One quirk: I had to add Lines 153 to 156 in 1c17c88
The attributes must exist before assignment and we use these attributes as |
Use deep_update from yacman1.py to merge the modifiers. (also maybe move that func to ubiquerg) |
We also discussed leaving the |
Ok, I have this working now where Also, if the user supplies other project level cli modifiers, they will also be merged with any provided in the pep project. Instead of using CLI arguments will still take the highest priority. An example looper config file to illustrate:
I still need to hide the new arguments from the CLI to prevent end-user confusion. |
This work is now merged to dev. The |
add should we put these under one key, rename maybe: create PEP and then use import from looper config to import as nested PEP, but the import might be expected to be a path to a yaml file...might need to make a new hook to do this sinc we normally only import as files. |
I attempted to modify the peppyProject before creating the Looper Project (which inherits from the PeppyProject) so that the user-supplied pep modifiers in the looper config could be used when creating the initial peppy project: 9d253e4 Unfortunately, this does not appear to work when initializing the Looper project. Perhaps my syntax is incorrect? |
I fixed the syntax. However, I'm realizing that Peppy does do not provide a way to reinitialize the Project using So, in summary, we can add use |
Holding off on moving |
I just got a bit tripped up with the command extra stuff, and realized:
in
looper.cli
you have to usecommand-extra
,but in
sample_modifiers.append
you usecommand_extra
. This all makes sense, of course, but it is a bit confusing...The other thing is, if you use
looper.cli.command-extra
, and then you use-x
, they don't stack. That makes sense too, but it's also a bit confusing.Not really sure what to do about this, maybe just clarify in the docs, but there are some confusing things here.
The text was updated successfully, but these errors were encountered: