CharacterMusicSystem.ConvertToDecibels C# (CSharp) Méthode

ConvertToDecibels() public méthode

public ConvertToDecibels ( int value ) : float
value int
Résultat float
	public float ConvertToDecibels(int value){
		if (value == 0) {
			return -80f;
		} else if (value == 100) {
			return 0f;
		} else {
			return Mathf.Log((value/100f))/Mathf.Log(10)*20f;
		}
	}