Package midi :: Class SmpteOffsetEvent
[hide private]
[frames] | no frames]

Class SmpteOffsetEvent

source code

object --+        
         |        
     Event --+    
             |    
     MetaEvent --+
                 |
                SmpteOffsetEvent

Designates the SMPTE start time (hours, minutes, secs, frames, subframes) of the track. Should be at the start of the track. The hour should not be encoded with the SMPTE format as it is in MIDI Time Code. In a format 1 file, the SMPTE OFFSET must be stored with the tempo map (ie, the first track). The final byte contains fractional frames in 100ths of a frame.

Data should be encoded as 5 bytes: <hour> <min> <sec> <frame> <fractional-frames>.


Note: encoding is not currently implemented, so you need to do it manually and set the data attribute.

Nested Classes [hide private]

Inherited from Event: __metaclass__

Instance Methods [hide private]

Inherited from MetaEvent: decode, encode

Inherited from Event: __cmp__, __init__, __str__, adjust_msdelay, copy, decode_data, encode_data, encode_delta_tick

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from MetaEvent: is_event, is_meta_event

Class Variables [hide private]
  name = 'SMPTE Offset'
  metacommand = 84

Inherited from MetaEvent: allow_running, data, statusmsg

Inherited from Event: length

Instance Variables [hide private]

Inherited from Event: channel, msdelay, order, tick, track, type

Properties [hide private]

Inherited from object: __class__