diff --git a/pages/automation.md b/pages/automation.md index d69abea1..eba50fc2 100644 --- a/pages/automation.md +++ b/pages/automation.md @@ -1,130 +1,306 @@ --- layout: default -title: Projetos com a tag Automation +title: Projetos por Automação permalink: /automation/ ---
-
{% include sidebar.html %}
+
-
-
- -
-

- Projetos que possuem a tag automation: -

+
+
+ +
+ {% include sidebar.html %}
- -
- -
-
- -
- {% for projeto in site.data.all %} {% if projeto.tags.TAG contains - "automation" %} -
-
- - {% assign file_url = projeto.file | downcase | replace: ' ', '-' | - replace: 'ç', 'c' | replace: 'ã', 'a' | replace: 'á', 'a' | replace: - 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' | replace: 'í', 'i' | - replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: - 'ú', 'u' %} +
- - {{ projeto.file }} - + +
+ + Todos as pistas de Automação Disponíveis + +
+ +
- - {% if projeto.tags.automation and projeto.tags.automation.size > 0 %} -
-

Automation:

-
    - {% for automation in projeto.tags.automation %} {% if automation - != "" %} -
  • - {{ automation }} -
  • - {% endif %} {% endfor %} -
+
+
+ {% assign all_automation_string = "" %} + + {% for p in site.data.all %} + {% for track in p.tracks %} + {% if track.automation %} + {% for inst in track.automation %} + {% if inst.instrument_name and inst.instrument_name != "" %} + {% unless all_automation_string contains inst.instrument_name %} + {% assign all_automation_string = all_automation_string | append: inst.instrument_name | append: "|||" %} + {% endunless %} + {% endif %} + {% endfor %} + {% elsif track.instrument_name and track.instrument_name != "" %} + {% unless all_automation_string contains track.instrument_name %} + {% assign all_automation_string = all_automation_string | append: track.instrument_name | append: "|||" %} + {% endunless %} + {% endif %} + {% endfor %} + {% endfor %} + + {% assign unique_automation = all_automation_string | split: "|||" | sort %} + + {% for item in unique_automation %} + {% if item != "" %} + + {{ item }} + + {% endif %} + {% endfor %} +
+
+

Clique para filtrar.

+
- {% endif %} +
+ +
+
+

+ + Filtro: (todos) +

+
+
+
- {% endif %} {% endfor %} + +
+ {% for projeto in site.data.all %} + + {% assign project_insts = "" %} + {% for track in projeto.tracks %} + {% if track.automation %} + {% for inst in track.automation %} + {% assign project_insts = project_insts | append: inst.instrument_name | append: "," %} + {% endfor %} + {% elsif track.instrument_name %} + {% assign project_insts = project_insts | append: track.instrument_name | append: "," %} + {% endif %} + {% endfor %} + +
+ +
+ + {% assign file_url = projeto.file | downcase | replace: ' ', '-' | replace: 'ç', 'c' | replace: 'ã', 'a' | replace: 'á', 'a' | replace: 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' | replace: 'í', 'i' | replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: 'ú', 'u' %} + {% assign page_url = '../mmp_pages/' | append: file_url | append: '.html' %} + + +
+ +
+ +
+ +

+ {{ projeto.file }} +

+ + {% if projeto.bpm %} +
+ + 🎵 {{ projeto.bpm }} BPM + +
+ {% else %} +
+ {% endif %} + +
+ + {% assign unique_proj_insts = project_insts | split: "," | uniq %} + {% if unique_proj_insts.size > 0 %} +
+ {% for item in unique_proj_insts %} + {% if item != "" %} + + {{ item | truncate: 15 }} + + {% endif %} + {% endfor %} +
+ {% endif %} +
+
+ + + +
+
+ {% endfor %} +
+
- diff --git a/pages/bassline.md b/pages/bassline.md index 00e482ce..ff010420 100644 --- a/pages/bassline.md +++ b/pages/bassline.md @@ -1,138 +1,306 @@ --- layout: default -title: Projetos com a tag Bassline +title: Projetos por Basslines permalink: /bassline/ ---
-
{% include sidebar.html %}
+
-
-
- -
-

- Projetos que possuem a tag bassline: -

+
+
+ +
+ {% include sidebar.html %}
- -
- -
-
- -
- {% for projeto in site.data.all %} {% if projeto.tags.TAG contains - "bassline" %} -
-
- - {% assign file_url = projeto.file | downcase | replace: ' ', '-' | - replace: 'ç', 'c' | replace: 'ã', 'a' | replace: 'á', 'a' | replace: - 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' | replace: 'í', 'i' | - replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: - 'ú', 'u' %} +
- - {{ projeto.file }} - + +
+ + Todos as Basslines Disponíveis + +
+ +
- - {% if projeto.tags.bassline and projeto.tags.bassline.size > 0 %} -
-

Bassline:

-
    - {% for bassline in projeto.tags.bassline %} {% if bassline != "" - %} -
  • - {{ bassline }} -
  • - {% endif %} {% endfor %} -
+
+
+ {% assign all_automation_string = "" %} + + {% for p in site.data.all %} + {% for track in p.tracks %} + {% if track.bassline %} + {% for inst in track.bassline %} + {% if inst.instrument_name and inst.instrument_name != "" %} + {% unless all_automation_string contains inst.instrument_name %} + {% assign all_automation_string = all_automation_string | append: inst.instrument_name | append: "|||" %} + {% endunless %} + {% endif %} + {% endfor %} + {% elsif track.instrument_name and track.instrument_name != "" %} + {% unless all_automation_string contains track.instrument_name %} + {% assign all_automation_string = all_automation_string | append: track.instrument_name | append: "|||" %} + {% endunless %} + {% endif %} + {% endfor %} + {% endfor %} + + {% assign unique_automation = all_automation_string | split: "|||" | sort %} + + {% for item in unique_automation %} + {% if item != "" %} + + {{ item }} + + {% endif %} + {% endfor %} +
+
+

Clique para filtrar.

+
- {% endif %} +
+ +
+
+

+ + Filtro: (todos) +

+
+
+
- {% endif %} {% endfor %} + +
+ {% for projeto in site.data.all %} + + {% assign project_insts = "" %} + {% for track in projeto.tracks %} + {% if track.bassline %} + {% for inst in track.bassline %} + {% assign project_insts = project_insts | append: inst.instrument_name | append: "," %} + {% endfor %} + {% elsif track.instrument_name %} + {% assign project_insts = project_insts | append: track.instrument_name | append: "," %} + {% endif %} + {% endfor %} + +
+ +
+ + {% assign file_url = projeto.file | downcase | replace: ' ', '-' | replace: 'ç', 'c' | replace: 'ã', 'a' | replace: 'á', 'a' | replace: 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' | replace: 'í', 'i' | replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: 'ú', 'u' %} + {% assign page_url = '../mmp_pages/' | append: file_url | append: '.html' %} + + +
+ +
+ +
+ +

+ {{ projeto.file }} +

+ + {% if projeto.bpm %} +
+ + 🎵 {{ projeto.bpm }} BPM + +
+ {% else %} +
+ {% endif %} + +
+ + {% assign unique_proj_insts = project_insts | split: "," | uniq %} + {% if unique_proj_insts.size > 0 %} +
+ {% for item in unique_proj_insts %} + {% if item != "" %} + + {{ item | truncate: 15 }} + + {% endif %} + {% endfor %} +
+ {% endif %} +
+
+ + + +
+
+ {% endfor %} +
+
- diff --git a/pages/beats.md b/pages/beats.md new file mode 100644 index 00000000..7314070d --- /dev/null +++ b/pages/beats.md @@ -0,0 +1,155 @@ +--- +layout: default +title: Beats Disponíveis +permalink: /beats/ +--- + +
+
+ {% include sidebar.html %} + +
+
+ + + +
+

🎧 Beats Disponíveis

+

+ Ouça e baixe beats criados pela comunidade. +

+
+
+ +
+ {% assign files = site.static_files %} + {% for file in files %} + {% if file.path contains '/wav/' %} + +
+
+ +
+ +
+ +
+ + {% assign file_name_clean = file.name | remove: '.wav' %} + {% assign project_url = "" %} + + {% for projeto in site.data.all %} + {% if projeto.file == file_name_clean %} + {% assign project_url = "/mmp_pages/" + | append: projeto.file | downcase + | replace: ' ', '-' | replace: 'ç', 'c' | replace: 'ã', 'a' | replace: 'á', 'a' | replace: 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' | replace: 'í', 'i' | replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: 'ú', 'u' + | append: ".html" %} + {% endif %} + {% endfor %} + +

+ {% if project_url != "" %} + + {{ file_name_clean }} + + {% else %} + {{ file_name_clean }} + {% endif %} +

+ +
+ +
+ +
+
+
+ + {% endif %} + {% endfor %} +
+ +
+ +
+
+ + + + diff --git a/pages/sample.md b/pages/sample.md index 953df4f9..6d0ad053 100644 --- a/pages/sample.md +++ b/pages/sample.md @@ -1,127 +1,306 @@ --- layout: default -title: Projetos com a tag Sample +title: Projetos por Samples permalink: /sample/ --- - + -
+
-
- {% include sidebar.html %} -
-
-
- -
-

Projetos que possuem a tag sample:

+
+
+ +
+ {% include sidebar.html %}
- -
- -
-
- -
- {% for projeto in site.data.all %} - {% if projeto.tags.TAG contains "sample" %} -
-
- - {% assign file_url = projeto.file | downcase - | replace: ' ', '-' - | replace: 'ç', 'c' - | replace: 'ã', 'a' - | replace: 'á', 'a' - | replace: 'â', 'a' - | replace: 'é', 'e' - | replace: 'ê', 'e' - | replace: 'í', 'i' - | replace: 'ó', 'o' - | replace: 'ô', 'o' - | replace: 'õ', 'o' - | replace: 'ú', 'u' %} +
- - {{ projeto.file }} - + +
+ + Todos os Samples Disponíveis + +
+ +
- - {% if projeto.tags.sample and projeto.tags.sample.size > 0 %} -
-

Sample:

-
    - {% for sample in projeto.tags.sample %} - {% if sample != "" %} -
  • {{ sample }}
  • +
    +
    + {% assign all_automation_string = "" %} + + {% for p in site.data.all %} + {% for track in p.tracks %} + {% if track.sample %} + {% for inst in track.sample %} + {% if inst.instrument_name and inst.instrument_name != "" %} + {% unless all_automation_string contains inst.instrument_name %} + {% assign all_automation_string = all_automation_string | append: inst.instrument_name | append: "|||" %} + {% endunless %} + {% endif %} + {% endfor %} + {% elsif track.instrument_name and track.instrument_name != "" %} + {% unless all_automation_string contains track.instrument_name %} + {% assign all_automation_string = all_automation_string | append: track.instrument_name | append: "|||" %} + {% endunless %} + {% endif %} + {% endfor %} + {% endfor %} + + {% assign unique_automation = all_automation_string | split: "|||" | sort %} + + {% for item in unique_automation %} + {% if item != "" %} + + {{ item }} + {% endif %} - {% endfor %} -
-
- {% endif %} -
+ {% endfor %} +
+
+

Clique para filtrar.

+
- {% endif %} - {% endfor %} + + +
+
+

+ + Filtro: (todos) +

+
+
+ +
+
+ +
+ {% for projeto in site.data.all %} + + {% assign project_insts = "" %} + {% for track in projeto.tracks %} + {% if track.sample %} + {% for inst in track.sample %} + {% assign project_insts = project_insts | append: inst.instrument_name | append: "," %} + {% endfor %} + {% elsif track.instrument_name %} + {% assign project_insts = project_insts | append: track.instrument_name | append: "," %} + {% endif %} + {% endfor %} + +
+ +
+ + {% assign file_url = projeto.file | downcase | replace: ' ', '-' | replace: 'ç', 'c' | replace: 'ã', 'a' | replace: 'á', 'a' | replace: 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' | replace: 'í', 'i' | replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: 'ú', 'u' %} + {% assign page_url = '../mmp_pages/' | append: file_url | append: '.html' %} + + +
+ +
+ +
+ +

+ {{ projeto.file }} +

+ + {% if projeto.bpm %} +
+ + 🎵 {{ projeto.bpm }} BPM + +
+ {% else %} +
+ {% endif %} + +
+ + {% assign unique_proj_insts = project_insts | split: "," | uniq %} + {% if unique_proj_insts.size > 0 %} +
+ {% for item in unique_proj_insts %} + {% if item != "" %} + + {{ item | truncate: 15 }} + + {% endif %} + {% endfor %} +
+ {% endif %} +
+
+ +
+ Ver + {% assign creation_url = '/mmpSearch/creation.html?project=' | append: projeto.file %} + {% assign embed_url = creation_url | append: '&embed=true' %} + Editar +
+ +
+
+ {% endfor %} +
+ + + + diff --git a/pages/wavFiles.md b/pages/wavFiles.md deleted file mode 100644 index e5384182..00000000 --- a/pages/wavFiles.md +++ /dev/null @@ -1,132 +0,0 @@ ---- -layout: default -title: Beats Disponíveis -permalink: /beats/ ---- - -
-
-
- {% include sidebar.html %} -
-
-
-

🎧 Lista de Beats 🎧

-

Aqui estão os beats disponíveis. -
Clique em um beat para ouvi-lo.

- - -
- {% assign files = site.static_files %} - {% for file in files %} - {% if file.path contains '/wav/' %} -
- {% assign project_url = "" %} - - - {% assign file_name_without_extension = file.name | remove: '.wav' %} - {% for projeto in site.data.all %} - {% if projeto.file == file_name_without_extension %} - {% assign project_url = "/mmp_pages/" - | append: projeto.file - | downcase - | replace: ' ', '-' - | replace: ' ', '-' - | replace: 'ç', 'c' - | replace: 'ã', 'a' - | replace: 'á', 'a' - | replace: 'â', 'a' - | replace: 'é', 'e' - | replace: 'ê', 'e' - | replace: 'í', 'i' - | replace: 'ó', 'o' - | replace: 'ô', 'o' - | replace: 'õ', 'o' - | replace: 'ú', 'u' - | append: ".html" %} - {% endif %} - {% endfor %} - -

- {% if project_url %} - - - {{ file.name | replace: '.wav', '' }} - - {% else %} - - {{ file.name | replace: '.wav', '' }} - {% endif %} -

- - -
- {% endif %} - {% endfor %} -
-
- -
-
- - - -