|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 68 of file channel.hpp.
#include <channel.hpp>
Public Member Functions | |
| void | write_input_mono (const float *src, uint16_t n) |
| Write mono input — channel spreads to both L/R on process(). | |
| void | write_input_stereo (const float *src_l, const float *src_r, uint16_t n) |
| Write stereo input. | |
| void | set_gain_su (float su) |
| Port: channel gain level [0,1]. | |
| void | set_pan_su (float su) |
| Port: pan position [0,1]. 0=L, 0.5=center, 1=R. | |
| void | set_send_level_su (uint8_t send_index, float su) |
| Port: send level [0,1] for send at index. | |
| void | set_format (Format f) |
| void | set_mute (bool m) |
| void | set_solo (bool s) |
| void | set_fader_taper (comp::Taper t) |
| void | add_send (uint8_t target, float initial_level, SendType type=SendType::PostFader) |
| Configure a send at init time. Default taper is Audio for send faders. | |
| void | process (uint16_t n) |
| const float * | post_l () const |
| const float * | post_r () const |
| float | fader_gain () const |
| bool | muted () const |
| bool | soloed () const |
| Format | format () const |
| uint8_t | send_count () const |
| const Send & | send (uint8_t i) const |
| Send & | send (uint8_t i) |
| comp::Fader & | fader () |
| comp::Pan & | pan () |
Public Attributes | |
| float | buf_l [MaxFrames] = {} |
| float | buf_r [MaxFrames] = {} |
|
inline |
Write mono input — channel spreads to both L/R on process().
Definition at line 78 of file channel.hpp.
References sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_l.
|
inline |
Write stereo input.
Definition at line 84 of file channel.hpp.
References sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_l, and sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_r.
|
inline |
Port: channel gain level [0,1].
Definition at line 94 of file channel.hpp.
References sbl::dsp::comp::Fader::set_level_su().
|
inline |
Port: pan position [0,1]. 0=L, 0.5=center, 1=R.
Definition at line 97 of file channel.hpp.
References sbl::dsp::comp::Pan::set_position_su().
|
inline |
Port: send level [0,1] for send at index.
Definition at line 100 of file channel.hpp.
References sbl::dsp::widgets::Send::level, and sbl::dsp::comp::Fader::set_level_su().
|
inline |
Definition at line 108 of file channel.hpp.
|
inline |
Definition at line 109 of file channel.hpp.
|
inline |
Definition at line 110 of file channel.hpp.
|
inline |
Definition at line 111 of file channel.hpp.
References sbl::dsp::comp::Fader::set_taper().
|
inline |
Configure a send at init time. Default taper is Audio for send faders.
Definition at line 116 of file channel.hpp.
References sbl::dsp::comp::Audio, sbl::dsp::widgets::Send::level, sbl::dsp::comp::Fader::set_level_su(), sbl::dsp::comp::Fader::set_taper(), sbl::dsp::widgets::Send::target, and sbl::dsp::widgets::Send::type.
|
inline |
Process the full channel strip: mono spread, fader gain, pan. After this call, post_l()/post_r() contain the master-ready output. buf_l/buf_r remain unmodified (pre-pan, pre-fader) for send routing.
Definition at line 132 of file channel.hpp.
References sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_l, sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_r, sbl::dsp::widgets::Mono, sbl::dsp::comp::Pan::process(), and sbl::dsp::comp::Fader::tick().
|
inline |
Definition at line 153 of file channel.hpp.
|
inline |
Definition at line 154 of file channel.hpp.
|
inline |
Definition at line 158 of file channel.hpp.
References sbl::dsp::comp::Fader::gain().
|
inline |
Definition at line 159 of file channel.hpp.
|
inline |
Definition at line 160 of file channel.hpp.
|
inline |
Definition at line 161 of file channel.hpp.
|
inline |
Definition at line 162 of file channel.hpp.
|
inline |
Definition at line 163 of file channel.hpp.
|
inline |
Definition at line 164 of file channel.hpp.
|
inline |
Definition at line 166 of file channel.hpp.
|
inline |
Definition at line 167 of file channel.hpp.
| float sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_l[MaxFrames] = {} |
| float sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::buf_r[MaxFrames] = {} |
Definition at line 73 of file channel.hpp.
Referenced by sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::process(), and sbl::dsp::widgets::Channel< MaxFrames, MaxSends >::write_input_stereo().