WAD::Dmxgus
Inherits WritingAdditions::Dmxgus < Reference < Object
"Instrument data for the DMX sound library to use for Gravis Ultrasound soundcards".
Constructors
parse(filename : String | Path) : Dmxgus
Parses a dmxgus file given the filename
Opens a dmxgus file and parses it:
my_dmxgus = WAD::Dmxgus.parse("Path/To/Dmxgus")
parse(io : IO) : 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 methods
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
Instance methods
clone
Returns a copy of self with all instance variables cloned.
instr_datas
instr_datas=(instr_datas : Array(InstrumentData))