--- layout: default title: "{{ page.file }}" ---
{% include sidebar.html %}

{{ page.file }}

{% if page.file or page.bpm %}
{% if page.file %}
📁 Arquivo: {{ page.file }}
{% endif %} {% if page.bpm %}
🎵 BPM: {{ page.bpm }}
{% endif %}
{% endif %}
{% if page.tags %} {% assign tags_vazias = true %} {% for categoria in page.tags %} {% if categoria[1].size > 0 %} {% assign tags_vazias = false %} {% endif %} {% endfor %} {% unless tags_vazias %}
{% assign audio_file = '/mmp/wav/' | append: page.file | append: '.wav' %} {% if audio_file %}
{% endif %}
🏷️ Tags {% for categoria in page.tags %} {% if categoria[1].size > 0 %}
{{ categoria[0] }}:
{% for valor in categoria[1] %} {% if valor != "" %} {% assign tag_slug = valor | replace: ' ', '+' %} {% if categoria[0] == 'bassline' %} {{ valor }} {% elsif categoria[0] == 'sample' %} {{ valor }} {% elsif categoria[0] == 'plugin' %} {{ valor }} {% elsif categoria[0] == 'automation' %} {{ valor }} {% else %} {{ valor }} {% endif %} {% endif %} {% endfor %}
{% endif %} {% endfor %}
{% endunless %} {% endif %} {% if page.tracks and page.tracks.size > 0 %}
{% comment %} USANDO
PARA CRIAR UM ACORDION NATIVO: O atributo "open" (se presente) mantém a lista expandida. O é o título clicável que o usuário vê. {% endcomment %}
🎚️ Instrumentos
    {% for track in page.tracks %} {% assign tem_instr = false %} {% if track.instruments and track.instruments.size > 0 %} {% assign tem_instr = true %} {% endif %} {% if track.bassline_name or tem_instr %}
  • {% if track.bassline_name %}

    🎼 {{ track.bassline_name }}

    {% endif %} {% if tem_instr %}
      {% for instrument in track.instruments %} {% if instrument.instrument_name %}
    • {% assign instrument_slug = instrument.instrument_name | replace: ' ', '+' %} {{ instrument.instrument_name }} {% comment %} VERIFICAÇÃO DE SAMPLE: Se `audiofileprocessor` existir E `src` existir E `src` não for vazio, exibe o player. {% endcomment %} {% assign sample_src = instrument.audiofileprocessor.src | default: "" | strip %} {% if instrument.audiofileprocessor and sample_src != "" %} {% assign audio_filename_with_path = 'src/samples/' | append: sample_src %}
      {% else %} {% comment %} CONDIÇÃO DE MENSAGEM: O sample não foi enviado! {% endcomment %}

      O sample **não foi enviado** 😢

      {% endif %}
    • {% endif %} {% endfor %}
    {% endif %}
  • {% endif %} {% endfor %}
{% endif %}

🛠️ Abra na Criação Colaborativa

{% comment %} CONSTRUÇÃO DA URL CORRIGIDA PARA AMBIENTES DE TESTE: - O filtro `relative_url` foi removido para evitar a duplicação do caminho. - O prefixo de teste `/~jotachina/mmpSearch/` foi adicionado manualmente. {% endcomment %} {% assign creation_url = '/~jotachina/mmpSearch/creation.html?project=' | append: page.file %} Abrir no MMPCreator

O link abrirá o projeto em uma nova aba para edição.
Arquivo: {{ page.file }}

{% assign embed_url = creation_url | append: '&embed=true' %}