pub fn try_from_soft_normalized_value(
        soft_normalized_value: f64,
    ) -> Result<Volume, &'static str> {
        if soft_normalized_value < 0.0 && !soft_normalized_value.is_nan() {
            return Err(
                "soft-normalized value must be positive or NaN in order to represent a volume",
            );
        }
        let volume = Volume {
            soft_normalized_value,
        };
        Ok(volume)
    }
// Attention! Because of the fact that REAPER allows exceeding the soft maximum of 12 dB,
// the VolumeSliderValue can go beyond 1000, which means that this "normalized value" can go
// beyond 1.0!
Attention. Because of the fact that REAPER allows exceeding the soft maximum of 12 dB,
the VolumeSliderValue can go beyond 1000, which means that this "normalized value" can go
beyond 1.0!
Attention . Because of the fact that REAPER allows exceeding the soft maximum of 12 dB the VolumeSliderValue can go beyond 1000 which means that this " normalized value " can go beyond 1 . 0!
pub fn try_from_soft_normalized_value(
        soft_normalized_value: f64,
    ) -> Result<Volume, &'static str> {
        if soft_normalized_value < 0.0 && !soft_normalized_value.is_nan() {
            return Err(
                "soft-normalized value must be positive or NaN in order to represent a volume",
            );
        }
        let volume = Volume {
            soft_normalized_value,
        };
        Ok(volume)
    }
pub fn try_from_soft_normalized_value ( soft_normalized_value : f64 , ) -> Result < Volume , & ' static str > { if soft_normalized_value < 0.0 && ! soft_normalized_value . is_nan ( ) { return Err ( " " , ) ; } let volume = Volume { soft_normalized_value , } ; Ok ( volume ) }
Attention!
Attention!
soft_normalized_value
f64
soft_normalized_value
f64