module WritingAdditions::Genmidi
Overview
"Instrument data for the DMX sound library to use for OPL synthesis".
Direct including types
Defined in:
write/write_music.crInstance Method Summary
-
#write(file : String | Path) : UInt32
Writes a genmidi given an output io and returns the size of the written lump
-
#write(io : IO) : UInt32
Writes a genmidi given an output io and returns the size of the written lump
Instance Method Detail
def write(file : String | Path) : UInt32
#
Writes a genmidi given an output io and returns the size of the written lump
Writes a genmidi in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
my_wad.genmidi.write(file)
def write(io : IO) : UInt32
#
Writes a genmidi given an output io and returns the size of the written lump
Writes a genmidi in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/genmidi.lmp", "w+") do |file|
my_wad.genmidi.write(file)
end