{# The one way a page plays a sound: ▶, which turns to ⏸ while it plays, and the speed button beside it. `static/player.js` wires every player on the page. `seek` adds a bar to move through the sound, for a recording long enough to need one: the sound a whole exercise is about. `wave` draws the sound beside ▶, for a short one. `slow` false leaves the speed button out, where a speed would be read as part of what is made: on a card. `size` is `big` or `small`. `speed` alone is for a page that plays a sound itself, as shadowing does: the same button, the same speeds, driven by its own script. #} {% import "icons.html" as icon %} {% macro speed() %} {% endmacro %} {% macro sound(src, size="", seek=false, wave=false, slow=true) %}
{% if wave %} {% endif %} {% if seek %} {% endif %} {% if slow %} {{ speed() }} {% endif %}
{% endmacro %}