1
0
Fork 0

Add a todo about removing skewed integer ranges

This commit is contained in:
Robbert van der Helm 2022-03-03 18:36:36 +01:00
parent 50fa39a374
commit c0f03a97fc

View file

@ -1,6 +1,11 @@
//! Different ranges for numeric parameters. //! Different ranges for numeric parameters.
/// A distribution for a parameter's range. All range endpoints are inclusive. /// A distribution for a parameter's range. All range endpoints are inclusive.
///
/// TODO: Hosts will do weird things when using skewed ranges for integers because of the steps.
/// Perhaps it would be best to just only allow linear ranges for integers. Bitwig for
/// instance will send a parameter change rounding the value down when restoring a plugin
/// patch.
#[derive(Debug)] #[derive(Debug)]
pub enum Range<T> { pub enum Range<T> {
/// The values are uniformly distributed between `min` and `max`. /// The values are uniformly distributed between `min` and `max`.