Ardour
8.12
beatbox.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2017 Paul Davis
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18
*/
19
20
#ifndef __ardour_beatbox_h__
21
#define __ardour_beatbox_h__
22
23
#include <algorithm>
24
#include <vector>
25
#include <set>
26
#include <cstring>
27
28
#include <stdint.h>
29
30
#include "
pbd/pool.h
"
31
#include "
pbd/ringbuffer.h
"
32
33
#include "
temporal/bbt_time.h
"
34
#include "temporal/superclock.h
35
36
#include "
ardour/midi_state_tracker.h
"
37
#include "
ardour/processor.h
"
38
39
namespace ARDOUR {
40
41
class Source;
42
class SMFSource;
43
class StepSequencer;
44
45
typedef uint64_t superclock_t;
46
47
class BeatBox : public ARDOUR::Processor {
48
public:
49
BeatBox (ARDOUR::Session& s);
50
~BeatBox ();
51
52
StepSequencer& sequencer() const { return *_sequencer; }
53
54
void run (BufferSet& /*bufs*/, samplepos_t /*start_frame*/, samplepos_t /*end_frame*/, double speed, pframes_t /*nframes*/, bool /*result_required*/);
55
void silence (samplecnt_t nframes, samplepos_t start_frame);
56
bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
57
58
XMLNode& state() const;
59
XMLNode& get_state () const;
60
61
bool fill_source (std::shared_ptr<Source>);
62
63
private:
64
StepSequencer* _sequencer;
65
66
ARDOUR::MidiNoteTracker inbound_tracker;
67
68
bool fill_midi_source (std::shared_ptr<SMFSource>);
69
70
};
71
72
} /* namespace */
73
74
#endif /* __ardour_beatbox_h__ */
bbt_time.h
pool.h
ringbuffer.h
libs
ardour
ardour
beatbox.h
Generated on Mon Mar 10 2025 20:26:20 for Ardour by
1.9.1