blob: 02eab46cd1dce53c1b8b6f42179a7ca6b9803bed (
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
|
//=========================================================
// 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;
unsigned int chord_timer_set_to_tick;
bool* note_held_down;
};
#endif
|