Skip to content

Allow string values for Named in cycle #94

@unlessgames

Description

@unlessgames

Instead of filtering down to an Option<f64> we could allow for string value in Target::Named that could be remapped later like Value::Name.

This might be interesting to remap using input parameter values for example or having hardcoded defaults that are easy to change from the outside.

For example you could do something like (assuming a separate mapping function here for volume for simplicity)

cycle("c:v=p1 d"):volume(function(context, value)
  if value == "p1" then 
    return context.parameter.p1
  else 
    return value 
  end
end)

This would let you cleanly flag steps in the cycle to be later controlled via parameters (or other logic) at runtime for any property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions