diff options
author | David Robillard <d@drobilla.net> | 2007-04-04 18:01:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-04 18:01:08 +0000 |
commit | 74688702fa060fb6aaa413b06deceec6c78d74a6 (patch) | |
tree | 5e4093659298a52d3fba49c379c0692f5328fc77 /src/engine/machina | |
parent | db6f6e87dc4ff620f399597913f14a3b4eda277f (diff) | |
download | machina-74688702fa060fb6aaa413b06deceec6c78d74a6.tar.gz machina-74688702fa060fb6aaa413b06deceec6c78d74a6.tar.bz2 machina-74688702fa060fb6aaa413b06deceec6c78d74a6.zip |
Quantization while recording.
git-svn-id: http://svn.drobilla.net/lad/machina@393 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina')
-rw-r--r-- | src/engine/machina/MachineBuilder.hpp | 6 | ||||
-rw-r--r-- | src/engine/machina/Recorder.hpp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/machina/MachineBuilder.hpp b/src/engine/machina/MachineBuilder.hpp index a01ebd2..ac446c9 100644 --- a/src/engine/machina/MachineBuilder.hpp +++ b/src/engine/machina/MachineBuilder.hpp @@ -30,7 +30,8 @@ class Node; class MachineBuilder { public: - MachineBuilder(SharedPtr<Machine> machine); + MachineBuilder(SharedPtr<Machine> machine, + Raul::BeatTime quantization); void set_time(Raul::BeatTime time) { _time = time; } @@ -54,7 +55,8 @@ private: typedef std::list<std::pair<Raul::BeatTime, SharedPtr<Node> > > PolyList; PolyList _poly_nodes; - + + Raul::BeatTime _quantization; Raul::BeatTime _time; SharedPtr<Machine> _machine; diff --git a/src/engine/machina/Recorder.hpp b/src/engine/machina/Recorder.hpp index b969df0..1bc07c3 100644 --- a/src/engine/machina/Recorder.hpp +++ b/src/engine/machina/Recorder.hpp @@ -31,7 +31,7 @@ class MachineBuilder; class Recorder : public Raul::Slave { public: - Recorder(size_t buffer_size, double tick_rate); + Recorder(size_t buffer_size, double tick_rate, double q); inline void write(Raul::TickTime time, size_t size, const unsigned char* buf) { _record_buffer.write(time, size, buf); |