class WAD::Dmxgus

Overview

"Instrument data for the DMX sound library to use for Gravis Ultrasound soundcards".

Included Modules

Defined in:

wa-cr/wad/wad-data/music.cr
write.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module WritingAdditions::Dmxgus

write(file : String | Path) : UInt32
write(io : IO) : UInt32
write

Constructor Detail

def self.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")

def self.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 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

Instance Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


def instr_datas : Array(InstrumentData) #

def instr_datas=(instr_datas : Array(InstrumentData)) #