diff base/Layer.cpp @ 28:4b16526b011b

* Add LED button * Add note model playback (currently assuming that value == MIDI pitch) * Reorganise PlayParameters and move repository from ViewManager to new PlayParameterRepository class
author Chris Cannam
date Wed, 15 Feb 2006 17:58:35 +0000
parents 47500c27ac26
children 8460b3bf8f04
line wrap: on
line diff
--- a/base/Layer.cpp	Tue Feb 14 17:43:14 2006 +0000
+++ b/base/Layer.cpp	Wed Feb 15 17:58:35 2006 +0000
@@ -13,6 +13,7 @@
 #include <iostream>
 
 #include "layer/LayerFactory.h" //!!! shouldn't be including this here -- does that suggest we need to move this into layer/ ?
+#include "PlayParameterRepository.h"
 
 Layer::Layer(View *w)
 {
@@ -73,6 +74,18 @@
     return s;
 }
 
+PlayParameters *
+Layer::getPlayParameters() const
+{
+    const Model *model = getModel();
+    if (model) {
+	return PlayParameterRepository::instance()->getPlayParameters(model);
+    }
+    return 0;
+}
+
+
+
 #ifdef INCLUDE_MOCFILES
 #include "Layer.moc.cpp"
 #endif