Web API example ====== MIDI To Web ====== Converts MIDI commands to web API requests, providing a simple way to control Titan PC suite with USB-MIDI. ^ author, date | Sebastian Beutel, 2018 | ^ published | https://www.avolites.de/support-downloads/midi-to-web | ^ prog. lang./ framework | C, C++ (sources and instructions to compile it with GCC/MinGW are provided) | ^ description | The result is a simple exe file which can run on Windows computers. It listens to class-compliant MIDI devices. Upon incoming MIDI messages Web API requests are being sent.\\ \\ Configuation - which request being triggered by which MIDI message - is done by editing a simple text file. Extensive examples are provided.\\ \\ Also includes [[webapi:examples:titanids]] to retrieve the [[macros:identifier:titanid|Titan IDs]] and [[macros:identifier:location|location strings]]. | ^ other requirements | none (for using [[webapi:examples:titanids]] a web browser is required) | ===== Screenshots ===== |{{:webapi:examples:midi2web_1.png?323|MidiToWeb (console program)}}|{{:webapi:examples:midi2web_2.png?394|MidiToWeb's config file}}|{{:webapi:examples:titan_ids_1.png?198|TitanIDs}}| ---- ===== API Requests ===== //MIDI To Web uses a modular system to allow for defining requests and parameters separately. This is explained in length in the manual, and briefly in the config file itself. This system allows to add more WebAPI requests if needed just by editing the config file. Here, just the requests are listed which are included as examples.// * [[webapi:requests:playbacks_fireplaybackatlevel]] * [[webapi:requests:playbacks_swopplayback]] * [[webapi:requests:playbacks_clearswopplayback]] * [[webapi:requests:playbacks_flashplayback]] * [[webapi:requests:playbacks_clearflashplayback]] * [[webapi:requests:masters_setmaster]] * [[webapi:requests:masters_flash]] * [[webapi:requests:masters_deadblackout]] * [[webapi:requests:masters_clearflash]] * [[webapi:requests:group_setgroupfaderlevel]] * [[webapi:requests:palette_applypalette]] * [[webapi:requests:masters_setspeed]]