summaryrefslogtreecommitdiff
path: root/muse2/muse/steprec.h
blob: b09a9edd8c9127211bbad05af18d1619ae2cef62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//=========================================================
//  MusE
//  Linux Music Editor
//  steprec.h
//  (C) Copyright 2011 Florian Jung (flo93@users.sourceforge.net)
//=========================================================

#ifndef __STEPREC_H__
#define __STEPREC_H__

#include <QObject>
#include <QTimer>

#include "part.h"


class StepRec : public QObject
{
	Q_OBJECT

	public:
		StepRec(bool* note_held_down_array);
		
		void record(Part* part,  int pitch, int len, int step, int velo=80, bool ctrl=false, bool shift=false);
	
	private slots:
	  void timeout();
	
	private:
		QTimer* chord_timer;
		int chord_timer_set_to_tick;
		bool* note_held_down;
		
};

#endif