1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Timestamp;

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd)]
pub enum ValueChangeMethod {
    Immediate,
    Linear(Timestamp),
    Exponential(Timestamp),
}

#[derive(Clone, Copy, PartialEq, PartialOrd)]
pub struct ParameterChange {
    pub value: f64,
    pub end_time: Timestamp,
    pub method: ValueChangeMethod,
}