Skip to content

Allow setting vector lengths independent of amplitude #13

@eimrek

Description

@eimrek

weas related. @superstar54

Currently vector lengths are scaled by the factor input, and to get amplitude-independent vector lengths, i need to divide the factor by the amplitude, like so:

weas.avr.fromPhononMode({
      ...
      amplitude: amplitude * 5,
      factor: vectorLength / (amplitude * 5),
      ...
    });

This works, apart from the case where i want to set amplitude to 0, and still show oscillating vectors. Could the vectors and amplitude be completely independently specified? basically like

weas.avr.fromPhononMode({
      ...
      amplitude: amplitude * 5,
      vectorLength: vectorLength,
      ...
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions