Class: Float
- 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
-
#Dist ⇒ Object
shortcut to create a Dist with one hit in its #hits.
- #HitSq ⇒ Object
-
#Snd ⇒ Object
return a new Snd with its frequency set to the value.
Instance Method Details
#Dist ⇒ Object
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 |
#HitSq ⇒ Object
155 156 157 158 159 |
# File 'lib/api/hit_sq.rb', line 155 def HitSq h=HitSq.new h<<self h end |
#Snd ⇒ Object
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 |