Adiciona site de loops
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa05552170
commit
5f5850fd02
45 files changed
+1281
No files matched your search
+74
@@ -0,0 +1,74 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{% assign teclas = "1234567890qwertyuiopasd" | split: "" %}{% assign n = 0 %}
|
||||
<main class="mixer" data-base="{{ site.baseurl }}">
|
||||
<section class="console" aria-label="Controles gerais">
|
||||
<h1>{{ site.title }}</h1>
|
||||
|
||||
<div class="andamento">
|
||||
<output id="bpm-valor" class="bpm" for="bpm">100</output>
|
||||
<span>batidas por minuto</span>
|
||||
<div class="bpm-linha">
|
||||
<button type="button" class="passo" id="bpm-menos" aria-label="Diminuir andamento">−</button>
|
||||
<input id="bpm" type="range" min="50" max="200" step="1" value="100" aria-label="Andamento em batidas por minuto">
|
||||
<button type="button" class="passo" id="bpm-mais" aria-label="Aumentar andamento">+</button>
|
||||
</div>
|
||||
<button type="button" class="tap" id="tap">Marcar o tempo</button>
|
||||
</div>
|
||||
|
||||
<button type="button" class="tocar" id="tocar" disabled>Carregando</button>
|
||||
<p class="status" id="status" role="status">Preparando os loops.</p>
|
||||
|
||||
<div class="inicio-bloco">
|
||||
<span id="inicio-titulo">Começar no tempo</span>
|
||||
<div class="inicio" id="inicio" role="group" aria-labelledby="inicio-titulo"></div>
|
||||
</div>
|
||||
|
||||
<div class="bip-linha">
|
||||
<button type="button" class="tap" id="bip" aria-pressed="false">Bip</button>
|
||||
<input id="volume-bip" type="range" min="0" max="1" step="0.01" value="0.5" aria-label="Volume do bip">
|
||||
</div>
|
||||
|
||||
<label class="geral">Volume geral
|
||||
<input id="volume-geral" type="range" min="0" max="1" step="0.01" value="0.9">
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<div class="palco">
|
||||
<div class="abas" role="tablist" aria-label="Seções">
|
||||
<button type="button" role="tab" id="aba-loops" aria-controls="painel-loops" aria-selected="true">Loops</button>
|
||||
<button type="button" role="tab" id="aba-joystick" aria-controls="painel-joystick" aria-selected="false">Joystick</button>
|
||||
</div>
|
||||
|
||||
<div class="ritmos" id="painel-loops" role="tabpanel" aria-labelledby="aba-loops">
|
||||
{% for grupo in site.data.loops %}
|
||||
<section class="ritmo" style="--cor: {{ grupo.cor }}" aria-labelledby="ritmo-{{ forloop.index }}">
|
||||
<h2 id="ritmo-{{ forloop.index }}">{{ grupo.ritmo }}</h2>
|
||||
<div class="roda">
|
||||
{% for loop in grupo.loops %}
|
||||
<div class="canal">
|
||||
<button type="button" class="disco" data-id="{{ loop.id }}"{% unless grupo.disparo %} aria-pressed="false"{% endunless %}{% if teclas[n] %} aria-keyshortcuts="{{ teclas[n] }}"{% endif %} disabled>
|
||||
<span class="nome">{{ loop.nome }}</span>
|
||||
</button>
|
||||
<div class="volume">
|
||||
{% if teclas[n] %}<kbd>{{ teclas[n] | upcase }}</kbd>{% else %}<span></span>{% endif %}
|
||||
<input type="range" min="0" max="1" step="0.01" value="{{ loop.volume }}" data-volume="{{ loop.id }}" aria-label="Volume de {{ loop.nome }}, {{ grupo.ritmo }}">
|
||||
</div>
|
||||
</div>
|
||||
{% assign n = n | plus: 1 %}{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<section class="joystick" id="painel-joystick" role="tabpanel" aria-labelledby="aba-joystick" hidden>
|
||||
<h2 id="joy-nome">Nenhum joystick encontrado</h2>
|
||||
<p id="joy-status" role="status">Conecte o joystick e aperte qualquer botão dele. O navegador só mostra o controle depois do primeiro botão.</p>
|
||||
<div class="joy-paineis" id="joy-paineis"></div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<script type="application/json" id="loops-dados">{{ site.data.loops | jsonify }}</script>
|
||||
<script src="{{ '/assets/js/mixer.js' | relative_url }}"></script>
|
||||
<script src="{{ '/assets/js/joystick.js' | relative_url }}"></script>
|
||||
Reference in new issue
Block a user