diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/.gitkeep b/examples/ofx/asciiVideo_rapidmix/bin/data/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/261730__digitopia-cdm__saron-sdpl3.wav b/examples/ofx/asciiVideo_rapidmix/bin/data/261730__digitopia-cdm__saron-sdpl3.wav new file mode 100644 index 0000000000000000000000000000000000000000..b57861da79efb3806398cc8855ce30a2f53703b5 Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/261730__digitopia-cdm__saron-sdpl3.wav differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/261883__digitopia-cdm__saron-sdpl7.wav b/examples/ofx/asciiVideo_rapidmix/bin/data/261883__digitopia-cdm__saron-sdpl7.wav new file mode 100644 index 0000000000000000000000000000000000000000..40e715ebe94adfb0767db2c5b98e2a8e52ecb9aa Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/261883__digitopia-cdm__saron-sdpl7.wav differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/261924__digitopia-cdm__saron-sdpl5.wav b/examples/ofx/asciiVideo_rapidmix/bin/data/261924__digitopia-cdm__saron-sdpl5.wav new file mode 100644 index 0000000000000000000000000000000000000000..6b32f4f3b0fd4ccfe7f99e6d549bf7d094be9d66 Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/261924__digitopia-cdm__saron-sdpl5.wav differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/261927__digitopia-cdm__saron-sdpl4.wav b/examples/ofx/asciiVideo_rapidmix/bin/data/261927__digitopia-cdm__saron-sdpl4.wav new file mode 100644 index 0000000000000000000000000000000000000000..b1acd0858694923fd9680ccb232e35aec44647b8 Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/261927__digitopia-cdm__saron-sdpl4.wav differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/261938__digitopia-cdm__saron-sdpl1.wav b/examples/ofx/asciiVideo_rapidmix/bin/data/261938__digitopia-cdm__saron-sdpl1.wav new file mode 100644 index 0000000000000000000000000000000000000000..736a91459ed6f412af1fa8acdc9f434f6e20402c Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/261938__digitopia-cdm__saron-sdpl1.wav differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/261968__digitopia-cdm__saron-sdpl6.wav b/examples/ofx/asciiVideo_rapidmix/bin/data/261968__digitopia-cdm__saron-sdpl6.wav new file mode 100644 index 0000000000000000000000000000000000000000..0486c8a0776839d150865ba07e391f977f51ea9b Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/261968__digitopia-cdm__saron-sdpl6.wav differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/Courier New Bold.ttf b/examples/ofx/asciiVideo_rapidmix/bin/data/Courier New Bold.ttf new file mode 100644 index 0000000000000000000000000000000000000000..894c4550ca96d3ab12dbfdd214531499da072880 Binary files /dev/null and b/examples/ofx/asciiVideo_rapidmix/bin/data/Courier New Bold.ttf differ diff --git a/examples/ofx/asciiVideo_rapidmix/bin/data/readme.txt b/examples/ofx/asciiVideo_rapidmix/bin/data/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..cbe155007ccb8ea356113b2cdbf140fadf0b5a22 --- /dev/null +++ b/examples/ofx/asciiVideo_rapidmix/bin/data/readme.txt @@ -0,0 +1,862 @@ +Sound pack downloaded from Freesound.org +---------------------------------------- + +This pack of sounds contains sounds by the following user: + - Digitopia_CdM ( https://www.freesound.org/people/Digitopia_CdM/ ) + +You can find this pack online at: https://www.freesound.org/people/Digitopia_CdM/packs/16058/ + +License details +--------------- + +Attribution: http://creativecommons.org/licenses/by/3.0/ + + +Sounds in this pack +------------------- + + * 261996__digitopia-cdm__bonang-bpsl6.wav + * url: https://www.freesound.org/s/261996/ + * license: Attribution + * 261995__digitopia-cdm__bonang-bpsl6h.wav + * url: https://www.freesound.org/s/261995/ + * license: Attribution + * 261994__digitopia-cdm__drums-ciblon-medium-dlang.wav + * url: https://www.freesound.org/s/261994/ + * license: Attribution + * 261993__digitopia-cdm__drums-ciblon-medium-lung.wav + * url: https://www.freesound.org/s/261993/ + * license: Attribution + * 261992__digitopia-cdm__drums-ciblon-medium-tak.wav + * url: https://www.freesound.org/s/261992/ + * license: Attribution + * 261991__digitopia-cdm__drums-ciblon-medium-thung.wav + * url: https://www.freesound.org/s/261991/ + * license: Attribution + * 261990__digitopia-cdm__drums-ciblon-medium-tong.wav + * url: https://www.freesound.org/s/261990/ + * license: Attribution + * 261989__digitopia-cdm__drums-kendhang-ageng-dha.wav + * url: https://www.freesound.org/s/261989/ + * license: Attribution + * 261988__digitopia-cdm__drums-ketipung-small-dhung.wav + * url: https://www.freesound.org/s/261988/ + * license: Attribution + * 261987__digitopia-cdm__drums-ketipung-small-tak.wav + * url: https://www.freesound.org/s/261987/ + * license: Attribution + * 261986__digitopia-cdm__gong-gsp.wav + * url: https://www.freesound.org/s/261986/ + * license: Attribution + * 261984__digitopia-cdm__kempyang-kppl6.wav + * url: https://www.freesound.org/s/261984/ + * license: Attribution + * 261983__digitopia-cdm__gong-gksl3p.wav + * url: https://www.freesound.org/s/261983/ + * license: Attribution + * 261982__digitopia-cdm__gong-gksl5f.wav + * url: https://www.freesound.org/s/261982/ + * license: Attribution + * 261981__digitopia-cdm__gong-gksl5p.wav + * url: https://www.freesound.org/s/261981/ + * license: Attribution + * 261980__digitopia-cdm__gong-gksl6f.wav + * url: https://www.freesound.org/s/261980/ + * license: Attribution + * 261979__digitopia-cdm__kempyang-kppl6s.wav + * url: https://www.freesound.org/s/261979/ + * license: Attribution + * 261978__digitopia-cdm__gender-gbpl3hh.wav + * url: https://www.freesound.org/s/261978/ + * license: Attribution + * 261977__digitopia-cdm__gender-gbpl3h.wav + * url: https://www.freesound.org/s/261977/ + * license: Attribution + * 261976__digitopia-cdm__gender-gbpl3.wav + * url: https://www.freesound.org/s/261976/ + * license: Attribution + * 261975__digitopia-cdm__gender-gbpl2hh.wav + * url: https://www.freesound.org/s/261975/ + * license: Attribution + * 261974__digitopia-cdm__gender-gbpl2h.wav + * url: https://www.freesound.org/s/261974/ + * license: Attribution + * 261973__digitopia-cdm__gender-gbpl2.wav + * url: https://www.freesound.org/s/261973/ + * license: Attribution + * 261972__digitopia-cdm__gender-gbpl1hh.wav + * url: https://www.freesound.org/s/261972/ + * license: Attribution + * 261971__digitopia-cdm__gender-gbpl1h.wav + * url: https://www.freesound.org/s/261971/ + * license: Attribution + * 261970__digitopia-cdm__gender-gbpl5h.wav + * url: https://www.freesound.org/s/261970/ + * license: Attribution + * 261969__digitopia-cdm__gender-gbpl5.wav + * url: https://www.freesound.org/s/261969/ + * license: Attribution + * 261968__digitopia-cdm__saron-sdpl6.wav + * url: https://www.freesound.org/s/261968/ + * license: Attribution + * 261967__digitopia-cdm__gong-gksl6p.wav + * url: https://www.freesound.org/s/261967/ + * license: Attribution + * 261966__digitopia-cdm__saron-sdsl6.wav + * url: https://www.freesound.org/s/261966/ + * license: Attribution + * 261965__digitopia-cdm__kenong-ksl5.wav + * url: https://www.freesound.org/s/261965/ + * license: Attribution + * 261964__digitopia-cdm__kenong-ksl3s.wav + * url: https://www.freesound.org/s/261964/ + * license: Attribution + * 261963__digitopia-cdm__kenong-ksl3.wav + * url: https://www.freesound.org/s/261963/ + * license: Attribution + * 261962__digitopia-cdm__kenong-ksl2s.wav + * url: https://www.freesound.org/s/261962/ + * license: Attribution + * 261961__digitopia-cdm__gong-gsf.wav + * url: https://www.freesound.org/s/261961/ + * license: Attribution + * 261960__digitopia-cdm__kenong-ksl1hs.wav + * url: https://www.freesound.org/s/261960/ + * license: Attribution + * 261959__digitopia-cdm__kenong-ksl1h.wav + * url: https://www.freesound.org/s/261959/ + * license: Attribution + * 261958__digitopia-cdm__kenong-kpl7s.wav + * url: https://www.freesound.org/s/261958/ + * license: Attribution + * 261957__digitopia-cdm__kenong-kpl7.wav + * url: https://www.freesound.org/s/261957/ + * license: Attribution + * 261956__digitopia-cdm__kenong-kpl6s.wav + * url: https://www.freesound.org/s/261956/ + * license: Attribution + * 261955__digitopia-cdm__saron-sbpl4.wav + * url: https://www.freesound.org/s/261955/ + * license: Attribution + * 261953__digitopia-cdm__gender-gspl6.wav + * url: https://www.freesound.org/s/261953/ + * license: Attribution + * 261952__digitopia-cdm__kenong-ksl2.wav + * url: https://www.freesound.org/s/261952/ + * license: Attribution + * 261951__digitopia-cdm__bonang-bpsl5h.wav + * url: https://www.freesound.org/s/261951/ + * license: Attribution + * 261950__digitopia-cdm__bonang-bpsl5.wav + * url: https://www.freesound.org/s/261950/ + * license: Attribution + * 261949__digitopia-cdm__bonang-bpsl3h.wav + * url: https://www.freesound.org/s/261949/ + * license: Attribution + * 261948__digitopia-cdm__bonang-bpsl3.wav + * url: https://www.freesound.org/s/261948/ + * license: Attribution + * 261947__digitopia-cdm__bonang-bpsl2hh.wav + * url: https://www.freesound.org/s/261947/ + * license: Attribution + * 261946__digitopia-cdm__bonang-bpsl2h.wav + * url: https://www.freesound.org/s/261946/ + * license: Attribution + * 261945__digitopia-cdm__bonang-bpsl2.wav + * url: https://www.freesound.org/s/261945/ + * license: Attribution + * 261944__digitopia-cdm__bonang-bpsl1hh.wav + * url: https://www.freesound.org/s/261944/ + * license: Attribution + * 261943__digitopia-cdm__bonang-bpsl1h.wav + * url: https://www.freesound.org/s/261943/ + * license: Attribution + * 261942__digitopia-cdm__bonang-bpsl1.wav + * url: https://www.freesound.org/s/261942/ + * license: Attribution + * 261941__digitopia-cdm__saron-sbsl6l.wav + * url: https://www.freesound.org/s/261941/ + * license: Attribution + * 261940__digitopia-cdm__saron-sdsl5.wav + * url: https://www.freesound.org/s/261940/ + * license: Attribution + * 261939__digitopia-cdm__saron-sbpl5.wav + * url: https://www.freesound.org/s/261939/ + * license: Attribution + * 261938__digitopia-cdm__saron-sdpl1.wav + * url: https://www.freesound.org/s/261938/ + * license: Attribution + * 261937__digitopia-cdm__saron-sdpl2.wav + * url: https://www.freesound.org/s/261937/ + * license: Attribution + * 261936__digitopia-cdm__gong-gksl1lp.wav + * url: https://www.freesound.org/s/261936/ + * license: Attribution + * 261935__digitopia-cdm__gender-gbpl7h.wav + * url: https://www.freesound.org/s/261935/ + * license: Attribution + * 261934__digitopia-cdm__gender-gbpl7l.wav + * url: https://www.freesound.org/s/261934/ + * license: Attribution + * 261933__digitopia-cdm__gender-gbsl1.wav + * url: https://www.freesound.org/s/261933/ + * license: Attribution + * 261932__digitopia-cdm__gender-gbsl1h.wav + * url: https://www.freesound.org/s/261932/ + * license: Attribution + * 261931__digitopia-cdm__gender-gbpl6.wav + * url: https://www.freesound.org/s/261931/ + * license: Attribution + * 261930__digitopia-cdm__gender-gbpl6h.wav + * url: https://www.freesound.org/s/261930/ + * license: Attribution + * 261929__digitopia-cdm__gender-gbpl6l.wav + * url: https://www.freesound.org/s/261929/ + * license: Attribution + * 261928__digitopia-cdm__gender-gbpl7.wav + * url: https://www.freesound.org/s/261928/ + * license: Attribution + * 261927__digitopia-cdm__saron-sdpl4.wav + * url: https://www.freesound.org/s/261927/ + * license: Attribution + * 261926__digitopia-cdm__gender-gbsl1hh.wav + * url: https://www.freesound.org/s/261926/ + * license: Attribution + * 261925__digitopia-cdm__gender-gbsl2.wav + * url: https://www.freesound.org/s/261925/ + * license: Attribution + * 261924__digitopia-cdm__saron-sdpl5.wav + * url: https://www.freesound.org/s/261924/ + * license: Attribution + * 261923__digitopia-cdm__saron-sbsl3.wav + * url: https://www.freesound.org/s/261923/ + * license: Attribution + * 261922__digitopia-cdm__kenong-kpl5s.wav + * url: https://www.freesound.org/s/261922/ + * license: Attribution + * 261921__digitopia-cdm__kenong-kpl6.wav + * url: https://www.freesound.org/s/261921/ + * license: Attribution + * 261920__digitopia-cdm__kenong-kpl2s.wav + * url: https://www.freesound.org/s/261920/ + * license: Attribution + * 261919__digitopia-cdm__kenong-kpl3.wav + * url: https://www.freesound.org/s/261919/ + * license: Attribution + * 261918__digitopia-cdm__kenong-kpl3s.wav + * url: https://www.freesound.org/s/261918/ + * license: Attribution + * 261917__digitopia-cdm__kenong-kpl5.wav + * url: https://www.freesound.org/s/261917/ + * license: Attribution + * 261916__digitopia-cdm__kempyang-kpsl1s.wav + * url: https://www.freesound.org/s/261916/ + * license: Attribution + * 261915__digitopia-cdm__kenong-kpl1h.wav + * url: https://www.freesound.org/s/261915/ + * license: Attribution + * 261914__digitopia-cdm__kenong-kpl1hs.wav + * url: https://www.freesound.org/s/261914/ + * license: Attribution + * 261913__digitopia-cdm__kenong-kpl2.wav + * url: https://www.freesound.org/s/261913/ + * license: Attribution + * 261912__digitopia-cdm__gender-gpsl6l.wav + * url: https://www.freesound.org/s/261912/ + * license: Attribution + * 261911__digitopia-cdm__gambang-gpl6l.wav + * url: https://www.freesound.org/s/261911/ + * license: Attribution + * 261910__digitopia-cdm__gambang-gpl6ll.wav + * url: https://www.freesound.org/s/261910/ + * license: Attribution + * 261909__digitopia-cdm__gender-gspl1.wav + * url: https://www.freesound.org/s/261909/ + * license: Attribution + * 261908__digitopia-cdm__gambang-gpl5.wav + * url: https://www.freesound.org/s/261908/ + * license: Attribution + * 261907__digitopia-cdm__gambang-gpl5h.wav + * url: https://www.freesound.org/s/261907/ + * license: Attribution + * 261906__digitopia-cdm__gambang-gpl3hh.wav + * url: https://www.freesound.org/s/261906/ + * license: Attribution + * 261905__digitopia-cdm__gambang-gpl3l.wav + * url: https://www.freesound.org/s/261905/ + * license: Attribution + * 261904__digitopia-cdm__gambang-gpl6.wav + * url: https://www.freesound.org/s/261904/ + * license: Attribution + * 261903__digitopia-cdm__gambang-gpl6h.wav + * url: https://www.freesound.org/s/261903/ + * license: Attribution + * 261902__digitopia-cdm__gambang-gpl5hh.wav + * url: https://www.freesound.org/s/261902/ + * license: Attribution + * 261901__digitopia-cdm__gambang-gpl5l.wav + * url: https://www.freesound.org/s/261901/ + * license: Attribution + * 261900__digitopia-cdm__saron-sbsl3h.wav + * url: https://www.freesound.org/s/261900/ + * license: Attribution + * 261899__digitopia-cdm__gender-gssl1h.wav + * url: https://www.freesound.org/s/261899/ + * license: Attribution + * 261898__digitopia-cdm__gender-gssl1.wav + * url: https://www.freesound.org/s/261898/ + * license: Attribution + * 261897__digitopia-cdm__gender-gssl3.wav + * url: https://www.freesound.org/s/261897/ + * license: Attribution + * 261896__digitopia-cdm__gender-gssl2.wav + * url: https://www.freesound.org/s/261896/ + * license: Attribution + * 261895__digitopia-cdm__gender-gssl6.wav + * url: https://www.freesound.org/s/261895/ + * license: Attribution + * 261894__digitopia-cdm__gender-gssl5.wav + * url: https://www.freesound.org/s/261894/ + * license: Attribution + * 261893__digitopia-cdm__gong-gaf.wav + * url: https://www.freesound.org/s/261893/ + * license: Attribution + * 261892__digitopia-cdm__gender-gssl6l.wav + * url: https://www.freesound.org/s/261892/ + * license: Attribution + * 261891__digitopia-cdm__gong-gkpl1f.wav + * url: https://www.freesound.org/s/261891/ + * license: Attribution + * 261890__digitopia-cdm__gong-gap.wav + * url: https://www.freesound.org/s/261890/ + * license: Attribution + * 261889__digitopia-cdm__gong-gksl2p.wav + * url: https://www.freesound.org/s/261889/ + * license: Attribution + * 261888__digitopia-cdm__saron-spsl6l.wav + * url: https://www.freesound.org/s/261888/ + * license: Attribution + * 261887__digitopia-cdm__saron-sbpl7.wav + * url: https://www.freesound.org/s/261887/ + * license: Attribution + * 261886__digitopia-cdm__gambang-gpl3h.wav + * url: https://www.freesound.org/s/261886/ + * license: Attribution + * 261885__digitopia-cdm__gambang-gpl3.wav + * url: https://www.freesound.org/s/261885/ + * license: Attribution + * 261884__digitopia-cdm__saron-sdsl3.wav + * url: https://www.freesound.org/s/261884/ + * license: Attribution + * 261883__digitopia-cdm__saron-sdpl7.wav + * url: https://www.freesound.org/s/261883/ + * license: Attribution + * 261882__digitopia-cdm__gambang-gpl1h.wav + * url: https://www.freesound.org/s/261882/ + * license: Attribution + * 261881__digitopia-cdm__gambang-gpl1.wav + * url: https://www.freesound.org/s/261881/ + * license: Attribution + * 261880__digitopia-cdm__gambang-gpl1l.wav + * url: https://www.freesound.org/s/261880/ + * license: Attribution + * 261879__digitopia-cdm__gambang-gpl1hh.wav + * url: https://www.freesound.org/s/261879/ + * license: Attribution + * 261878__digitopia-cdm__gambang-gpl2h.wav + * url: https://www.freesound.org/s/261878/ + * license: Attribution + * 261877__digitopia-cdm__gambang-gpl2.wav + * url: https://www.freesound.org/s/261877/ + * license: Attribution + * 261876__digitopia-cdm__gambang-gpl2l.wav + * url: https://www.freesound.org/s/261876/ + * license: Attribution + * 261875__digitopia-cdm__gambang-gpl2hh.wav + * url: https://www.freesound.org/s/261875/ + * license: Attribution + * 261874__digitopia-cdm__gender-gpsl5h.wav + * url: https://www.freesound.org/s/261874/ + * license: Attribution + * 261826__digitopia-cdm__gong-gksl1lf.wav + * url: https://www.freesound.org/s/261826/ + * license: Attribution + * 261825__digitopia-cdm__gender-gpsl5.wav + * url: https://www.freesound.org/s/261825/ + * license: Attribution + * 261824__digitopia-cdm__saron-sppl1.wav + * url: https://www.freesound.org/s/261824/ + * license: Attribution + * 261823__digitopia-cdm__saron-spsl2.wav + * url: https://www.freesound.org/s/261823/ + * license: Attribution + * 261822__digitopia-cdm__saron-spsl3.wav + * url: https://www.freesound.org/s/261822/ + * license: Attribution + * 261821__digitopia-cdm__saron-sdsl6l.wav + * url: https://www.freesound.org/s/261821/ + * license: Attribution + * 261820__digitopia-cdm__saron-spsl1h.wav + * url: https://www.freesound.org/s/261820/ + * license: Attribution + * 261819__digitopia-cdm__saron-sppl6.wav + * url: https://www.freesound.org/s/261819/ + * license: Attribution + * 261818__digitopia-cdm__saron-sppl7.wav + * url: https://www.freesound.org/s/261818/ + * license: Attribution + * 261817__digitopia-cdm__gong-gkpl6p.wav + * url: https://www.freesound.org/s/261817/ + * license: Attribution + * 261816__digitopia-cdm__gong-gkpl7f.wav + * url: https://www.freesound.org/s/261816/ + * license: Attribution + * 261815__digitopia-cdm__gong-gkpl5p.wav + * url: https://www.freesound.org/s/261815/ + * license: Attribution + * 261814__digitopia-cdm__gong-gkpl6f.wav + * url: https://www.freesound.org/s/261814/ + * license: Attribution + * 261813__digitopia-cdm__gong-gkpl3p.wav + * url: https://www.freesound.org/s/261813/ + * license: Attribution + * 261812__digitopia-cdm__gong-gkpl5f.wav + * url: https://www.freesound.org/s/261812/ + * license: Attribution + * 261811__digitopia-cdm__gong-gkpl2p.wav + * url: https://www.freesound.org/s/261811/ + * license: Attribution + * 261810__digitopia-cdm__gong-gkpl3f.wav + * url: https://www.freesound.org/s/261810/ + * license: Attribution + * 261809__digitopia-cdm__gong-gkpl1p.wav + * url: https://www.freesound.org/s/261809/ + * license: Attribution + * 261808__digitopia-cdm__gong-gkpl2f.wav + * url: https://www.freesound.org/s/261808/ + * license: Attribution + * 261807__digitopia-cdm__bonang-bbpl5.wav + * url: https://www.freesound.org/s/261807/ + * license: Attribution + * 261806__digitopia-cdm__bonang-bbpl5h.wav + * url: https://www.freesound.org/s/261806/ + * license: Attribution + * 261805__digitopia-cdm__bonang-bbpl3.wav + * url: https://www.freesound.org/s/261805/ + * license: Attribution + * 261804__digitopia-cdm__bonang-bbpl3h.wav + * url: https://www.freesound.org/s/261804/ + * license: Attribution + * 261803__digitopia-cdm__bonang-bbpl4.wav + * url: https://www.freesound.org/s/261803/ + * license: Attribution + * 261802__digitopia-cdm__bonang-bbpl4h.wav + * url: https://www.freesound.org/s/261802/ + * license: Attribution + * 261801__digitopia-cdm__bonang-bbpl1.wav + * url: https://www.freesound.org/s/261801/ + * license: Attribution + * 261800__digitopia-cdm__bonang-bbpl1h.wav + * url: https://www.freesound.org/s/261800/ + * license: Attribution + * 261799__digitopia-cdm__bonang-bbpl2.wav + * url: https://www.freesound.org/s/261799/ + * license: Attribution + * 261798__digitopia-cdm__bonang-bbpl2h.wav + * url: https://www.freesound.org/s/261798/ + * license: Attribution + * 261797__digitopia-cdm__saron-sppl3.wav + * url: https://www.freesound.org/s/261797/ + * license: Attribution + * 261796__digitopia-cdm__saron-sdsl1h.wav + * url: https://www.freesound.org/s/261796/ + * license: Attribution + * 261795__digitopia-cdm__saron-sppl2.wav + * url: https://www.freesound.org/s/261795/ + * license: Attribution + * 261794__digitopia-cdm__gender-gpsl3hh.wav + * url: https://www.freesound.org/s/261794/ + * license: Attribution + * 261793__digitopia-cdm__gender-gpsl3h.wav + * url: https://www.freesound.org/s/261793/ + * license: Attribution + * 261792__digitopia-cdm__saron-sbsl5.wav + * url: https://www.freesound.org/s/261792/ + * license: Attribution + * 261791__digitopia-cdm__bonang-bbsl2h.wav + * url: https://www.freesound.org/s/261791/ + * license: Attribution + * 261790__digitopia-cdm__bonang-bbsl2hh.wav + * url: https://www.freesound.org/s/261790/ + * license: Attribution + * 261789__digitopia-cdm__bonang-bbsl1.wav + * url: https://www.freesound.org/s/261789/ + * license: Attribution + * 261788__digitopia-cdm__bonang-bbsl1h.wav + * url: https://www.freesound.org/s/261788/ + * license: Attribution + * 261787__digitopia-cdm__bonang-bbsl1hh.wav + * url: https://www.freesound.org/s/261787/ + * license: Attribution + * 261786__digitopia-cdm__bonang-bbsl2.wav + * url: https://www.freesound.org/s/261786/ + * license: Attribution + * 261785__digitopia-cdm__bonang-bbpl6.wav + * url: https://www.freesound.org/s/261785/ + * license: Attribution + * 261784__digitopia-cdm__bonang-bbpl6h.wav + * url: https://www.freesound.org/s/261784/ + * license: Attribution + * 261783__digitopia-cdm__bonang-bbpl7.wav + * url: https://www.freesound.org/s/261783/ + * license: Attribution + * 261782__digitopia-cdm__bonang-bbpl7h.wav + * url: https://www.freesound.org/s/261782/ + * license: Attribution + * 261781__digitopia-cdm__gambang-gsl5hh.wav + * url: https://www.freesound.org/s/261781/ + * license: Attribution + * 261780__digitopia-cdm__gambang-gsl5l.wav + * url: https://www.freesound.org/s/261780/ + * license: Attribution + * 261779__digitopia-cdm__gambang-gsl6.wav + * url: https://www.freesound.org/s/261779/ + * license: Attribution + * 261778__digitopia-cdm__gambang-gsl6h.wav + * url: https://www.freesound.org/s/261778/ + * license: Attribution + * 261777__digitopia-cdm__gambang-gsl3hh.wav + * url: https://www.freesound.org/s/261777/ + * license: Attribution + * 261776__digitopia-cdm__gambang-gsl3l.wav + * url: https://www.freesound.org/s/261776/ + * license: Attribution + * 261775__digitopia-cdm__gambang-gsl5.wav + * url: https://www.freesound.org/s/261775/ + * license: Attribution + * 261774__digitopia-cdm__gambang-gsl5h.wav + * url: https://www.freesound.org/s/261774/ + * license: Attribution + * 261773__digitopia-cdm__gender-gpsl2h.wav + * url: https://www.freesound.org/s/261773/ + * license: Attribution + * 261772__digitopia-cdm__gender-gpsl2.wav + * url: https://www.freesound.org/s/261772/ + * license: Attribution + * 261771__digitopia-cdm__gender-gpsl1hh.wav + * url: https://www.freesound.org/s/261771/ + * license: Attribution + * 261770__digitopia-cdm__gender-gpsl1h.wav + * url: https://www.freesound.org/s/261770/ + * license: Attribution + * 261769__digitopia-cdm__gambang-gsl6l.wav + * url: https://www.freesound.org/s/261769/ + * license: Attribution + * 261768__digitopia-cdm__gender-gbpl1.wav + * url: https://www.freesound.org/s/261768/ + * license: Attribution + * 261767__digitopia-cdm__gender-gpsl3.wav + * url: https://www.freesound.org/s/261767/ + * license: Attribution + * 261766__digitopia-cdm__gender-gpsl2hh.wav + * url: https://www.freesound.org/s/261766/ + * license: Attribution + * 261765__digitopia-cdm__saron-sbsl6.wav + * url: https://www.freesound.org/s/261765/ + * license: Attribution + * 261764__digitopia-cdm__saron-sbsl1h.wav + * url: https://www.freesound.org/s/261764/ + * license: Attribution + * 261763__digitopia-cdm__saron-sppl5.wav + * url: https://www.freesound.org/s/261763/ + * license: Attribution + * 261762__digitopia-cdm__saron-spsl1.wav + * url: https://www.freesound.org/s/261762/ + * license: Attribution + * 261761__digitopia-cdm__gender-gspl7.wav + * url: https://www.freesound.org/s/261761/ + * license: Attribution + * 261760__digitopia-cdm__kempyang-kpsl1.wav + * url: https://www.freesound.org/s/261760/ + * license: Attribution + * 261759__digitopia-cdm__gambang-gsl1l.wav + * url: https://www.freesound.org/s/261759/ + * license: Attribution + * 261758__digitopia-cdm__gambang-gsl1hh.wav + * url: https://www.freesound.org/s/261758/ + * license: Attribution + * 261757__digitopia-cdm__gambang-gsl1h.wav + * url: https://www.freesound.org/s/261757/ + * license: Attribution + * 261756__digitopia-cdm__gambang-gsl1.wav + * url: https://www.freesound.org/s/261756/ + * license: Attribution + * 261755__digitopia-cdm__gambang-gsl2l.wav + * url: https://www.freesound.org/s/261755/ + * license: Attribution + * 261754__digitopia-cdm__gambang-gsl2hh.wav + * url: https://www.freesound.org/s/261754/ + * license: Attribution + * 261753__digitopia-cdm__gambang-gsl2h.wav + * url: https://www.freesound.org/s/261753/ + * license: Attribution + * 261752__digitopia-cdm__gambang-gsl2.wav + * url: https://www.freesound.org/s/261752/ + * license: Attribution + * 261751__digitopia-cdm__gender-gpsl6.wav + * url: https://www.freesound.org/s/261751/ + * license: Attribution + * 261750__digitopia-cdm__gender-gpsl6h.wav + * url: https://www.freesound.org/s/261750/ + * license: Attribution + * 261749__digitopia-cdm__gambang-gsl3h.wav + * url: https://www.freesound.org/s/261749/ + * license: Attribution + * 261748__digitopia-cdm__gambang-gsl3.wav + * url: https://www.freesound.org/s/261748/ + * license: Attribution + * 261747__digitopia-cdm__gender-gspl2.wav + * url: https://www.freesound.org/s/261747/ + * license: Attribution + * 261746__digitopia-cdm__gender-gspl3.wav + * url: https://www.freesound.org/s/261746/ + * license: Attribution + * 261745__digitopia-cdm__gender-gspl4.wav + * url: https://www.freesound.org/s/261745/ + * license: Attribution + * 261744__digitopia-cdm__gender-gspl5.wav + * url: https://www.freesound.org/s/261744/ + * license: Attribution + * 261743__digitopia-cdm__bonang-bppl6.wav + * url: https://www.freesound.org/s/261743/ + * license: Attribution + * 261742__digitopia-cdm__bonang-bppl6h.wav + * url: https://www.freesound.org/s/261742/ + * license: Attribution + * 261741__digitopia-cdm__bonang-bppl5.wav + * url: https://www.freesound.org/s/261741/ + * license: Attribution + * 261740__digitopia-cdm__bonang-bppl5h.wav + * url: https://www.freesound.org/s/261740/ + * license: Attribution + * 261739__digitopia-cdm__bonang-bppl4.wav + * url: https://www.freesound.org/s/261739/ + * license: Attribution + * 261738__digitopia-cdm__bonang-bppl4h.wav + * url: https://www.freesound.org/s/261738/ + * license: Attribution + * 261737__digitopia-cdm__bonang-bppl3.wav + * url: https://www.freesound.org/s/261737/ + * license: Attribution + * 261736__digitopia-cdm__bonang-bppl3h.wav + * url: https://www.freesound.org/s/261736/ + * license: Attribution + * 261735__digitopia-cdm__bonang-bppl7.wav + * url: https://www.freesound.org/s/261735/ + * license: Attribution + * 261734__digitopia-cdm__bonang-bppl7h.wav + * url: https://www.freesound.org/s/261734/ + * license: Attribution + * 261733__digitopia-cdm__saron-spsl5.wav + * url: https://www.freesound.org/s/261733/ + * license: Attribution + * 261732__digitopia-cdm__saron-spsl6.wav + * url: https://www.freesound.org/s/261732/ + * license: Attribution + * 261731__digitopia-cdm__saron-sdsl2.wav + * url: https://www.freesound.org/s/261731/ + * license: Attribution + * 261730__digitopia-cdm__saron-sdpl3.wav + * url: https://www.freesound.org/s/261730/ + * license: Attribution + * 261729__digitopia-cdm__gong-gksl3f.wav + * url: https://www.freesound.org/s/261729/ + * license: Attribution + * 261728__digitopia-cdm__saron-sppl4.wav + * url: https://www.freesound.org/s/261728/ + * license: Attribution + * 261727__digitopia-cdm__kenong-ksl5s.wav + * url: https://www.freesound.org/s/261727/ + * license: Attribution + * 261726__digitopia-cdm__saron-sbsl1.wav + * url: https://www.freesound.org/s/261726/ + * license: Attribution + * 261725__digitopia-cdm__saron-sbsl2h.wav + * url: https://www.freesound.org/s/261725/ + * license: Attribution + * 261724__digitopia-cdm__saron-sbsl2.wav + * url: https://www.freesound.org/s/261724/ + * license: Attribution + * 261723__digitopia-cdm__gender-gbsl6l.wav + * url: https://www.freesound.org/s/261723/ + * license: Attribution + * 261722__digitopia-cdm__gender-gbsl6h.wav + * url: https://www.freesound.org/s/261722/ + * license: Attribution + * 261721__digitopia-cdm__kenong-ksl6.wav + * url: https://www.freesound.org/s/261721/ + * license: Attribution + * 261720__digitopia-cdm__saron-sbpl6.wav + * url: https://www.freesound.org/s/261720/ + * license: Attribution + * 261719__digitopia-cdm__gender-gbsl5.wav + * url: https://www.freesound.org/s/261719/ + * license: Attribution + * 261718__digitopia-cdm__gender-gbsl3hh.wav + * url: https://www.freesound.org/s/261718/ + * license: Attribution + * 261717__digitopia-cdm__gender-gbsl6.wav + * url: https://www.freesound.org/s/261717/ + * license: Attribution + * 261716__digitopia-cdm__gender-gbsl5h.wav + * url: https://www.freesound.org/s/261716/ + * license: Attribution + * 261715__digitopia-cdm__gender-gbsl2hh.wav + * url: https://www.freesound.org/s/261715/ + * license: Attribution + * 261714__digitopia-cdm__gender-gbsl2h.wav + * url: https://www.freesound.org/s/261714/ + * license: Attribution + * 261713__digitopia-cdm__gender-gbsl3h.wav + * url: https://www.freesound.org/s/261713/ + * license: Attribution + * 261712__digitopia-cdm__gender-gbsl3.wav + * url: https://www.freesound.org/s/261712/ + * license: Attribution + * 261711__digitopia-cdm__bonang-bbsl6h.wav + * url: https://www.freesound.org/s/261711/ + * license: Attribution + * 261710__digitopia-cdm__bonang-bbsl6.wav + * url: https://www.freesound.org/s/261710/ + * license: Attribution + * 261709__digitopia-cdm__bonang-bppl1h.wav + * url: https://www.freesound.org/s/261709/ + * license: Attribution + * 261708__digitopia-cdm__bonang-bppl1.wav + * url: https://www.freesound.org/s/261708/ + * license: Attribution + * 261707__digitopia-cdm__bonang-bbsl3h.wav + * url: https://www.freesound.org/s/261707/ + * license: Attribution + * 261706__digitopia-cdm__bonang-bbsl3.wav + * url: https://www.freesound.org/s/261706/ + * license: Attribution + * 261705__digitopia-cdm__bonang-bbsl5h.wav + * url: https://www.freesound.org/s/261705/ + * license: Attribution + * 261704__digitopia-cdm__bonang-bbsl5.wav + * url: https://www.freesound.org/s/261704/ + * license: Attribution + * 261703__digitopia-cdm__gong-gksl2lp.wav + * url: https://www.freesound.org/s/261703/ + * license: Attribution + * 261702__digitopia-cdm__gong-gksl2lf.wav + * url: https://www.freesound.org/s/261702/ + * license: Attribution + * 261701__digitopia-cdm__gong-gksl2f.wav + * url: https://www.freesound.org/s/261701/ + * license: Attribution + * 261700__digitopia-cdm__gong-gksl1p.wav + * url: https://www.freesound.org/s/261700/ + * license: Attribution + * 261699__digitopia-cdm__bonang-bppl2h.wav + * url: https://www.freesound.org/s/261699/ + * license: Attribution + * 261698__digitopia-cdm__bonang-bppl2.wav + * url: https://www.freesound.org/s/261698/ + * license: Attribution + * 261697__digitopia-cdm__gong-gksl1f.wav + * url: https://www.freesound.org/s/261697/ + * license: Attribution + * 261696__digitopia-cdm__gong-gkpl7p.wav + * url: https://www.freesound.org/s/261696/ + * license: Attribution + * 261695__digitopia-cdm__saron-sdsl1.wav + * url: https://www.freesound.org/s/261695/ + * license: Attribution + * 261694__digitopia-cdm__saron-sbpl2.wav + * url: https://www.freesound.org/s/261694/ + * license: Attribution + * 261693__digitopia-cdm__saron-sbpl3.wav + * url: https://www.freesound.org/s/261693/ + * license: Attribution + * 261692__digitopia-cdm__kenong-ksl6s.wav + * url: https://www.freesound.org/s/261692/ + * license: Attribution + * 261691__digitopia-cdm__kethuk-ktpl6.wav + * url: https://www.freesound.org/s/261691/ + * license: Attribution + * 261690__digitopia-cdm__gender-gppl7l.wav + * url: https://www.freesound.org/s/261690/ + * license: Attribution + * 261689__digitopia-cdm__gender-gpsl1.wav + * url: https://www.freesound.org/s/261689/ + * license: Attribution + * 261688__digitopia-cdm__kethuk-ktsl2s.wav + * url: https://www.freesound.org/s/261688/ + * license: Attribution + * 261687__digitopia-cdm__saron-sbpl1.wav + * url: https://www.freesound.org/s/261687/ + * license: Attribution + * 261686__digitopia-cdm__kethuk-ktpl6s.wav + * url: https://www.freesound.org/s/261686/ + * license: Attribution + * 261685__digitopia-cdm__kethuk-ktsl2.wav + * url: https://www.freesound.org/s/261685/ + * license: Attribution + * 261684__digitopia-cdm__gender-gppl5h.wav + * url: https://www.freesound.org/s/261684/ + * license: Attribution + * 261683__digitopia-cdm__gender-gppl6.wav + * url: https://www.freesound.org/s/261683/ + * license: Attribution + * 261682__digitopia-cdm__gender-gppl3hh.wav + * url: https://www.freesound.org/s/261682/ + * license: Attribution + * 261681__digitopia-cdm__gender-gppl5.wav + * url: https://www.freesound.org/s/261681/ + * license: Attribution + * 261680__digitopia-cdm__gender-gppl7.wav + * url: https://www.freesound.org/s/261680/ + * license: Attribution + * 261679__digitopia-cdm__gender-gppl7h.wav + * url: https://www.freesound.org/s/261679/ + * license: Attribution + * 261678__digitopia-cdm__gender-gppl6h.wav + * url: https://www.freesound.org/s/261678/ + * license: Attribution + * 261677__digitopia-cdm__gender-gppl6l.wav + * url: https://www.freesound.org/s/261677/ + * license: Attribution + * 261676__digitopia-cdm__kenong-ksl2h.wav + * url: https://www.freesound.org/s/261676/ + * license: Attribution + * 261675__digitopia-cdm__kenong-ksl2hs.wav + * url: https://www.freesound.org/s/261675/ + * license: Attribution + * 261674__digitopia-cdm__gender-gppl1hh.wav + * url: https://www.freesound.org/s/261674/ + * license: Attribution + * 261673__digitopia-cdm__gender-gppl2.wav + * url: https://www.freesound.org/s/261673/ + * license: Attribution + * 261672__digitopia-cdm__gender-gppl1.wav + * url: https://www.freesound.org/s/261672/ + * license: Attribution + * 261671__digitopia-cdm__gender-gppl1h.wav + * url: https://www.freesound.org/s/261671/ + * license: Attribution + * 261670__digitopia-cdm__gender-gppl3.wav + * url: https://www.freesound.org/s/261670/ + * license: Attribution + * 261669__digitopia-cdm__gender-gppl3h.wav + * url: https://www.freesound.org/s/261669/ + * license: Attribution + * 261668__digitopia-cdm__gender-gppl2h.wav + * url: https://www.freesound.org/s/261668/ + * license: Attribution + * 261667__digitopia-cdm__gender-gppl2hh.wav + * url: https://www.freesound.org/s/261667/ + * license: Attribution + + diff --git a/examples/ofx/asciiVideo_rapidmix/src/main.cpp b/examples/ofx/asciiVideo_rapidmix/src/main.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b156efd6462508e05464b025aef928d4235ef73b --- /dev/null +++ b/examples/ofx/asciiVideo_rapidmix/src/main.cpp @@ -0,0 +1,14 @@ +#include "ofMain.h" +#include "ofApp.h" + +//======================================================================== +int main( ){ + + ofSetupOpenGL(640,480, OF_WINDOW); // <-------- setup the GL context + + // this kicks off the running of my app + // can be OF_WINDOW or OF_FULLSCREEN + // pass in width and height too: + ofRunApp( new ofApp()); + +} diff --git a/examples/ofx/asciiVideo_rapidmix/src/ofApp.cpp b/examples/ofx/asciiVideo_rapidmix/src/ofApp.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ad936cfc56e7d965a4675f6a1c438fb07b2b3624 --- /dev/null +++ b/examples/ofx/asciiVideo_rapidmix/src/ofApp.cpp @@ -0,0 +1,295 @@ +#include "ofApp.h" + +//-------------------------------------------------------------- +void ofApp::setup(){ + + ofBackground(0,0,0); + + camWidth = 32; // try to grab at this size. + camHeight = 24; + + vidGrabber.setVerbose(true); + vidGrabber.setup(camWidth,camHeight); + + font.load("Courier New Bold.ttf", 20); + + // this set of characters comes from processing: + //http://processing.org/learning/library/asciivideo.html + + // changed order slightly to work better for mapping + asciiCharacters = string(" ..,,,'''``--_:;^^**""=+<>iv%&xclrs)/){}I?!][1taeo7zjLunT#@JCwfy325Fp6mqSghVd4EgXPGZbYkOA8U$KHDBWNMR0Q"); + + ofEnableAlphaBlending(); + + /* + xcfg.relativeRegularization = 0.1; + myGmm = new rapidmix::xmmStaticClassification(xcfg); + */ + + + sampleRate = 44100; /* Sampling Rate */ + bufferSize = 512; /* Buffer Size. you have to fill this buffer with sound using the for loop in the audioOut method */ + + + gam_1.load(ofToDataPath("261938__digitopia-cdm__saron-sdpl1.wav")); + gam_3.load(ofToDataPath("261730__digitopia-cdm__saron-sdpl3.wav")); + gam_4.load(ofToDataPath("261927__digitopia-cdm__saron-sdpl4.wav")); + gam_5.load(ofToDataPath("261924__digitopia-cdm__saron-sdpl5.wav")); + gam_6.load(ofToDataPath("261968__digitopia-cdm__saron-sdpl6.wav")); + gam_7.load(ofToDataPath("261883__digitopia-cdm__saron-sdpl7.wav")); + + + ofxMaxiSettings::setup(sampleRate, 2, initialBufferSize); + ofSoundStreamSetup(2,0,this, sampleRate, bufferSize, 4); /* this has to happen at the end of setup - it switches on the DAC */ +} + +//-------------------------------------------------------------- +void ofApp::exit(){ + ofSoundStreamStop(); + ofSoundStreamClose(); +} + + +//-------------------------------------------------------------- +void ofApp::update(){ + vidGrabber.update(); +} + +//-------------------------------------------------------------- +void ofApp::draw(){ + + + // change background video alpha value based on the mouse position + float videoAlphaValue = ofMap(mouseX, 0,ofGetWidth(),0,255); + + // set a white fill color with the alpha generated above + ofSetColor(255,255,255,videoAlphaValue); + + // draw the raw video frame with the alpha value generated above + vidGrabber.draw(0,0,640,480); + + ofPixelsRef pixelsRef = vidGrabber.getPixels(); + + ofSetHexColor(0xffffff); + + //-------RAPID-MIX---------------// + std::vector<double> trainingInput; + std::vector<double> trainingOutput; + + switch (recordingState) { + case 1: + ofSetColor(255, 0, 0); + break; + case 2: + ofSetColor(0, 255, 0); + break; + case 3: + ofSetColor(0, 0, 255); + break; + default: + ofSetColor(255, 255, 255); + } + + + for (int i = 0; i < camWidth; ++i){ + for (int j = 0; j < camHeight; ++j){ + // get the pixel and its lightness (lightness is the average of its RGB values) + float lightness = pixelsRef.getColor(i,j).getLightness(); + //RAPIDMIX + trainingInput.push_back(double(lightness)); + + + if (!runToggle) { + // calculate the index of the character from our asciiCharacters array + int character = powf( ofMap(lightness, 0, 255, 0, 1), 2.5) * asciiCharacters.size(); + // draw the character at the correct location + font.drawString(ofToString(asciiCharacters[character]), i * 20, j * 20); + } + } + } + + if (runToggle) { + result = myKnn.run(trainingInput)[0]; + // std::cout << "Gmm " << myGmm.run(trainingInput) << std::endl; + for (int i = 0; i < camWidth; ++i){ + for (int j = 0; j < camHeight; ++j){ + float lightness = pixelsRef.getColor(i,j).getLightness(); + switch (result) { + case 1: + ofSetColor(lightness, 0, 0, lightness); + break; + case 2: + ofSetColor(0, lightness, 0, lightness); + break; + case 3: + ofSetColor(0, 0, lightness, lightness); + break; + default: + ofSetColor(lightness, lightness, lightness, lightness); + } + font.drawString(ofToString(result), i * 20, j * 20); + } + } + } + + if (recordingState) { + trainingOutput = { double(recordingState) }; + myData.addElement(trainingInput, trainingOutput); + } +} + + +//-------------------------------------------------------------- +void ofApp::audioOut(float * output, int bufferSize, int nChannels) { + for (int i = 0; i < bufferSize; ++i){ + + + currentCount=(int)timer.phasor(8);//this sets up a metronome that ticks 8 times a second + + + if (lastCount!=currentCount) {//if we have a new timer int this sample, play the sound + + //This is a 16-step step sequencer + switch (playHead%16) { + case 1: + gam_4.trigger(); + break; + + case 5: + if (result == 3 || result == 2) { + gam_6.trigger(); + } + break; + case 7: + if (result == 1) { + gam_5.trigger(); + } + break; + case 9: + if (result == 1) { + gam_6.trigger(); + } + break; + case 11: + if (result == 2) { + gam_7.trigger(); + } + break; + case 13: + if (result == 3) { + gam_1.trigger(); + } + case 15: + if (result == 2) { + gam_3.trigger(); + } + + + } + + ++playHead;//iterate the playhead + lastCount=0;//reset the metrotest + } + + + double gamOutput = gam_1.playOnce() + gam_3.playOnce() + gam_4.playOnce() + gam_5.playOnce() + gam_6.playOnce() + gam_7.playOnce(); + + mymix.stereo(gamOutput, outputs, 0.5); + output[i*nChannels ] = outputs[0]; + output[i*nChannels + 1] = outputs[1]; + + } + +} + + +//-------------------------------------------------------------- +void ofApp::keyPressed (int key){ + + // in fullscreen mode, on a pc at least, the + // first time video settings the come up + // they come up *under* the fullscreen window + // use alt-tab to navigate to the settings + // window. we are working on a fix for this... + + if (key == 's' || key == 'S'){ + vidGrabber.videoSettings(); + } + + switch(key) { + case 49: + recordingState = 1; + myData.startRecording("1"); + break; + case 50: + recordingState = 2; + myData.startRecording("2"); + break; + case 51: + recordingState = 3; + myData.startRecording("3"); + break; + case 32: + runToggle = (runToggle) ? false : true; + if (!runToggle) { + result = 0; + } + } + std::cout << "runToggle " << runToggle << std::endl; + +} + +//-------------------------------------------------------------- +void ofApp::keyReleased(int key){ + recordingState = 0; + myData.stopRecording(); + if(myData.trainingSet.size() > 0) { + myKnn.train(myData); + myGmm.train(myData); + } +} + +//-------------------------------------------------------------- +void ofApp::mouseMoved(int x, int y ){ + +} + +//-------------------------------------------------------------- +void ofApp::mouseDragged(int x, int y, int button){ + +} + +//-------------------------------------------------------------- +void ofApp::mousePressed(int x, int y, int button){ + +} + +//-------------------------------------------------------------- +void ofApp::mouseReleased(int x, int y, int button){ + +} + +//-------------------------------------------------------------- +void ofApp::mouseEntered(int x, int y){ + +} + +//-------------------------------------------------------------- +void ofApp::mouseExited(int x, int y){ + +} + +//-------------------------------------------------------------- +void ofApp::windowResized(int w, int h){ + +} + +//-------------------------------------------------------------- +void ofApp::gotMessage(ofMessage msg){ + +} + +//-------------------------------------------------------------- +void ofApp::dragEvent(ofDragInfo dragInfo){ + +} diff --git a/examples/ofx/asciiVideo_rapidmix/src/ofApp.h b/examples/ofx/asciiVideo_rapidmix/src/ofApp.h new file mode 100644 index 0000000000000000000000000000000000000000..1396aaad1946a019d25e1dbd3b214a71725ed0d1 --- /dev/null +++ b/examples/ofx/asciiVideo_rapidmix/src/ofApp.h @@ -0,0 +1,63 @@ +#pragma once + +#include "ofMain.h" +#include "rapidmix.h" +#include "ofxMaxim.h" + +class ofApp : public ofBaseApp{ + +public: + + void setup(); + void exit(); + void update(); + void draw(); + + void keyPressed(int key); + void keyReleased(int key); + void mouseMoved(int x, int y ); + void mouseDragged(int x, int y, int button); + void mousePressed(int x, int y, int button); + void mouseReleased(int x, int y, int button); + void mouseEntered(int x, int y); + void mouseExited(int x, int y); + void windowResized(int w, int h); + void dragEvent(ofDragInfo dragInfo); + void gotMessage(ofMessage msg); + + ofVideoGrabber vidGrabber; + int camWidth; + int camHeight; + + string asciiCharacters; + ofTrueTypeFont font; + + //-----RAPID-MIX-----// + rapidmix::trainingData myData; + int recordingState; + rapidmix::staticClassification myKnn; + bool runToggle; + int result; + + + xmmToolConfig xcfg; + rapidmix::xmmStaticClassification myGmm; + + //-----MAXI-----// + + int bufferSize; + int initialBufferSize; //MZ: What is this for? + int sampleRate; + void audioOut(float * output, int bufferSize, int nChannels); + double outputs[2]; + maxiMix mymix; + + maxiOsc timer; + int currentCount; + int lastCount; + int playHead; + + maxiSample gam_1, gam_3, gam_4, gam_5, gam_6, gam_7; + + +};