{% include modal_login.html %}
{% include sidebar.html %}

Busca por Pattern Rítmico

Desenhe um ritmo (16 steps) abaixo ou clique nos patterns dos instrumentos:

{% for projeto in site.data.all %} {% assign project_patterns_flat = "" | split: "," %} {% for track in projeto.tracks %} {% if track.instruments %} {% for instrument in track.instruments %} {% if instrument.patterns %} {% for pattern in instrument.patterns %} {% assign pattern_steps = pattern.steps %} {% if pattern_steps and pattern_steps.size > 0 %} {% assign total_steps = pattern_steps.size %} {% assign chunk_size = 4 %} {% assign num_chunks = total_steps | divided_by: chunk_size %} {% assign remainder = total_steps | modulo: chunk_size %} {% if remainder > 0 %}{% assign num_chunks = num_chunks | plus: 1 %}{% endif %} {% for i in (0..num_chunks) %} {% assign start_index = i | times: chunk_size %} {% assign current_chunk_array = pattern_steps | slice: start_index, chunk_size %} {% if current_chunk_array.size > 0 %} {% assign chunk_string = "" %} {% for step in current_chunk_array %} {% if step == true or step == 'true' or step == 1 %}{% assign chunk_string = chunk_string | append: '1' %}{% else %}{% assign chunk_string = chunk_string | append: '0' %}{% endif %} {% endfor %} {% unless project_patterns_flat contains chunk_string %} {% assign project_patterns_flat = project_patterns_flat | push: chunk_string %} {% endunless %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% if project_patterns_flat.size > 0 %} {% assign project_patterns_string = project_patterns_flat | join: ',' %}
{% 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 = '../projetos/' | append: file_url | append: '.html' %}

{{ projeto.file }}

Patterns por Instrumento:

{% for track in projeto.tracks %} {% if track.instruments %} {% for instrument in track.instruments %} {% if instrument.patterns %} {% assign inst_patterns = "" | split: "," %} {% for pattern in instrument.patterns %} {% assign pattern_steps = pattern.steps %} {% if pattern_steps and pattern_steps.size > 0 %} {% assign total_steps = pattern_steps.size %} {% assign chunk_size = 4 %} {% assign num_chunks = total_steps | divided_by: chunk_size %} {% assign remainder = total_steps | modulo: chunk_size %} {% if remainder > 0 %}{% assign num_chunks = num_chunks | plus: 1 %}{% endif %} {% for i in (0..num_chunks) %} {% assign start_index = i | times: chunk_size %} {% assign current_chunk_array = pattern_steps | slice: start_index, chunk_size %} {% if current_chunk_array.size > 0 %} {% assign chunk_string = "" %} {% for step in current_chunk_array %} {% if step == true or step == 'true' or step == 1 %}{% assign chunk_string = chunk_string | append: '1' %}{% else %}{% assign chunk_string = chunk_string | append: '0' %}{% endif %} {% endfor %} {% if chunk_string != "0000" %} {% unless inst_patterns contains chunk_string %} {% assign inst_patterns = inst_patterns | push: chunk_string %} {% endunless %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% if inst_patterns.size > 0 %}
{% assign instrument_slug = instrument.instrument_name | replace: ' ', '+' %} {{ instrument.instrument_name }}
{% for p_str in inst_patterns %}
{% assign bits = p_str | split: '' %} {% for bit in bits %}
{% endfor %}
{% endfor %}
{% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{% endif %} {% endfor %}