diff --git a/_layouts/projetos.html b/_layouts/projetos.html
index 7e166107..7a711263 100755
--- a/_layouts/projetos.html
+++ b/_layouts/projetos.html
@@ -3,170 +3,177 @@ layout: default
title: "Visualizando Projeto"
---
-
-
-
-
- {% include sidebar.html %}
+
+
+
-
-
-
-
-
+
+ // Ativa os botões de teste de synth
+ document.querySelectorAll('.js-play-synth-btn').forEach(btn => {
+ btn.addEventListener('click', () => {
+ const data = JSON.parse(btn.dataset.params);
+ factory.play(data);
+ });
+ });
+}
+
+function renderInstrumentBlock(inst) {
+ const isSample = (inst.instrument_name && inst.instrument_name.toLowerCase() === 'audiofileprocessor') || !!inst.audiofileprocessor;
+ let displayName = inst.instrument_name;
+
+ if (isSample && inst.patterns && inst.patterns.length > 0) {
+ displayName = inst.patterns[0].name ? inst.patterns[0].name.replace(/\.(ogg|mp3|flac|wav)$/i, '') : displayName;
+ }
+
+ return `
+
+
+
+ ${displayName} ${isSample ? '' : '(Synth 🎹)'}
+
+ ${(inst.patterns || []).map(pat => renderPatternSteps(pat)).join('')}
+
+
+ ${isSample ?
+ (inst.audiofileprocessor?.src ? `
` : '
Sample não disponível
')
+ : `
`
+ }
+
+
`;
+}
+
+function renderPatternSteps(pattern) {
+ if (!pattern.steps || pattern.steps.length === 0) return '';
+ return `
+
+ ${pattern.steps.map(step => `
+
+ `).join('')}
+
`;
+}
+
\ No newline at end of file
diff --git a/pages/projetos.html b/pages/projetos.html
index bce5f89c..4f06d2ff 100755
--- a/pages/projetos.html
+++ b/pages/projetos.html
@@ -4,6 +4,11 @@ title: MMPSearch - Projetos
permalink: /projetos/
---
+{% assign list_plugins = "" %}{% assign list_instruments = "" %} {% for p in
+site.data.all %}{% for item in p.tags.plugin %}{% assign list_plugins =
+list_plugins | append: item | append: "|||" %}{% endfor %}{% endfor %} {% assign
+unique_plugins = list_plugins | split: "|||" | uniq | sort %}
+
@@ -11,14 +16,109 @@ permalink: /projetos/
{% include sidebar.html %}
+
+
+
📁 Projetos Disponíveis
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+ ${Array.from({length: 16}).map((_, i) => `
+
+ `).join('')}
+
+
+
+
+
+
+
+ Encontrados 0 projetos.
+
-
Nenhum projeto encontrado.
@@ -27,43 +127,187 @@ permalink: /projetos/
+
+