mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 07:46:33 +00:00
92 lines
7.7 KiB
HTML
Executable file
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 V1.07">
|
|
<style type="text/css">
|
|
body {background-color:#1f1f1f;}
|
|
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
|
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
|
.cF2{color:#73a255;background-color:#1f1f1f;}
|
|
.cF3{color:#297582;background-color:#1f1f1f;}
|
|
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
|
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
|
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
|
.cF7{color:#444444;background-color:#1f1f1f;}
|
|
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
|
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
|
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
|
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
|
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
|
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
|
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
|
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
|
</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#l3771"><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 buttons 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 buttons and kbdgraphic.</span><span class=cF0>
|
|
<a name="l15"></a>
|
|
<a name="l16"></a> </span><span class=cF2>2) The Fs->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->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.ZC.html#l19"><span class=cF4>GrUpdateTaskWin</span></a><span class=cF2>(), </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Gr/GrScreen.ZC.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.ZC.html#l404"><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>"A\0A#\0B\0C\0C#\0D\0D#\0E\0F\0F#\0G\0G#\0"</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>
|