diff --git a/audiowidget.tmpl.stub b/audiowidget.tmpl.stub new file mode 100644 index 0000000..dbe5857 --- /dev/null +++ b/audiowidget.tmpl.stub @@ -0,0 +1,25 @@ +{# audiowidget.tmpl.stub + Copy to neusician/templates/ and rename to audiowidget.tmpl. + Include from base.tmpl or any score page with: + {% include 'audiowidget.tmpl' %} + + Variables expected in context (all provided by /sompyle/status.json + via the sompyler_status_json route): + result_url – URL to the rendered audio file (e.g. /sompyle/result.mp3) + errors – non-empty string on synthesis failure, else empty/absent + + The default JS audio widget in PaneCP renders a plain