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.
226 227 228 229 230 |
# File 'lib/api/dist.rb', line 226 def Dist h=Dist.new h<<self h end |
#HitSq ⇒ Object
140 141 142 143 144 |
# File 'lib/api/hit_sq.rb', line 140 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
69 70 71 72 73 |
# File 'lib/api/snd.rb', line 69 def Snd a = Snd.new a.tonepart.freq = self a end |