Logo Search packages:      
Sourcecode: ardour version File versions

void TimeAxisViewItem::set_samples_per_unit ( double  spu  )  [virtual]

Sets the samples per unit of this item. this item is used to determine the relative visual size and position of this item based upon its duration and start value.

spu the new samples per unit value

Definition at line 832 of file time_axis_view_item.cc.

References get_duration(), get_position(), samples_per_unit, and set_position().

      samples_per_unit = spu ;
      set_position (this->get_position(), this);
      reset_width_dependent_items ((double)get_duration() / samples_per_unit);

Generated by  Doxygen 1.6.0   Back to index