Sha256: 3a784d521d590cf80a32074fda8adf6ae6d688bd5196491d7c26fb9463693305
Contents?: true
Size: 651 Bytes
Versions: 45
Compression:
Stored size: 651 Bytes
Contents
# # +Numeric+ # # extensions that apply to any number # class Numeric # # +DEFAULT_PITCH_FORK+ is our 'A' (or +La+) standard # DEFAULT_PITCH_FORK = 440.0 MIDI_PITCH_FORK = 69.0 # # @@pitch_fork = DEFAULT_PITCH_FORK class << self # # +pitch_fork=(value)+: sets the current tuning # def pitch_fork=(value) @@pitch_fork = value end # # +pitch_fork(value)+: gets the current tuning # def pitch_fork @@pitch_fork end # # +reset_pitch_fork+: resets the pitch fork to its default # def reset_pitch_fork @@pitch_fork = DEFAULT_PITCH_FORK end end end
Version data entries
45 entries across 45 versions & 1 rubygems