class ZXUtils::MusicBox::Chord
MusicBox
Chord
¶ ↑
Instances of this class represent the chords applicable to the played note's tone.
Public Class Methods
new [counter, nhalftones], ...
click to toggle source
new [counter, nhalftones], ..., :loop, ..., [counter, nhalftones]
Creates an instance of the Chord
with the given tuples defining the chord.
counter
-
For how many ticks the following
nhalftones
should be added to the base note: 1 to 7. nhalftones
-
A number of half-tones added to the base note: 0 to 31.
:loop
-
An indicator where to go back when the end of the chord is being reached. If not present the whole chord is being repeated.
Calls superclass method
ZXUtils::MusicBox::Envelope::new
# File lib/zxutils/music_box/song.rb, line 483 def initialize(*args) super end