public void init( VsqFileEx sequence, int track, int start_clock, int end_clock, int sample_rate ) { sequence_ = (VsqFileEx)sequence.Clone(); sequence_.updateTotalClocks(); sequence_.removePart( end_clock, sequence_.TotalClocks ); sequence_.removePart( 0, start_clock ); sequence_.updateTotalClocks(); sequence_.updateTempoInfo(); sequence_.updateTimesigInfo(); track_index_ = track; sample_rate_ = sample_rate; is_running_ = false; position_ = 0; }
public void init(VsqFileEx sequence, int track, int start_clock, int end_clock, int sample_rate) { sequence_ = (VsqFileEx)sequence.Clone(); sequence_.updateTotalClocks(); sequence_.removePart(end_clock, sequence_.TotalClocks); sequence_.removePart(0, start_clock); sequence_.updateTotalClocks(); sequence_.updateTempoInfo(); sequence_.updateTimesigInfo(); track_index_ = track; sample_rate_ = sample_rate; is_running_ = false; position_ = 0; }