Documentation updates.

This commit is contained in:
kevin 2020-10-16 13:09:16 -04:00
parent 0e03acff01
commit d15e6a29ee
13 changed files with 125 additions and 84 deletions

View File

@ -85,7 +85,7 @@
"-fmarkdown"
"-thtml5"
"--css"
"cdg_div_cod.css"
"cdg_cod.css"
"--css"
"cdg_edoc.css"
"--css"
@ -97,7 +97,6 @@
copy_files:
[
"cdg_div_cod.css"
"cdg_edoc.css"
"cdg_code.css"
"style.css"

View File

@ -1,9 +1,10 @@
td.linenos { background-color: #fffff0; padding-right: 10px; }
span.lineno { background-color: #fffff0; padding: 0 5px 0 5px; }
pre { line-height: 135%; }
body .hll { background-color: #ffffff; }
body { background: #f8f8f8; }
body {
background: #f0f0f0;
margin-left:2%;
}
body .c { color: firebrick; font-style: italic; } /* Comment */
body .k { color: #008000; font-weight: normal; } /* Keyword.Reserved */
body .p { color: #666666; } /* Operator */
@ -28,3 +29,36 @@ body .a {
font-wieght: bold;
font-size: 120%;
}
.license {
color: #909090;
font-size:90%;
padding:2%;
border: 1px solid #909090;
}
.cod pre { background: #f8f8f8; }
.cod pre .c { color: firebrick; font-weight: normal; } /* Comment */
.cod pre .k { color: #008000; font-weight: normal; } /* Keyword.Reserved */
.cod pre .p { color: #666666 } /* Operator */
.cod pre .f { color: #000000; font-weight: normal; } /* Function */
.cod pre .e { color: #000000; font-weight: normal; } /* enum */
.cod pre .m { color: #008000; font-weight: normal; } /* macro */
.cod pre .t { color: #008000; font-weight: normal; } /* typedef */
.cod pre .i { color: #000000; font-weight: normal; } /* ident */
.cod pre .l { color: #660066 } /* Literal */
.cod pre .u { color: #000000 }
.cod pre a:link {text-decoration:none; font-weight:500; }
.cod pre a:visited {text-decoration:none; font-weight:500; }
.cod pre a:hover {text-decoration:none; font-weight:700; }
/* embedded pandoc comments */
.cod pre .a {
border: 1px dotted gray;
background-color: #ececec;
color: #1111111;
padding: 0.5em;
}

View File

@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -6,8 +6,40 @@
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<link href="cdg_div_cod.css" rel="stylesheet" type="text/css" media="screen" />
<link href="cdg_code.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div class="highlight">
<div class="license">
<p>
Copyright (C) Kevin Larke 2009-2020
</p>
<p>
This file is part of libcm.
</p>
<p>
libcm is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your
option) any later version.
</p>
<p>
libcm is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
</p>
<p>
See the GNU General Public License distributed with the libcm
package or look here: <https://www.gnu.org/licenses/>.
</p>
</div>
<hr>

View File

@ -1,24 +0,0 @@
.cod pre .c { color: firebrick; font-weight: normal; } /* Comment */
.cod pre .k { color: #008000; font-weight: normal; } /* Keyword.Reserved */
.cod pre .p { color: #666666 } /* Operator */
.cod pre .f { color: #000000; font-weight: normal; } /* Function */
.cod pre .e { color: #000000; font-weight: normal; } /* enum */
.cod pre .m { color: #008000; font-weight: normal; } /* macro */
.cod pre .t { color: #008000; font-weight: normal; } /* typedef */
.cod pre .i { color: #000000; font-weight: normal; } /* ident */
.cod pre .l { color: #660066 } /* Literal */
.cod pre .u { color: #000000 }
.cod pre a:link {text-decoration:none; font-weight:500; }
.cod pre a:visited {text-decoration:none; font-weight:500; }
.cod pre a:hover {text-decoration:none; font-weight:700; }
/* embedded pandoc comments */
.cod pre .a {
border: 1px dotted gray;
background-color: #ececec;
color: #1111111;
padding: 0.5em;
}

View File

@ -14,7 +14,6 @@ gcc -E -C -P -traditional-cpp -o temp.h ../src/vop/cmVectOpsDoc.h
sed 's/\(_##\)/_/g' temp.h > temp1.h
# Remove header text generated by gcc.
# sed '/\/\*/,/\/\/end_cut/{#!d}' temp.h
sed '/\/\*/,/\/\/end_cut/{//!d;};' temp1.h > temp2.h
# Remove the first two lines.
@ -25,4 +24,9 @@ rm -f temp1.h
rm -f temp2.h
# Run the doc generator
#cdg -c cdg_cfg.json -o ~/temp/doc_libcm
# Note that we must use a full path to the 'cdg_cfg.json' file because it's
# absolute location must be determined to locate the full path to the source files.
~/src/dc/build/linux/debug/bin/cdg -c ~/src/libcm/doc/cdg_cfg.json -o ~/temp/doc2
#
scp ~/temp/doc2/* wf:webapps/currawongproject/htdocs/static/doc/libcm

View File

@ -3992,13 +3992,11 @@ void _cmJsonTestPrint( void* userPtr, const cmChar_t* text )
}
//{ { label:cmJsonEx }
//(
//( { label:cmJsonEx }
//
// cmJsonTest() demonstrates some JSON tree operations.
//)
//(
cmJsRC_t cmJsonTest( const char* fn, cmCtx_t* ctx )
//
JsRC_t cmJsonTest( const char* fn, cmCtx_t* ctx )
{
cmJsRC_t rc = kOkJsRC;
cmJsRC_t rc1 = kOkJsRC;
@ -4080,4 +4078,3 @@ cmJsRC_t cmJsonTest( const char* fn, cmCtx_t* ctx )
return rc == kOkJsRC ? rc1 : rc;
}
//)
//}

View File

@ -909,12 +909,10 @@ const cmChar_t* cmLexRcToMsg( unsigned rc )
}
//{ { label:cmLexEx }
//(
//( { label:cmLexEx }
//
// cmLexTest() gives a simple cmLex example.
//)
//(
//
void cmLexTest( cmRpt_t* rpt)
{
cmChar_t buf[] =
@ -983,4 +981,3 @@ void cmLexTest( cmRpt_t* rpt)
}
//)
//}

View File

@ -1573,13 +1573,10 @@ const bool* cmSrRdBoolCV( cmSrH_t h, unsigned* eleCntPtr)
return cmSrReadBoolCV(h,&valPtr,eleCntPtr) == kOkSrRC ? valPtr : NULL;
}
//{ { label:cmSerialEx }
//(
// cmSrTest() is a serializer example function.
//)
//[
//
// cmSrTest() is a serializer example function.
//
cmSrRC_t cmSrTest( cmCtx_t* ctx )
{
unsigned i,j,k;
@ -1723,5 +1720,4 @@ cmSrRC_t cmSrTest( cmCtx_t* ctx )
return rc;
}
//]
//}

View File

@ -352,12 +352,11 @@ void cmSymTblReport( cmSymTblH_t h )
}
//{ { label:cmSymTblEx }
//(
//( { label:cmSymTblEx }
//
// cmSymTblTest() gives a usage example for the symbol table component.
//)
//
//[
void cmSymTblTest( cmCtx_t* ctx )
{
unsigned baseSymId = 100;
@ -405,5 +404,4 @@ void cmSymTblTest( cmCtx_t* ctx )
return;
}
//]
//}
//)

View File

@ -1,7 +1,7 @@
//| Copyright: (C) 2009-2020 Kevin Larke <contact AT larke DOT org>
//| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
//( { file_desc:"Math vector operations." kw:[vop math] }
//)
//| Copyright: (C) 2009-2020 Kevin Larke <contact AT larke DOT org>
//| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
//( { label:misc desc:"Miscellaneous vector operations." kw:[vop] }
// Compute the cummulative sum of sbp[dn]. Equivalent to Matlab cumsum().
@ -719,6 +719,8 @@ void cmVOT_Interp1(T_t* y1, const T_t* x1, unsigned xy1N, const T_t* x0, const T
//======================================================================================================================
//)
//| Copyright: (C) 2009-2020 Kevin Larke <contact AT larke DOT org>
//| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
//( { label:"Matrix ops" desc:"Common 2D matrix operations and accessors." kw:[vop] }

View File

@ -54,6 +54,7 @@
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspPrinter file_desc:"Console printing unit." kw:[sunit] }
enum
{

View File

@ -53,7 +53,8 @@
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspKr file_desc:"Spectral non-linear distortion effect." kw:[sunit] }
//( { label:cmDspKr file_desc:"Spectral non-linear distortion effect." kw:[sunit gutim] }
enum
{
@ -287,7 +288,7 @@ cmDspClass_t* cmKrClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspKr2 file_desc:"Spectral non-linear distortion effect." kw:[sunit] }
//( { label:cmDspKr2 file_desc:"Spectral non-linear distortion effect." kw:[sunit gutim] }
enum
{
@ -544,7 +545,7 @@ cmDspClass_t* cmKr2ClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspTimeLine file_desc:"Time line user interface unit." kw:[sunit] }
//( { label:cmDspTimeLine file_desc:"Time line user interface unit." kw:[sunit gutim] }
enum
{
@ -734,7 +735,7 @@ cmDspClass_t* cmTimeLineClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspScore file_desc:"Musical score user interface unit." kw:[sunit] }
//( { label:cmDspScore file_desc:"Musical score user interface unit." kw:[sunit gutim] }
enum
{
@ -931,7 +932,7 @@ cmDspClass_t* cmScoreClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspMidiFilePlay file_desc:"MIDI file player." kw:[sunit] }
//( { label:cmDspMidiFilePlay file_desc:"MIDI file player." kw:[sunit gutim] }
enum
{
@ -1173,7 +1174,7 @@ cmDspClass_t* cmMidiFilePlayClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspScFol file_desc:"MIDI performance score follower." kw:[sunit] }
//( { label:cmDspScFol file_desc:"MIDI performance score follower." kw:[sunit gutim] }
enum
{
@ -1491,7 +1492,7 @@ cmDspClass_t* cmScFolClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspScMod file_desc:"Score driven parameter automation." kw:[sunit] }
//( { label:cmDspScMod file_desc:"Score driven parameter automation." kw:[sunit gutim] }
enum
{
@ -1721,7 +1722,7 @@ cmDspClass_t* cmScModClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspGSwitch file_desc:"Route all inputs to one of a group of outputs." kw:[sunit] }
//( { label:cmDspGSwitch file_desc:"Route all inputs to one of a group of outputs." kw:[sunit gutim] }
enum
{
@ -1922,7 +1923,7 @@ cmDspClass_t* cmGSwitchClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspScaleRange file_desc:"Offset and scale a scalar value." kw:[sunit] }
//( { label:cmDspScaleRange file_desc:"Offset and scale a scalar value." kw:[sunit gutim] }
enum
{
@ -2025,7 +2026,7 @@ cmDspClass_t* cmScaleRangeClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspActiveMeas file_desc:"Issue stored parameter values at specified score locations." kw:[sunit] }
//( { label:cmDspActiveMeas file_desc:"Issue stored parameter values at specified score locations." kw:[sunit gutim] }
enum
{
@ -2412,7 +2413,7 @@ cmDspClass_t* cmActiveMeasClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspAmSync file_desc:"Calculate MIDI to Audio latency offsets." kw:[sunit] }
//( { label:cmDspAmSync file_desc:"Calculate MIDI to Audio latency offsets." kw:[sunit gutim] }
//
//
// Usage:
@ -2690,7 +2691,7 @@ cmDspClass_t* cmAmSyncClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspNanoMap file_desc:"Control a MIDI synth." kw:[sunit] }
//( { label:cmDspNanoMap file_desc:"Control a MIDI synth." kw:[sunit gutim] }
enum
{
@ -2818,7 +2819,7 @@ cmDspClass_t* cmNanoMapClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspPicadae file_desc:"Control a MIDI synth." kw:[sunit] }
//( { label:cmDspPicadae file_desc:"Control the Picadae piano mechanism." kw:[sunit gutim] }
enum
{
@ -3253,7 +3254,7 @@ cmDspClass_t* cmPicadaeClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspRecdPlay file_desc:"Record audio segments from a live perfromance and play them back at a later time" kw:[sunit] }
//( { label:cmDspRecdPlay file_desc:"Record audio segments from a live perfromance and play them back at a later time" kw:[sunit gutim] }
enum
{
@ -3632,7 +3633,7 @@ cmDspClass_t* cmRecdPlayClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspGoertzel file_desc:"Goertzel tone detection filter" kw:[sunit] }
//( { label:cmDspGoertzel file_desc:"Goertzel tone detection filter" kw:[sunit gutim] }
enum
{
kHopFactGrId,
@ -3809,7 +3810,7 @@ cmDspClass_t* cmGoertzelClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspSyncRecd file_desc:"Time align a MIDI and associated audio recording" kw:[sunit] }
//( { label:cmDspSyncRecd file_desc:"Time align a MIDI and associated audio recording" kw:[sunit gutim] }
enum
{
@ -4014,7 +4015,7 @@ cmDspClass_t* cmSyncRecdClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspTakeSeqBldr file_desc:"User interface unit for creating a single sequence from multiple, score aligned, MIDI fragments." kw:[sunit] }
//( { label:cmDspTakeSeqBldr file_desc:"User interface unit for creating a single sequence from multiple, score aligned, MIDI fragments." kw:[sunit gutim] }
enum
{
@ -4148,7 +4149,7 @@ cmDspClass_t* cmTakeSeqBldrClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspTakeSeqRend file_desc:"User interface unit for graphically rendering the MIDI sequences created by cmDspTakeSeqBldr." kw:[sunit] }
//( { label:cmDspTakeSeqRend file_desc:"User interface unit for graphically rendering the MIDI sequences created by cmDspTakeSeqBldr." kw:[sunit gutim] }
enum
{
kBldrTsrId,
@ -4369,7 +4370,7 @@ cmDspClass_t* cmTakeSeqRendClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspReflectCalc file_desc:"Estimate the time-of-flight of from an acoustic signal from a speaker to a microphone." kw:[sunit] }
//( { label:cmDspReflectCalc file_desc:"Estimate the time-of-flight of from an acoustic signal from a speaker to a microphone." kw:[sunit gutim] }
enum
{
kLfsrN_RcId,
@ -4527,7 +4528,7 @@ cmDspClass_t* cmReflectCalcClassCons( cmDspCtx_t* ctx )
//------------------------------------------------------------------------------------------------------------
//)
//( { label:cmDspEchoCancel file_desc:"Normalized least mean squares echo canceller." kw:[sunit] }
//( { label:cmDspEchoCancel file_desc:"Normalized least mean squares echo canceller." kw:[sunit gutim] }
enum
{
kMuEcId,

View File

@ -7,6 +7,8 @@
extern "C" {
#endif
//( { file_desc:"Dataflow process interface developed for GUTIM." kw:[snap gutim] }
struct cmDspClass_str* cmKrClassCons( cmDspCtx_t* ctx );
struct cmDspClass_str* cmKr2ClassCons( cmDspCtx_t* ctx );
struct cmDspClass_str* cmTimeLineClassCons( cmDspCtx_t* ctx );
@ -27,7 +29,9 @@ extern "C" {
struct cmDspClass_str* cmTakeSeqRendClassCons( cmDspCtx_t* ctx );
struct cmDspClass_str* cmReflectCalcClassCons( cmDspCtx_t* ctx );
struct cmDspClass_str* cmEchoCancelClassCons( cmDspCtx_t* ctx );
//)
#ifdef __cplusplus
}
#endif