mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Something
This commit is contained in:
parent
9444f62c91
commit
f7e66053f3
@ -107,6 +107,8 @@ export class FurnitureSoundBlockLogic extends FurnitureMultiStateLogic
|
||||
|
||||
private getPitchForHeight(height: number): number
|
||||
{
|
||||
if(this._noPitch) return 1;
|
||||
|
||||
let heightScaled: number = (height * 2);
|
||||
|
||||
if(heightScaled > FurnitureSoundBlockLogic.HIGHEST_SEMITONE)
|
||||
@ -114,6 +116,6 @@ export class FurnitureSoundBlockLogic extends FurnitureMultiStateLogic
|
||||
heightScaled = Math.min(0, (FurnitureSoundBlockLogic.LOWEST_SEMITONE + ((heightScaled - FurnitureSoundBlockLogic.HIGHEST_SEMITONE) - 1)));
|
||||
}
|
||||
|
||||
return (this._noPitch) ? 1 : Math.pow(2, (heightScaled / 12));
|
||||
return Math.pow(2, (heightScaled / 12));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user