pub fn add_parameter(
		&mut self,
		settings: ParameterSettings,
	) -> Result<ParameterHandle, AddParameterError> {
		let id = settings.id.unwrap_or(ParameterId::new());
		self.active_ids.add_parameter_id(id)?;
		self.command_producer
			.push(ParameterCommand::AddParameter(id, settings.value).into())?;
		Ok(ParameterHandle::new(id, self.command_producer.clone()))
	}
/// Creates a parameter with the specified starting value.
Creates a parameter with the specified starting value.
Creates a parameter with the specified starting value .
pub fn add_parameter(
		&mut self,
		settings: ParameterSettings,
	) -> Result<ParameterHandle, AddParameterError> {
		let id = settings.id.unwrap_or(ParameterId::new());
		self.active_ids.add_parameter_id(id)?;
		self.command_producer
			.push(ParameterCommand::AddParameter(id, settings.value).into())?;
		Ok(ParameterHandle::new(id, self.command_producer.clone()))
	}
pub fn add_parameter ( & mut self , settings : ParameterSettings , ) -> Result < ParameterHandle , AddParameterError > { let id = settings . id . unwrap_or ( ParameterId :: new ( ) ) ; self . active_ids . add_parameter_id ( id ) ? ; self . command_producer . push ( ParameterCommand :: AddParameter ( id , settings . value ) . into ( ) ) ? ; Ok ( ParameterHandle :: new ( id , self . command_producer . clone ( ) ) ) }
Creates a parameter with the specified starting value.
Creates a parameter with the specified starting value .
&mut self
settings
ParameterSettings
&mut self
settings
ParameterSettings