Mercurial > hg > svgui
diff layer/Layer.h @ 589:7ebd5a21d74f sonification
Branch to handle audio feedback and metadata sonification interactively with the UI.
Piano keyboard audio feedback:
The midi pitch of a piano keyboard note is retrieved in SpectrogramLayer::processMouseEvent when a left click is made on the note in the Select tool mode (SpectrogramLayer with a log frequency scale). The same process should be applied to the Spectrum layer (log frequency scale) as well.
author | mathieub <mathieu.barthet@eecs.qmul.ac.uk> |
---|---|
date | Wed, 22 Jun 2011 00:04:21 +0100 |
parents | 4c484636d5ec |
children | 241929c5d57c |
line wrap: on
line diff
--- a/layer/Layer.h Tue Jun 14 15:27:05 2011 +0100 +++ b/layer/Layer.h Wed Jun 22 00:04:21 2011 +0100 @@ -511,6 +511,11 @@ */ virtual RangeMapper *getNewVerticalZoomRangeMapper() const { return 0; } + //function to override in Layer subclasses in order to handle mouse events + //within the layer (e.g. audio feedback when clicking on the piano keyboard notes + //in SpectrogramLayer and SpectrumLayer) + virtual void processMouseEvent(const View *, QMouseEvent *, int) {} + public slots: void showLayer(View *, bool show);