ZealOS/docs/Apps/Psalmody/Psalmody.html
TomAwezome 5002ed5880 Fix HTML index file generation.
Fix HTML generation tab width.
2021-07-04 18:11:43 -04:00

92 lines
7.6 KiB
HTML
Executable file

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
<meta name="generator" content="ZealOS V0.05">
<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>
<pre style="font-family:courier;font-size:10pt">
<a name="l1"></a><span class=cF2>/*</span><span class=cF0>
<a name="l2"></a></span><span class=cF2>This uses four types of ctrls</span><span class=cF0>
<a name="l3"></a>
<a name="l4"></a> </span><span class=cF2>1) The pull-down menu.</span><span class=cF0>
<a name="l5"></a>
<a name="l6"></a> </span><span class=cF2>2) The </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3733"><span class=cF4>CCtrl</span></a><span class=cF2> type for the tempo/stacatto sliders.</span><span class=cF0>
<a name="l7"></a>
<a name="l8"></a> </span><span class=cF2>3) The active </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l1501"><span class=cF4>CDoc</span></a><span class=cF2> sprite bttns with macros for left/record/play/right.</span><span class=cF0>
<a name="l9"></a>
<a name="l10"></a> </span><span class=cF2>4) Hand-made ctrls for the kbdgraphic, notes and staff.</span><span class=cF0>
<a name="l11"></a>
<a name="l12"></a></span><span class=cF2>This uses four types of output</span><span class=cF0>
<a name="l13"></a>
<a name="l14"></a> </span><span class=cF2>1) The </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l1501"><span class=cF4>CDoc</span></a><span class=cF2> for the text and bttns and kbdgraphic.</span><span class=cF0>
<a name="l15"></a>
<a name="l16"></a> </span><span class=cF2>2) The Fs-&gt;draw_it() for the staff region, drawn every refresh.</span><span class=cF0>
<a name="l17"></a>
<a name="l18"></a> </span><span class=cF2>3) The gr.dc persistent layer for the note chooser, meter chooser. The persistent layer is used during drag-and-drop.</span><span class=cF0>
<a name="l19"></a>
<a name="l20"></a> </span><span class=cF2>4) The Fs-&gt;next_ctrl for the tempo/stacatto sliders.</span><span class=cF0>
<a name="l21"></a>
<a name="l22"></a></span><span class=cF2>See </span><a href="https://tomawezome.github.io/ZealOS/System/Gr/GrScreen.html#l19"><span class=cF4>GrUpdateTaskWin</span></a><span class=cF2>(), </span><a href="https://tomawezome.github.io/ZealOS/System/Gr/GrScreen.html#l69"><span class=cF4>GrUpdateTasks</span></a><span class=cF2>() and </span><a href="https://tomawezome.github.io/ZealOS/System/Gr/GrScreen.html#l415"><span class=cF4>GrUpdateScreen</span></a><span class=cF2>().</span><span class=cF0>
<a name="l23"></a></span><span class=cF2>*/</span><span class=cF0>
<a name="l24"></a>
<a name="l25"></a>#</span><span class=cF1>define</span><span class=cF0> PSMT_HEAD </span><span class=cFE>0</span><span class=cF0>
<a name="l26"></a>#</span><span class=cF1>define</span><span class=cF0> PSMT_NOTE </span><span class=cFE>1</span><span class=cF0>
<a name="l27"></a>#</span><span class=cF1>define</span><span class=cF0> PSMT_METER </span><span class=cFE>2</span><span class=cF0>
<a name="l28"></a>
<a name="l29"></a>#</span><span class=cF1>define</span><span class=cF0> PSMf_SEL </span><span class=cFE>0</span><span class=cF0>
<a name="l30"></a>#</span><span class=cF1>define</span><span class=cF0> PSMF_SEL </span><span class=cFE>1</span><span class=cF0>
<a name="l31"></a>#</span><span class=cF1>define</span><span class=cF0> PSMf_SHARP </span><span class=cFE>1</span><span class=cF0>
<a name="l32"></a>#</span><span class=cF1>define</span><span class=cF0> PSMf_FLAT </span><span class=cFE>2</span><span class=cF0>
<a name="l33"></a>#</span><span class=cF1>define</span><span class=cF0> PSMf_TIE </span><span class=cFE>3</span><span class=cF0>
<a name="l34"></a>
<a name="l35"></a></span><span class=cF1>class</span><span class=cF0> PsmNote
<a name="l36"></a>{
<a name="l37"></a> PsmNote *next, *last;
<a name="l38"></a> </span><span class=cF9>I64</span><span class=cF0> x, y;
<a name="l39"></a> </span><span class=cF1>U8</span><span class=cF0> *word;
<a name="l40"></a> </span><span class=cF9>I64</span><span class=cF0> type, flags;
<a name="l41"></a> </span><span class=cF9>I64</span><span class=cF0> ona, meter_top, meter_bottom;
<a name="l42"></a> </span><span class=cF9>I64</span><span class=cF0> duration, width;
<a name="l43"></a> </span><span class=cF1>U8</span><span class=cF0> ascii[</span><span class=cFE>32</span><span class=cF0>];
<a name="l44"></a>};
<a name="l45"></a>
<a name="l46"></a></span><span class=cF2>//Tool types</span><span class=cF0>
<a name="l47"></a>#</span><span class=cF1>define</span><span class=cF0> PSMTT_PTR_TOOL </span><span class=cFE>0</span><span class=cF0>
<a name="l48"></a>#</span><span class=cF1>define</span><span class=cF0> PSMTT_BOX_TOOL </span><span class=cFE>1</span><span class=cF0>
<a name="l49"></a>
<a name="l50"></a></span><span class=cF1>class</span><span class=cF0> PsmCtrl
<a name="l51"></a>{
<a name="l52"></a> PsmNote head;
<a name="l53"></a> PsmNote clip;
<a name="l54"></a> </span><span class=cF9>CMenuEntry</span><span class=cF0> *incomplete_entry, *record_entry;
<a name="l55"></a> </span><span class=cF9>I64</span><span class=cF0> screen_x, tool;
<a name="l56"></a> PsmNote *cur_note;
<a name="l57"></a> </span><span class=cF9>CDC</span><span class=cF0> *dc2;
<a name="l58"></a> </span><span class=cF1>Bool</span><span class=cF0> playing;
<a name="l59"></a>} psm;
<a name="l60"></a>
<a name="l61"></a></span><span class=cF1>U8</span><span class=cF0> *psm_note_list = </span><span class=cF6>&quot;A\0A#\0B\0C\0C#\0D\0D#\0E\0F\0F#\0G\0G#\0&quot;</span><span class=cF0>;
<a name="l62"></a></span><span class=cF1>U8</span><span class=cF0> psm_note_map[</span><span class=cFE>12</span><span class=cF0>] = {</span><span class=cFE>6</span><span class=cF0>, </span><span class=cFE>6</span><span class=cF0>, </span><span class=cFE>5</span><span class=cF0>, </span><span class=cFE>4</span><span class=cF0>, </span><span class=cFE>4</span><span class=cF0>, </span><span class=cFE>3</span><span class=cF0>, </span><span class=cFE>3</span><span class=cF0>, </span><span class=cFE>2</span><span class=cF0>, </span><span class=cFE>1</span><span class=cF0>, </span><span class=cFE>1</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>};
<a name="l63"></a></span><span class=cF1>U8</span><span class=cF0> psm_note_inverse_map[</span><span class=cFE>7</span><span class=cF0>] = {</span><span class=cFE>10</span><span class=cF0>, </span><span class=cFE>8</span><span class=cF0>, </span><span class=cFE>7</span><span class=cF0>, </span><span class=cFE>5</span><span class=cF0>, </span><span class=cFE>3</span><span class=cF0>, </span><span class=cFE>2</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>};
</span></pre></body>
</html>