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.



226
227
228
229
230
# File 'lib/api/dist.rb', line 226

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

#HitSqObject



140
141
142
143
144
# File 'lib/api/hit_sq.rb', line 140

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



69
70
71
72
73
# File 'lib/api/snd.rb', line 69

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