add("base", &Loader::base);
add("define_action", &Loader::define_action);
add("instant", &Loader::instant);
+ add("repeat", &Loader::repeat);
add("segment", &Loader::segment);
}
segment(beat, beat);
}
+void Sequencer::Loader::repeat(float b, float d, unsigned n)
+{
+ for(unsigned i=0; i<n; ++i)
+ {
+ SetForScope<float> set_base(base_beat, base_beat+b+i*d);
+ load_sub_with(*this);
+ }
+}
+
void Sequencer::Loader::segment(float start, float end)
{
SegmentLoader ldr(obj, base_beat+start, base_beat+end, demo);
void base(float);
void define_action(const std::string &);
void instant(float);
+ void repeat(float, float, unsigned);
void segment(float, float);
};