mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 05:24:35 +02:00
tweaked RGB->Hz for drum to make piano
This commit is contained in:
parent
e9e6f97084
commit
006472cb24
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ void Hand::simulate(float deltaTime, bool isMine) {
|
||||||
void Hand::handleVoxelCollision(PalmData* palm, const glm::vec3& fingerTipPosition, VoxelTreeElement* voxel, float deltaTime) {
|
void Hand::handleVoxelCollision(PalmData* palm, const glm::vec3& fingerTipPosition, VoxelTreeElement* voxel, float deltaTime) {
|
||||||
// Collision between finger and a voxel plays sound
|
// Collision between finger and a voxel plays sound
|
||||||
const float LOWEST_FREQUENCY = 100.f;
|
const float LOWEST_FREQUENCY = 100.f;
|
||||||
const float HERTZ_PER_RGB = 3.f;
|
const float HERTZ_PER_RGB = 2.f;
|
||||||
const float DECAY_PER_SAMPLE = 0.0005f;
|
const float DECAY_PER_SAMPLE = 0.0005f;
|
||||||
const float DURATION_MAX = 2.0f;
|
const float DURATION_MAX = 2.0f;
|
||||||
const float MIN_VOLUME = 0.1f;
|
const float MIN_VOLUME = 0.1f;
|
||||||
|
|
Loading…
Reference in a new issue