11#include "libsnd2_internal.h"
13s16 SsUtChangePitch(s16 vc, s16 vab_id, s16 prog, s16 old_note, s16 old_fine, s16 new_note, s16 new_fine)
21 if ( (u16)vc >= 0x18u )
23 voice_struct = &_svm_voice[vc];
24 m_vab_id = voice_struct->m_vab_id;
25 if ( m_vab_id != vab_id )
29 m_prog = voice_struct->m_prog;
34 if ( voice_struct->m_note != old_note )
38 _SsVmVSetUp(m_vab_id, m_prog);
39 _svm_cur.m_seq_sep_no = 33;
40 _svm_cur.m_voice_idx = vc;
41 _svm_cur.m_tone = voice_struct->m_tone;
42 _svm_sreg_buf[vc].m_pitch = note2pitch2(new_note, new_fine);
43 _svm_sreg_dirty[vc] |= 4u;