Loading...
Searching...
No Matches
avnd_tools::EntityToMidi::synth_state Struct Reference
Detailed Description
Per-id bookkeeping for entities that arrive as bare positions: what the source does not send (age, velocity) is differenced from these.
Public Attributes | |
| double | time = 0. |
| double | first_seen = 0. |
| double | last_dt = 0. |
| decltype(track_record::position) | pos {} |
| decltype(track_record::velocity) | vel {} |
| previous velocity | |
| decltype(track_record::velocity) | accel {} |
| previous acceleration | |
| float | heading = 0.f |
| unwrapped, so it can be smoothed | |
| bool | has_heading = false |
| ossia::one_pole_filter< float > | f_accel |
| ossia::one_pole_filter< float > | f_jerk |
| ossia::one_pole_filter< float > | f_turn |
| ossia::one_pole_filter< float > | f_agitation |
| ossia::one_pole_filter< float > | f_ax |
| ossia::one_pole_filter< float > | f_ay |
| ossia::one_pole_filter< float > | f_az |
| ossia::one_pole_filter< float > | f_vx |
| ossia::one_pole_filter< float > | f_vy |
| ossia::one_pole_filter< float > | f_vz |
Member Data Documentation
◆ f_vx
| ossia::one_pole_filter<float> avnd_tools::EntityToMidi::synth_state::f_vx |
Mean velocity, against which the deviation that defines agitation is measured: a fast but steady walk is not agitated, a slow fidget is.
◆ last_dt
| double avnd_tools::EntityToMidi::synth_state::last_dt = 0. |
Seconds since the previous frame this entity appeared in. Recorded by parse_entities before it advances time, because the analysis runs afterwards and would otherwise only ever see a zero interval.
The documentation for this struct was generated from the following file: