SMF module

Classes

Sequence

Super Class

Object

Included Modules

Enumerable

Class Methods

decode(str)
read(io)
load(fn)

Creates a sequence object with string, IO or file. The three methods decode(), read() and load() replace NoteOn with NoteOff when its velocity is zero.

new([format=1[, division=96[,tc=nil]]])

Creates an empty sequence object.

Accessors

format
division
tc

References the each element of the header.

Methods

This nearly have all methods of array object. In addition, this also have the following methods.

ntrks
self >> tr
each{|tr| …}
join
join!
encode
write(io)
save(fn)

The iterator each{} ignores all nil elements.

Track

Super Class

Object

Included Modules

Enumerable

Class Methods

new

Creates an empty track object.

Methods

This nearly have all methods of array object. In addition, this also have the following methods.

nevts
self >> ev
each{|ev| …}

The iterator each{} ignores all nil elements and sorts events (stable).

Event

Super Class

Object

Included Modules

Comparable

Accessors

offset

References the offset.