module ZXUtils::MusicBox::InstrumentCommands

MusicBox InstrumentCommands

Instrument only commands.

Public Instance Methods

sub(instrument_name)
Alias for: sub_instrument
sub_instrument instrument_name click to toggle source
sub instrument_name

Yields execution of the instrument to another with the given instrument_name as a symbol or string. When the sub-instrument execution is finished, the yielding instrument will resume execution.

# File lib/zxutils/music_box/track.rb, line 521
def sub_instrument(instrument_name)
        @commands << SubInstrumentCommand.new(instrument_name)
        @commands.length
end
Also aliased as: sub