Audio Sequencer
Dogelog features a foreign function interface. In this example,
we demonstrate how to use it, to let Dogelog play Mary had a
little Lamb. We also demonstrate the asynchronous API of the
Dogelog player. When this API is used the Dogelog player can be
forced to wait for Promise to be resolved, which we will use to
time the tune.
- Foreign Registration: Foreign functions are useful for
the end-user if he wants to quickly extend the Prolog system by
JavaScript functionality. More..
- Button Click: JavaScript permits async functions as
their event handler. We do so to play the tune, but we have to
also intermittently disable the button. More..
- Example Uses: The HTML page has been derived from the
sandbox example, pressing the Try it button will play the tune.
More..
Kommentare