use crate::core::OxiError;
use crate::SoundFontId;
use crate::Synth;
impl Synth {
pub fn get_cc(&self, chan: u8, ctrl: u16) -> Result<u8, OxiError> {
self.core.get_cc(chan, ctrl)
}
pub fn get_pitch_bend(&self, chan: u8) -> Result<u16, OxiError> {
self.core.get_pitch_bend(chan)
}
pub fn pitch_wheel_sens(&mut self, chan: u8, val: u8) -> Result<(), OxiError> {
self.core.pitch_wheel_sens(chan, val)
}
pub fn get_pitch_wheel_sens(&self, chan: u8) -> Result<u8, OxiError> {
self.core.get_pitch_wheel_sens(chan)
}
pub fn bank_select(&mut self, chan: u8, bank: u32) -> Result<(), OxiError> {
self.core.bank_select(chan, bank)
}
pub fn sfont_select(&mut self, chan: u8, sfont_id: SoundFontId) -> Result<(), OxiError> {
self.core.sfont_select(chan, sfont_id)
}
pub fn program_select(
&mut self,
chan: u8,
sfont_id: SoundFontId,
bank_num: u32,
preset_num: u8,
) -> Result<(), OxiError> {
self.core
.program_select(chan, sfont_id, bank_num, preset_num)
}
pub fn get_program(&self, chan: u8) -> Result<(Option<SoundFontId>, u32, u32), OxiError> {
self.core.get_program(chan)
}
pub fn program_reset(&mut self) {
self.core.program_reset()
}
}