Skip to content

Commit

Permalink
wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Piel committed Jan 13, 2024
1 parent 2b71002 commit 95b9a1b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ gpio:
make -C hardware/gpio

push_wiki:
cd wiki && git add . && git commit -m "wiki" && git push && cd ..
node doc.js
cd wiki && git add . && git commit -m "wiki" && git push
6 changes: 3 additions & 3 deletions plugins/components/Encoder2Component.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
/*md
## Encoder2
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABdCAYAAAA7ZEEJAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAAtdEVYdENyZWF0aW9uIFRpbWUAV2VkIDEwIEphbiAyMDI0IDEwOjQyOjQzIFBNIENFVODcnnAAAA0PSURBVHic7Z3ZbxxFHse/XVV9TI899jg+cuGEDSEBQ64Fll2BkFgtq5VWKx6Q4M/ZPwckHqI87b6stBKIJYCNIYGEYGLi2E58JR5P31XV+zBX93Tb7plpx2M0HymSp7qmju/U8auqX3WU58/PhBiQG+SwC/BbYyBozgwEzZmBoDkzEDRnBoLmzEDQnGGHXYAGZGwc2snTUE+eBikOgZpFEKMAMAYQAoQKEEpAcAjbgnRsSMtCsLoE7+ESwiebh10FAIByaIY906Cf/R308xehHj8JUjChkO46TCglpGMjWF2G+/Md+L/eBwI/5wJn45kLSienYF76PbTp50HN4oHkISwL/tJ92PNfQ6yvHUgeu/HMBGWnz8C89ga0qZMguv4ssoT0PASPV2DPfoXg4eIzyfPABSUTkyheeR362ReemZDtCNeBv7gA67tvINceH2heByqo8epVFF/7E2hx/64tbAt8/TH4xjrEk02ISgXSqkC4DuAHtUiaCmoUQIol0FIJtHwMbHwCbGIq0/A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vV1N9D3IahV0fAK0EJ8lWXkMISHwV5eAxr1LIcE5BxCCEnpgt+mkDOF6HmzHRRC0hqWQELCp41AnphLfETvbCB4u9XSLDsjhvU3+4s+wZm+Ct708gFs78FceIHQchGGIsN7dhJCwbBc7VQuu6+e6oSKlhOv62KlasGy3aWc28xcCsrKdOM6QtoVg5SGktdNzGXq+PAsAYmMNUgqwY+MgugEZBLDnv4Y3PwtFUWItsfG3lBJ+ECAIOISUQNi9j5TvB3A9H47jwfXjP1Ljh2yUI/RchFKADpegEAppW/CXlyC3e7s02yC3WcL7fg7wfRRf+yO8pV/hfPVF7LmiKLGW2hCWCwEuBBx4ub6AIIycYrYPLWJjHQHTQEfLtVdzpLwMoVtyf0WGohmQnrPn+LhXZXulo7QVUnfiyI/c7ZjQd/etSON5tMVGwzvOs80vIHM6OYsJHPK776IVbxe3l7QOk75xPe4XQXrl6F3b6HMGgubMQNCcGQiaM78ZQT/68IPDLgKAPpjl04T4+JNPD6Ek+XDoggJHW8B2+kLQ3Whvve3C90s3j9LXggJxET/68IPm5+jfjc/9QF8Iul9LPEr0haBHWcB2fjNmU78wEDRn+qLLdzOGfvzJp30zEUU5vP+64jfKoMvnzEDQnBkImjMDQXNmIGjODATNmYGgOTMQNGf+D7D+lproVh2yAAAAAElFTkSuQmCC" />
<img src="https://raw.githubusercontent.com/apiel/zicBox/main/plugins/components/Encoder2.png" />
Encoders are used to control values.
Encoder2 is used to display current audio plugin value for a given parameter.
*/
class Encoder2Component : public Component {
protected:
Expand Down Expand Up @@ -273,7 +273,7 @@ class Encoder2Component : public Component {
/*md
- `TYPE: ...` is used to set the encoder type
- `TYPE: BROWSE` TBD..
- `TYPE: TWO_SIDED` is use for centered values like PAN <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABdCAYAAAAyj+FzAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAAtdEVYdENyZWF0aW9uI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F31x08F6l14uUOrEhMiugDgOlvRHyXsYdkicNDbsjZuwPfbCxeahhx04K36hYeKvQsTw/CGDZNugMLSqUdQIGYejqrQLFRiWZJL9jE2wejp7fODSBDS7jcUNLBBkXFR+3qxbOax3L8/0AlkVnwhKpw2BZtOtmndcYbleTF29cX8DjhobGGHfoRjpa2zzU8aieTEq8VHBxZ8nEylF6bIdE+1TnRMumsCy7S96KynFnyUxcuAGAR3Udm4dJvYbByGeTD2o6ttpJL32t1LmH0bXEIIBlU7RN80RdHO66aJsmLJt2h+15jWXeEdlqK3hQG488YIyrXpYn4d5+AZIYJCLWayWOBqM4cCTwoBMKog4Hd72pXfUK0dlh9K56hSCCh3dKNJW8FxbBvf0CrBx3iMfKTXtFO1dG95w4/zVHxi+WCuaLCIIAwZEFeJ4P06JotU1QyiYagPB9H5QytNomTIt2yQvrZ76IXywVtb627jkyvtk3cv+uwsh35UIcchmWK6KieijIPmxPxL19Az+0NAiCELsXF/7t+z4Y5+Dchef7QDB+jg1jHNRhsG0HlMU7Jey4sB0NLoMHwEXDBRED7Dky7u0V8FNKYuWoyJVi9WNbhecDd5YtPG+riYlYEISYJYZEup4H1/Ngw5nohesgcsrWf7Fx81CHIQVYKzr4elYuXIdQBH/gbcfjlMuLUWQP09ZRMJEkv2EaFCoWtcho+agI+s6lh5UzSfKAU/jtrKii/WTmkXVaONU001kgIC/OXor9jGFOYE7MCcyJOYE5MScwJ3Ktwp99+mf89W9/Ty3vR/jecc+GkXvcu3nrHQdTc2Oijfvs0z/HFJ1Ew2el3hMZwtMk7LTrPREC04bPr6XeqQ3h/sb3D62sZ6PKPal6s3Aic+Aoz0aVOwopZ3YO/DVjTmBO5B7C05hXzhJO5JfMR0WWIz2LmA/hnJhJCzxLmFtgTswJzIk5gTkxJzAn5gTmxJzAnPg/gASPIfgG34EAAAAASUVORK5CYII=" />
- `TYPE: TWO_SIDED` is use for centered values like PAN
*/
if (strcmp(key, "TYPE") == 0) {
if (strcmp(params, "BROWSE") == 0) {
Expand Down
Binary file added plugins/components/Sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plugins/components/Sample2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions plugins/components/SampleComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
#include "./component.h"
#include <string>

/*md
## Sample
<img src="https://raw.githubusercontent.com/apiel/zicBox/main/plugins/components/Sample.png" />
<img src="https://raw.githubusercontent.com/apiel/zicBox/main/plugins/components/Sample2.png" />
Sample is used to display an audio sample, sustain position, and start/end position.
The little green dot are the current playing positions of the sample.
*/
class SampleComponent : public Component {
protected:
AudioPlugin* plugin;
Expand Down Expand Up @@ -168,17 +177,20 @@ class SampleComponent : public Component {

bool config(char* key, char* value)
{
/*md - `COLOR: #FFFFFF` set color of the waveform */
if (strcmp(key, "COLOR") == 0) {
colors = getColorsFromColor(draw.getColor(value));
wave.setColors(draw.getColor(value));
return true;
}

/*md - `BACKGROUND_COLOR: #000000` set background color */
if (strcmp(key, "BACKGROUND_COLOR") == 0) {
colors.background = draw.getColor(value);
return true;
}

/*md - `KEYS: BROWSER START END SUSTAIN LENGTH` set the key parameter to use from plugin */
if (strcmp(key, "KEYS") == 0) {
valueKeys[0] = strtok(value, " ");
valueKeys[1] = strtok(NULL, " ");
Expand All @@ -188,6 +200,7 @@ class SampleComponent : public Component {
return true;
}

/*md - `AUDIO_PLUGIN: pluginName bufferDataId` set the plugin to use from plugin */
if (strcmp(key, "AUDIO_PLUGIN") == 0) {
char* pluginName = strtok(value, " ");
bufferDataId = atoi(strtok(NULL, " "));
Expand Down
2 changes: 1 addition & 1 deletion wiki
Submodule wiki updated from b81b41 to d06136

0 comments on commit 95b9a1b

Please sign in to comment.