small sound tweaks
This commit is contained in:
@@ -42,14 +42,15 @@ private:
|
||||
static constexpr float stiffness_ = 0.0f; // stiffness coefficient
|
||||
float damping_ = 0.5f; // damping coefficient
|
||||
static constexpr float stringLength_ = 4.0f; // length of string at lowest frequency (20 hz)
|
||||
static constexpr float strikePosition_ = 0.2f; // x of impulse location
|
||||
static constexpr float impulseWidth_ = 0.1f; // x of impulse width
|
||||
static constexpr float strikePosition_ = 0.8f; // x of impulse location
|
||||
static constexpr float impulseWidth_ = 0.1f; // x% of impulse width
|
||||
static constexpr float impulseVelocity_ = 10000.0f; // x/t of impulse magnitude
|
||||
static constexpr float samplePosition_ = 0.1f; // percentage along L of sampling for audio
|
||||
static constexpr float samplePosition_ = 0.2f; // percentage along L of sampling for audio
|
||||
float crossSectionalArea_ = pi * std::pow(radius_, 2.0f); // string cross sectional area, assuming circular
|
||||
float mu_ = crossSectionalArea_ * rho_; // linear mass density
|
||||
float waveVelocity_ = std::sqrt(stringTension_ / mu_); // transverse wave velocity
|
||||
float L_ = 1.0f; // length of string at a given frequency
|
||||
float gain_ = 0.3f;
|
||||
|
||||
// f0_ = waveVelocity_ / (2.0f * stringLength_); // fundamental frequency of a non-stiff string
|
||||
// f1_ = f0_ * std::sqrt(1.0f + stiffness_); // fundamental frequency of the stiff string
|
||||
|
||||
Reference in New Issue
Block a user