comparison 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
comparison
equal deleted inserted replaced
587:4806715f7a19 589:7ebd5a21d74f
509 * returned value is allocated on the heap and will be deleted by 509 * returned value is allocated on the heap and will be deleted by
510 * the caller. 510 * the caller.
511 */ 511 */
512 virtual RangeMapper *getNewVerticalZoomRangeMapper() const { return 0; } 512 virtual RangeMapper *getNewVerticalZoomRangeMapper() const { return 0; }
513 513
514 //function to override in Layer subclasses in order to handle mouse events
515 //within the layer (e.g. audio feedback when clicking on the piano keyboard notes
516 //in SpectrogramLayer and SpectrumLayer)
517 virtual void processMouseEvent(const View *, QMouseEvent *, int) {}
518
514 public slots: 519 public slots:
515 void showLayer(View *, bool show); 520 void showLayer(View *, bool show);
516 521
517 signals: 522 signals:
518 void modelChanged(); 523 void modelChanged();