ZealOS/docs/Apps/Psalmody/Psalmody.CC.html
TomAwezome 1b75d91002 Fix Mount AHCI Port selection.
Add arg to SATARep to specify drive types to show.
Add checks in AHCIPortInit to verify port signatures, add helper method to get signatures from port.
2021-08-02 16:40:05 -04:00

92 lines
7.7 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.13">
<style type="text/css">
body {background-color:#fef1f0;}
.cF0{color:#000000;background-color:#fef1f0;}
.cF1{color:#0148a4;background-color:#fef1f0;}
.cF2{color:#3b7901;background-color:#fef1f0;}
.cF3{color:#057c7e;background-color:#fef1f0;}
.cF4{color:#bb2020;background-color:#fef1f0;}
.cF5{color:#9e42ae;background-color:#fef1f0;}
.cF6{color:#b57901;background-color:#fef1f0;}
.cF7{color:#b2b6af;background-color:#fef1f0;}
.cF8{color:#555753;background-color:#fef1f0;}
.cF9{color:#678fbb;background-color:#fef1f0;}
.cFA{color:#82bc49;background-color:#fef1f0;}
.cFB{color:#0097a2;background-color:#fef1f0;}
.cFC{color:#e26a6a;background-color:#fef1f0;}
.cFD{color:#c671bc;background-color:#fef1f0;}
.cFE{color:#c7ab00;background-color:#fef1f0;}
.cFF{color:#fef1f0;background-color:#fef1f0;}
</style>
</head>
<body>
<pre style="font-family:monospace;font-size:12pt">
<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://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l3776"><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://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1502"><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://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1502"><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://zeal-operating-system.github.io/ZealOS/System/Gr/GrScreen.CC.html#l19"><span class=cF4>GrUpdateTaskWin</span></a><span class=cF2>(), </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Gr/GrScreen.CC.html#l69"><span class=cF4>GrUpdateTasks</span></a><span class=cF2>() and </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Gr/GrScreen.CC.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>