PianoRoll: reset last note volume/panning when clearing project

In order to get a uniform behaviour when starting with a new project or
opening another project, reset volume and panning of last edited note so
new placed notes have default volume and panning.

Closes #644.
This commit is contained in:
Tobias Doerffel
2014-04-30 10:48:40 +02:00
parent 5552fc110a
commit e9073c88bc
3 changed files with 17 additions and 0 deletions

View File

@@ -53,6 +53,9 @@ class PianoRoll : public QWidget, public SerializingObject
{
Q_OBJECT
public:
/*! \brief Resets settings to default when e.g. creating a new project */
void reset();
void setCurrentPattern( pattern * _new_pattern );
inline void stopRecording()