2021-07-03 19:35:04 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-07-05 20:23:13 +01:00
< meta name = "generator" content = "ZealOS V0.06" >
2021-07-03 19:35:04 +01:00
< style type = "text/css" >
body {background-color:#000000;}
.cF0{color:#ffffff;background-color:#000000;}
.cF1{color:#3465a4;background-color:#000000;}
.cF2{color:#4e9a06;background-color:#000000;}
.cF3{color:#06989a;background-color:#000000;}
.cF4{color:#a24444;background-color:#000000;}
.cF5{color:#75507b;background-color:#000000;}
.cF6{color:#ce982f;background-color:#000000;}
.cF7{color:#bcc0b9;background-color:#000000;}
.cF8{color:#555753;background-color:#000000;}
.cF9{color:#729fcf;background-color:#000000;}
.cFA{color:#82bc49;background-color:#000000;}
.cFB{color:#34e2e2;background-color:#000000;}
.cFC{color:#ac3535;background-color:#000000;}
.cFD{color:#ad7fa8;background-color:#000000;}
.cFE{color:#fce94f;background-color:#000000;}
.cFF{color:#000000;background-color:#000000;}
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-03 19:35:04 +01:00
< a name = "l1" > < / a > < span class = cF0 > #< / span > < span class = cF1 > help_index< / span > < span class = cF0 > < / span > < span class = cF6 > " God" < / span > < span class = cF0 >
< a name = "l2" > < / a >
< a name = "l3" > < / a > < / span > < span class = cF5 > DefineListLoad< / span > < span class = cF0 > (< / span > < span class = cF6 > " ST_RHYTHM_COMPLEXITY" < / span > < span class = cF0 > , < / span > < span class = cF6 > " Simple\0Normal\0Complex\0" < / span > < span class = cF0 > );
< a name = "l4" > < / a >
< a name = "l5" > < / a > < / span > < span class = cF1 > class< / span > < span class = cF0 > < / span > < span class = cF9 > CMakeSongSettings< / span > < span class = cF0 >
< a name = "l6" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l7" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > complexity format < / span > < span class = cF6 > " $LS,D=\" ST_RHYTHM_COMPLEXITY\" $\n" < / span > < span class = cF0 > ;
< a name = "l8" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > rests format < / span > < span class = cF6 > " $CB,\" Rests\" $\n" < / span > < span class = cF0 > ;
< a name = "l9" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > six_eight format < / span > < span class = cF6 > " $CB,\" Six Eight\" $\n" < / span > < span class = cF0 > ;
< a name = "l10" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > octave format < / span > < span class = cF6 > " $DA-TRM,A=\" Octave:%d\" $\n" < / span > < span class = cF0 > ;
< a name = "l11" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > octave_state;
2021-07-03 19:35:04 +01:00
< a name = "l12" > < / a > };
< a name = "l13" > < / a >
< a name = "l14" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (< / span > < span class = cF9 > CMakeSongSettings< / span > < span class = cF0 > *mss, < / span > < span class = cF1 > U8< / span > < span class = cF0 > *buf, < / span > < span class = cF9 > I64< / span > < span class = cF0 > k, < / span > < span class = cF9 > I64< / span > < span class = cF0 > *j)
< a name = "l15" > < / a > {< / span > < span class = cF2 > //k is a random note nibble< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l16" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!k & & mss-> rests)
< a name = "l17" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l18" > < / a > buf[*j] = < / span > < span class = cF6 > 'R'< / span > < span class = cF0 > ;
< a name = "l19" > < / a > *j += < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l20" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l21" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l22" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l23" > < / a > k /= < / span > < span class = cFE > 2< / span > < span class = cF0 > ;
< a name = "l24" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (k < < / span > < span class = cFE > 3< / span > < span class = cF0 > )
< a name = "l25" > < / a > {
< a name = "l26" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (mss-> octave_state != mss-> octave)
< a name = "l27" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l28" > < / a > mss-> octave_state = mss-> octave;
< a name = "l29" > < / a > buf[*j] = mss-> octave_state + < / span > < span class = cF6 > '0'< / span > < span class = cF0 > ;
< a name = "l30" > < / a > *j += < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l31" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l32" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!k)
< a name = "l33" > < / a > buf[*j] = < / span > < span class = cF6 > 'G'< / span > < span class = cF0 > ;
< a name = "l34" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l35" > < / a > buf[*j] = k - < / span > < span class = cFE > 1< / span > < span class = cF0 > + < / span > < span class = cF6 > 'A'< / span > < span class = cF0 > ;
< a name = "l36" > < / a > *j += < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l37" > < / a > }
< a name = "l38" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l39" > < / a > {
< a name = "l40" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (mss-> octave_state != mss-> octave + < / span > < span class = cFE > 1< / span > < span class = cF0 > )
< a name = "l41" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l42" > < / a > mss-> octave_state = mss-> octave + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l43" > < / a > buf[*j] = mss-> octave_state + < / span > < span class = cF6 > '0'< / span > < span class = cF0 > ;
< a name = "l44" > < / a > *j += < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l45" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l46" > < / a > buf[*j] = k - < / span > < span class = cFE > 1< / span > < span class = cF0 > + < / span > < span class = cF6 > 'A'< / span > < span class = cF0 > ;
< a name = "l47" > < / a > *j += < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l48" > < / a > }
< a name = "l49" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 19:35:04 +01:00
< a name = "l50" > < / a > }
< a name = "l51" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l52" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > < / span > < span class = cFE > 0< / span > < span class = cF0 >
< a name = "l53" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > < / span > < span class = cFE > 1< / span > < span class = cF0 >
< a name = "l54" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_3_3_3< / span > < span class = cF0 > < / span > < span class = cFE > 2< / span > < span class = cF0 >
2021-07-03 19:35:04 +01:00
< a name = "l55" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > < / span > < span class = cFE > 3< / span > < span class = cF0 >
< a name = "l56" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_8DOT_16< / span > < span class = cF0 > < / span > < span class = cFE > 4< / span > < span class = cF0 >
< a name = "l57" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_8_16_16< / span > < span class = cF0 > < / span > < span class = cFE > 5< / span > < span class = cF0 >
< a name = "l58" > < / a > #< / span > < span class = cF1 > define< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_16_16_8< / span > < span class = cF0 > < / span > < span class = cFE > 6< / span > < span class = cF0 >
< a name = "l59" > < / a >
< a name = "l60" > < / a >
< a name = "l61" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > < / span > < span class = cFB > god_simple_songs< / span > < span class = cF0 > [< / span > < span class = cFE > 5< / span > < span class = cF0 > ] = {< / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > };
< a name = "l62" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > < / span > < span class = cFB > god_normal_songs< / span > < span class = cF0 > [< / span > < span class = cFE > 5< / span > < span class = cF0 > ] = {< / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_3_3_3< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > };
< a name = "l63" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > < / span > < span class = cFB > god_complex_songs< / span > < span class = cF0 > [< / span > < span class = cFE > 9< / span > < span class = cF0 > ] = {< / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_8DOT_16< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_3_3_3< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_8_16_16< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_16_16_8< / span > < span class = cF0 > , < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > };
< a name = "l64" > < / a >
< a name = "l65" > < / a > < / span > < span class = cF1 > public< / span > < span class = cF0 > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF5 > GodSongStr< / span > < span class = cF0 > ()
2021-07-05 01:57:09 +01:00
< a name = "l66" > < / a > {< / span > < span class = cF2 > //Make God generate 2 measures of a song. < / span > < a href = "https://tomawezome.github.io/ZealOS/System/God/HSNotes.DD.html#l1" > < span class = cF4 > Holy Spirit Instructions< / span > < / a > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l67" > < / a > < / span > < span class = cF9 > CMakeSongSettings< / span > < span class = cF0 > mss;
< a name = "l68" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *buf;
< a name = "l69" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, j=< / span > < span class = cFE > 0< / span > < span class = cF0 > , k, n, k2, duration, last_duration = -< / span > < span class = cFE > 1< / span > < span class = cF0 > , len;
2021-07-03 19:35:04 +01:00
< a name = "l70" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l71" > < / a > < / span > < span class = cF5 > MemSet< / span > < span class = cF0 > (& mss, < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF1 > sizeof< / span > < span class = cF7 > (< / span > < span class = cF0 > mss< / span > < span class = cF7 > )< / span > < span class = cF0 > );
< a name = "l72" > < / a > mss.complexity = < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l73" > < / a > mss.rests = < / span > < span class = cF3 > FALSE< / span > < span class = cF0 > ;
< a name = "l74" > < / a > mss.octave = < / span > < span class = cFB > music< / span > < span class = cF0 > .octave;
2021-07-03 19:35:04 +01:00
< a name = "l75" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l76" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > PopUpForm< / span > < span class = cF7 > (< / span > < span class = cF0 > & mss< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l77" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l78" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l79" > < / a > buf = < / span > < span class = cF5 > CAlloc< / span > < span class = cF0 > (< / span > < span class = cFE > 256< / span > < span class = cF0 > );
< a name = "l80" > < / a > < / span > < span class = cFB > music< / span > < span class = cF0 > .octave = mss.octave=< / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (mss.octave, < / span > < span class = cFE > 1< / span > < span class = cF0 > , < / span > < span class = cFE > 7< / span > < span class = cF0 > );
< a name = "l81" > < / a > < / span > < span class = cFB > progress4< / span > < span class = cF0 > = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l82" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (mss.six_eight)
< a name = "l83" > < / a > < / span > < span class = cFB > progress4_max< / span > < span class = cF0 > = < / span > < span class = cFE > 6< / span > < span class = cF0 > ;
< a name = "l84" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l85" > < / a > < / span > < span class = cFB > progress4_max< / span > < span class = cF0 > = < / span > < span class = cFE > 8< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l86" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l87" > < / a > mss.octave_state = mss.octave + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l88" > < / a > buf[j++] = < / span > < span class = cF6 > '0'< / span > < span class = cF0 > + mss.octave_state;
< a name = "l89" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (mss.six_eight)
< a name = "l90" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l91" > < / a > len = < / span > < span class = cFE > 6< / span > < span class = cF0 > ;
< a name = "l92" > < / a > buf[j++] = < / span > < span class = cF6 > 'M'< / span > < span class = cF0 > ;
< a name = "l93" > < / a > buf[j++] = < / span > < span class = cF6 > '6'< / span > < span class = cF0 > ;
< a name = "l94" > < / a > buf[j++] = < / span > < span class = cF6 > '/'< / span > < span class = cF0 > ;
< a name = "l95" > < / a > buf[j++] = < / span > < span class = cF6 > '8'< / span > < span class = cF0 > ;
< a name = "l96" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l97" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l98" > < / a > len = < / span > < span class = cFE > 8< / span > < span class = cF0 > ;
< a name = "l99" > < / a > < / span > < span class = cF5 > FifoU8Flush< / span > < span class = cF0 > (< / span > < span class = cFB > god< / span > < span class = cF0 > .fifo);
< a name = "l100" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < len; i++)
< a name = "l101" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l102" > < / a > n = < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF0 > (< / span > < span class = cFE > 8< / span > < span class = cF0 > );
< a name = "l103" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (mss.complexity == < / span > < span class = cFE > 2< / span > < span class = cF0 > )
< a name = "l104" > < / a > duration = < / span > < span class = cFB > god_complex_songs< / span > < span class = cF0 > [n % < / span > < span class = cFE > 9< / span > < span class = cF0 > ];
< a name = "l105" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (mss.complexity == < / span > < span class = cFE > 1< / span > < span class = cF0 > )
< a name = "l106" > < / a > duration = < / span > < span class = cFB > god_normal_songs< / span > < span class = cF0 > [n % < / span > < span class = cFE > 5< / span > < span class = cF0 > ];
< a name = "l107" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l108" > < / a > duration = < / span > < span class = cFB > god_simple_songs< / span > < span class = cF0 > [n % < / span > < span class = cFE > 5< / span > < span class = cF0 > ];
2021-07-03 19:35:04 +01:00
< a name = "l109" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l110" > < / a > < / span > < span class = cF1 > switch< / span > < span class = cF0 > (duration)
< a name = "l111" > < / a > {
< a name = "l112" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > :
< a name = "l113" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (last_duration != < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > )
< a name = "l114" > < / a > buf[j++] = < / span > < span class = cF6 > 'e'< / span > < span class = cF0 > ;
< a name = "l115" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l116" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l117" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l118" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l119" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_8DOT_16< / span > < span class = cF0 > :
< a name = "l120" > < / a > buf[j++] = < / span > < span class = cF6 > 'e'< / span > < span class = cF0 > ;
< a name = "l121" > < / a > buf[j++] = < / span > < span class = cF6 > '.'< / span > < span class = cF0 > ;
< a name = "l122" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l123" > < / a > buf[j++] = < / span > < span class = cF6 > 's'< / span > < span class = cF0 > ;
< a name = "l124" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l125" > < / a > duration = < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > ;
< a name = "l126" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l127" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l128" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_3_3_3< / span > < span class = cF0 > :
< a name = "l129" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (last_duration != < / span > < span class = cF3 > DUR_3_3_3< / span > < span class = cF0 > )
< a name = "l130" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l131" > < / a > buf[j++] = < / span > < span class = cF6 > 'e'< / span > < span class = cF0 > ;
< a name = "l132" > < / a > buf[j++] = < / span > < span class = cF6 > 't'< / span > < span class = cF0 > ;
< a name = "l133" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l134" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l135" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l136" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l137" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l138" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l139" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_8_16_16< / span > < span class = cF0 > :
< a name = "l140" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (last_duration != < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > )
< a name = "l141" > < / a > buf[j++] = < / span > < span class = cF6 > 'e'< / span > < span class = cF0 > ;
< a name = "l142" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l143" > < / a > buf[j++] = < / span > < span class = cF6 > 's'< / span > < span class = cF0 > ;
< a name = "l144" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l145" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l146" > < / a > duration = < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > ;
< a name = "l147" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l148" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l149" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_16_16_8< / span > < span class = cF0 > :
< a name = "l150" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (last_duration != < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > )
< a name = "l151" > < / a > buf[j++] = < / span > < span class = cF6 > 's'< / span > < span class = cF0 > ;
< a name = "l152" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l153" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l154" > < / a > buf[j++] = < / span > < span class = cF6 > 'e'< / span > < span class = cF0 > ;
< a name = "l155" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l156" > < / a > duration = < / span > < span class = cF3 > DUR_8_8< / span > < span class = cF0 > ;
< a name = "l157" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l158" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l159" > < / a > < / span > < span class = cF1 > case< / span > < span class = cF0 > < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > :
< a name = "l160" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (last_duration != < / span > < span class = cF3 > DUR_16_16_16_16< / span > < span class = cF0 > )
< a name = "l161" > < / a > buf[j++] = < / span > < span class = cF6 > 's'< / span > < span class = cF0 > ;
< a name = "l162" > < / a > k = < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF0 > (< / span > < span class = cFE > 4< / span > < span class = cF0 > );
< a name = "l163" > < / a > k2 = < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF0 > (< / span > < span class = cFE > 4< / span > < span class = cF0 > );
< a name = "l164" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, k, & j);
< a name = "l165" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, k2, & j);
< a name = "l166" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, k, & j);
< a name = "l167" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, k2, & j);
< a name = "l168" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l169" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l170" > < / a > < / span > < span class = cF1 > default< / span > < span class = cF0 > :
< a name = "l171" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (last_duration != < / span > < span class = cF3 > DUR_4< / span > < span class = cF0 > )
< a name = "l172" > < / a > buf[j++] = < / span > < span class = cF6 > 'q'< / span > < span class = cF0 > ;
< a name = "l173" > < / a > < / span > < span class = cF5 > InsertNote< / span > < span class = cF0 > (& mss, buf, < / span > < span class = cF5 > GodBitsRemove< / span > < span class = cF7 > (< / span > < span class = cFE > 4< / span > < span class = cF7 > )< / span > < span class = cF0 > , & j);
< a name = "l174" > < / a > }
< a name = "l175" > < / a > last_duration = duration;
< a name = "l176" > < / a > < / span > < span class = cFB > progress4< / span > < span class = cF0 > ++;
< a name = "l177" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l178" > < / a > buf[j++] = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l179" > < / a > < / span > < span class = cFB > progress4< / span > < span class = cF0 > = < / span > < span class = cFB > progress4_max< / span > < span class = cF0 > = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l180" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > buf;
2021-07-03 19:35:04 +01:00
< a name = "l181" > < / a > }
< a name = "l182" > < / a >
< a name = "l183" > < / a > < / span > < span class = cF1 > public< / span > < span class = cF0 > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GodSong< / span > < span class = cF0 > ()
2021-07-05 01:57:09 +01:00
< a name = "l184" > < / a > {< / span > < span class = cF2 > //Make God generate 2measuresx2+2measuresx2. < / span > < a href = "https://tomawezome.github.io/ZealOS/System/God/HSNotes.DD.html#l1" > < span class = cF4 > Holy Spirit Instructions< / span > < / a > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l185" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *st1 = < / span > < span class = cF5 > GodSongStr< / span > < span class = cF0 > ,
< a name = "l186" > < / a > *st2 = < / span > < span class = cF5 > GodSongStr< / span > < span class = cF0 > ;
2021-07-03 19:35:04 +01:00
< a name = "l187" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l188" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (st1 & & st2)
< a name = "l189" > < / a > < / span > < span class = cF5 > DocPrint< / span > < span class = cF0 > (< / span > < span class = cF5 > DocPut< / span > < span class = cF0 > , < / span > < span class = cF6 > " $SO,\" < Song> \" ,A=\" %s%s%s%s\" $" < / span > < span class = cF0 > , st1, st1, st2, st2);
< a name = "l190" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st1);
< a name = "l191" > < / a > < / span > < span class = cF5 > Free< / span > < span class = cF0 > (st2);
2021-07-03 19:35:04 +01:00
< a name = "l192" > < / a > }
< / span > < / pre > < / body >
< / html >