class WAD::Dmxgus
- WAD::Dmxgus
- Reference
- Object
Overview
"Instrument data for the DMX sound library to use for Gravis Ultrasound soundcards".
Included Modules
Defined in:
wa-cr/wad/wad-data/music.crwrite.cr
Constructors
-
.parse(filename : String | Path) : Dmxgus
Parses a dmxgus file given the filename
-
.parse(io : IO) : Dmxgus
Parses a dmxgus file given the io
Class Method Summary
-
.is_dmxgus?(name : String)
Checks to see if name is "DMXGUS"
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned. - #instr_datas : Array(InstrumentData)
- #instr_datas=(instr_datas : Array(InstrumentData))
Instance methods inherited from module WritingAdditions::Dmxgus
write(file : String | Path) : UInt32write(io : IO) : UInt32 write
Constructor Detail
Parses a dmxgus file given the filename
Opens a dmxgus file and parses it:
my_dmxgus = WAD::Dmxgus.parse("Path/To/Dmxgus")
Parses a dmxgus file given the io
Opens a dmxgus io and parses it:
File.open("Path/To/Dmxgus") do |file|
my_dmxgus = WAD::Dmxgus.parse(file)
end
Class Method Detail
def self.is_dmxgus?(name : String)
#
Checks to see if name is "DMXGUS"
Returns true if the name is a dmxgus:
dmxgus_name = "DMXGUS"
if WAD::Dmxgus.is_dmxgus?(dmxgus_name)
puts "Is a Dmxgus"
else
puts "Is not a Dmxgus"
end