class

TinySoundFont::Channel

Inherits Reference < Object

Constructors

new(handle : LibTSF::TSF, index : Int32)
Source

Instance methods

bank=(bank : Int32)
Source
bank_preset=(tuple : Tuple(Int32, Int32))
Source
midi_control(controller : Int32, value : Int32)

MIDI control (CC)

Source
note_off(key : Int32)
Source
note_off_all
Source
note_on(key : Int32, velocity : Float32 = 1.0_f32)

Notes

Source
pan=(v : Float32)
Source
pitch_range
Source
pitch_range=(v : Float32)
Source
pitch_wheel
Source
pitch_wheel=(v : Int32)
Source
preset_bank
Source
preset_index

Getters

Source
preset_index=(idx : Int32)

Setters

Source
preset_number
Source
preset_number=(program : Int32)

Setter version (melodic by default)

Source
set_bank_and_preset(bank : Int32, program : Int32)

Explicit method name variant for readability

Source
set_preset_number(program : Int32, drums : Bool = false)

Full control with drums flag

Source
sounds_off_all
Source
sustain=(on : Bool)
Source
tuning
Source
tuning=(v : Float32)
Source
volume
Source
volume=(v : Float32)
Source