11#include "libsnd2_internal.h"
13void _SsContNrpn2(s16 sep_no, s16 seq_no, u8 control_value)
17 score_struct = &_ss_score[sep_no][seq_no];
18 if ( control_value == 20 )
20 score_struct->m_unk1B = control_value;
21 score_struct->m_unk1C = 1;
22 score_struct->m_delta_value = _SsReadDeltaValue(sep_no, seq_no);
23 score_struct->m_unk08 = score_struct->m_seq_ptr;
26 if ( control_value != 30 )
28 score_struct->m_unk1B = control_value;
29 score_struct->m_unk1F += 1;
30 score_struct->m_delta_value = _SsReadDeltaValue(sep_no, seq_no);
33 score_struct->m_unk1B = control_value;
34 if ( score_struct->m_unk1D == 0 )
36 score_struct->m_unk15 = 0;
37 score_struct->m_delta_value = _SsReadDeltaValue(sep_no, seq_no);
40 if ( score_struct->m_unk1D >= 0x7Fu )
42 _SsReadDeltaValue(sep_no, seq_no);
43 score_struct->m_delta_value = 0;
44 score_struct->m_seq_ptr = score_struct->m_unk08;
48 score_struct->m_unk1D -= 1;
49 score_struct->m_delta_value = _SsReadDeltaValue(sep_no, seq_no);
50 if ( score_struct->m_unk1D )
51 score_struct->m_seq_ptr = score_struct->m_unk08;
53 score_struct->m_unk15 = 0;