class
TinySoundFont::Channel
- TinySoundFont::Channel
- Reference
- Object
Defined in:
tiny_sound_font/channel.crConstructors
Instance Method Summary
- #bank=(bank : Int32)
- #bank_preset=(tuple : Tuple(Int32, Int32))
-
#midi_control(controller : Int32, value : Int32)
MIDI control (CC)
- #note_off(key : Int32)
- #note_off_all
-
#note_on(key : Int32, velocity : Float32 = 1.0_f32)
Notes
- #pan : Float32
- #pan=(v : Float32)
- #pitch_range : Float32
- #pitch_range=(v : Float32)
- #pitch_wheel : Int32
- #pitch_wheel=(v : Int32)
- #preset_bank : Int32
-
#preset_index : Int32
Getters
-
#preset_index=(idx : Int32)
Setters
- #preset_number : Int32
-
#preset_number=(program : Int32)
Setter version (melodic by default)
-
#set_bank_and_preset(bank : Int32, program : Int32)
Explicit method name variant for readability
-
#set_preset_number(program : Int32, drums : Bool = false)
Full control with drums flag
- #sounds_off_all
- #sustain=(on : Bool)
- #tuning : Float32
- #tuning=(v : Float32)
- #volume : Float32
- #volume=(v : Float32)
Constructor Detail
Instance Method Detail
def set_bank_and_preset(bank : Int32, program : Int32)
#
Explicit method name variant for readability