aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Problem.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-28 02:37:49 +0000
committerDavid Robillard <d@drobilla.net>2009-02-28 02:37:49 +0000
commit1588fc414da6d1a10241ce8711e50610c8ca40fe (patch)
treedce6f6b43db1d97e3d91765a08ef80fb1e3ccafb /src/engine/Problem.cpp
parent35fe71915bb073f73f0717443546f47f6fcc79ba (diff)
downloadmachina-1588fc414da6d1a10241ce8711e50610c8ca40fe.tar.gz
machina-1588fc414da6d1a10241ce8711e50610c8ca40fe.tar.bz2
machina-1588fc414da6d1a10241ce8711e50610c8ca40fe.zip
Make machina work sort of a little bit maybe.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@1945 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/Problem.cpp')
-rw-r--r--src/engine/Problem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/Problem.cpp b/src/engine/Problem.cpp
index c5522e3..6de61a3 100644
--- a/src/engine/Problem.cpp
+++ b/src/engine/Problem.cpp
@@ -90,15 +90,15 @@ Problem::fitness(const Machine& const_machine) const
// FIXME: timing stuff here isn't right at all...
- static const unsigned ppqn = 19200;
+ static const unsigned ppqn = MACHINA_PPQN;
Raul::TimeSlice time(ppqn, ppqn, 120.0);
- time.set_slice(TimeStamp(_unit, 0, 0), TimeDuration(_unit, 2*ppqn));
+ time.set_slice(TimeStamp(_unit, 0, 0), TimeDuration(_unit, 2 * ppqn));
machine.run(time);
if (eval->n_notes() == 0)
return 0.0f; // bad dog
- TimeStamp end(_unit, time.start_ticks().ticks() + 2*ppqn);
+ TimeStamp end(_unit, time.start_ticks().ticks() + 2 * ppqn);
time.set_slice(end, TimeStamp(_unit, 0, 0));
while (eval->n_notes() < _target.n_notes()) {