Sequence

Type Alias Sequence 

Source
pub type Sequence = ArrayAtomBody<SequenceHeader, u8>;
Expand description

Atom tuple with time stamps for every contained atom.

Sequences are used to express real-time events that should be handled with frame- or beat-perfect timing, for example midi events.

See the module documentation for more information.

Aliased Type§

#[repr(C)]
pub struct Sequence { pub header: SequenceHeader, pub data: [u8], }

Fields§

§header: SequenceHeader§data: [u8]

Implementations§

Source§

impl Sequence

Source

pub fn time_unit(&self, urids: &mut CachedMap) -> TimeUnit

Source

pub fn iter<'a>( &'a self, urids: &mut CachedMap, ) -> impl Iterator<Item = (TimeStamp, &'a Atom)>

Trait Implementations§

Source§

impl AtomBody for Sequence

Source§

type InitializationParameter = TimeUnit

The type of the parameter for initialize_body Read more
Source§

fn get_uri() -> &'static CStr

Return the URI of the atom type.
Source§

unsafe fn initialize_body<'a, W>( writer: &mut W, parameter: &TimeUnit, urids: &mut CachedMap, ) -> Result<(), ()>
where W: WritingFrame<'a> + WritingFrameExt<'a, Self>,

Write out a basic but valid atom body. Read more
Source§

fn create_ref<'a>(raw_data: &'a [u8]) -> Result<&'a Self, ()>

Try to create a Self reference from a slice of raw data. Read more