···229229);
230230231231loose_enum!(
232232+ /// Controls whether to extend wave distributions so they match the duration before the limit was applied.
233233+ ///
234234+ /// To see this in practice, check out [this video](https://youtube.com/watch?v=NJPPBvyHJjg&t=338).
235235+ ///
236236+ /// Includes the option to only enable for beat distribution and not value distribution, and vice versa.
232237 #[derive(Default, Copy)]
233238 LimitBehaviour: i32 {
234239 #[default]
235240 None = 0,
236236- Duration = 1,
237237- Distribution = 2,
241241+ Beat = 1,
242242+ Value = 2,
238243 Both = 3,
239244 }
240245);
241246242247impl LimitBehaviour {
243243- /// Returns true if duration limiting is enabled, that is either `Duration` or `Both`.
248248+ /// Returns true if duration limiting is enabled, that is either `Beat` or `Both`.
244249 pub fn duration(&self) -> bool {
245245- matches!(self, LimitBehaviour::Duration | LimitBehaviour::Both)
250250+ matches!(self, LimitBehaviour::Beat | LimitBehaviour::Both)
246251 }
247252248248- /// Returns true if distribution limiting is enabled, that is either `Distribution` or `Both`.
253253+ /// Returns true if distribution limiting is enabled, that is either `Value` or `Both`.
249254 pub fn distribution(&self) -> bool {
250250- matches!(self, LimitBehaviour::Distribution | LimitBehaviour::Both)
255255+ matches!(self, LimitBehaviour::Value | LimitBehaviour::Both)
251256 }
252257}
253258