1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Fixed a small streaming bug, tidied up some warnings.

This commit is contained in:
Julian Storer 2009-12-22 14:53:12 +00:00
parent aa98aa03ec
commit 24a121e4dd
12 changed files with 124 additions and 76 deletions

View file

@ -580,7 +580,7 @@ void CodeDocument::setSavePoint() throw()
bool CodeDocument::hasChangedSinceSavePoint() const throw()
{
return currentActionIndex == indexOfSavedState;
return currentActionIndex != indexOfSavedState;
}
//==============================================================================

View file

@ -151,6 +151,11 @@ public:
*/
void setVelocityBasedMode (const bool isVelocityBased) throw();
/** Returns true if velocity-based mode is active.
@see setVelocityBasedMode
*/
bool getVelocityBasedMode() const throw() { return isVelocityBased; }
/** Changes aspects of the scaling used when in velocity-sensitive mode.
These apply when you've used setVelocityBasedMode() to turn on velocity mode,
@ -169,6 +174,26 @@ public:
const double offset = 0.0,
const bool userCanPressKeyToSwapMode = true) throw();
/** Returns the velocity sensitivity setting.
@see setVelocityModeParameters
*/
double getVelocitySensitivity() const throw() { return velocityModeSensitivity; }
/** Returns the velocity threshold setting.
@see setVelocityModeParameters
*/
int getVelocityThreshold() const throw() { return velocityModeThreshold; }
/** Returns the velocity offset setting.
@see setVelocityModeParameters
*/
double getVelocityOffset() const throw() { return velocityModeOffset; }
/** Returns the velocity user key setting.
@see setVelocityModeParameters
*/
bool getVelocityModeIsSwappable() const throw() { return userKeyOverridesVelocity; }
//==============================================================================
/** Sets up a skew factor to alter the way values are distributed.