Class: Float

Inherits:
Object show all
Defined in:
lib/api/hit_sq.rb,
lib/api/snd.rb,
lib/api/dist.rb

Overview

shortcut e.g. 0.5.HitSq

Instance Method Summary collapse

Instance Method Details

#DistObject

shortcut to create a Dist with one hit in its #hits. e.g. 0.1.Dist returns a new Dist with, a single hit at 0.1.



294
295
296
297
298
# File 'lib/api/dist.rb', line 294

def Dist
  h=Dist.new
  h<<self
  h
end

#HitSqObject



155
156
157
158
159
# File 'lib/api/hit_sq.rb', line 155

def HitSq
  h=HitSq.new
  h<<self
  h
end

#SndObject

return a new Snd with its frequency set to the value. e.g. 500.4.Snd



88
89
90
91
92
# File 'lib/api/snd.rb', line 88

def Snd
  a = Snd.new
  a.tonepart.freq = self
  a
end