Commit 2d7d3d0d authored by jhammen's avatar jhammen
Browse files

fix smf file example, type 1 by default

parent 56d75c48
......@@ -11,15 +11,9 @@ We can create a new, empty SMF file by calling the Midi.File constructor with no
smf <- Midi.File()
/**
SMF files can be of type 0, 1 or 2, a new file object created as above will be type 0 by default. We'd like to make a type 1 file here
so we can set the type property:
*/
smf.type = 1
/**
The first track of a type 1 SMF file typically holds metadata about the piece including e.g. musical key signature and tempo. We can
create such a track by creating a new Midi.Sequence and adding these meta events:
SMF files can be of type 0, 1 or 2, a new file object created as above will be type 1 by default. The first track of a type 1 SMF file
typically holds metadata about the piece including e.g. musical key signature and tempo. We can create such a track by creating a new
Midi.Sequence and adding these meta events:
*/
local seq0 = Midi.Sequence()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment