diff --git a/README.md b/README.md deleted file mode 100644 index 87dacbe8..00000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -ALICE MMPSearch - -This is a repository with the purpose of creating a site using Jekyll to serve as a LMMS Beat File Library. - -The intuitive is to be able to collect information from the files by indexing it and allows search with the most diverse filters. - -It is part of the master's research in Computer Science at the Federal University of São João del Rei, focused on independent underground music production and the use of open source technologies. - -The mainstream only exists because the underground created the scene. diff --git a/_includes/_instrument_logic_inline.html b/_includes/_instrument_logic_inline.html new file mode 100644 index 00000000..2bcd7f2c --- /dev/null +++ b/_includes/_instrument_logic_inline.html @@ -0,0 +1,104 @@ +
+
  • +
    + +
    + {% assign display_name = instrument.instrument_name %} {% assign + plugin_name = instrument.instrument_name | downcase %} {% assign + is_sample = false %} {% if plugin_name == 'audiofileprocessor' or + instrument.audiofileprocessor %}{% assign is_sample = true %}{% endif + %} {% if is_sample %} {% if display_name contains "audiofileprocessor" + and instrument.patterns %} {% assign first_pattern = + instrument.patterns | first %} {% if first_pattern.name %}{% assign + display_name = first_pattern.name %}{% endif %} {% elsif + instrument.audiofileprocessor.src %} {% assign src_parts = + instrument.audiofileprocessor.src | split: '/' %} {% assign + display_name = src_parts | last %} {% endif %} {% assign display_name + = display_name | remove: ".ogg" | remove: ".wav" %} {% endif %} {% + assign instrument_slug = display_name | replace: ' ', '+' %} + + {{ display_name }} + {% unless is_sample %} + (Synth 🎹){% + endunless %} + +
    +
    + + {% 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 %} + +
    + {% for step_active in current_chunk_array %} +
    + {% endfor %} +
    +
    + {% endif %} {% endfor %} +
    +
    + {% endif %} {% endfor %} +
    + +
    + {% if is_sample %} {% assign sample_src = + instrument.audiofileprocessor.src | default: "" | strip %} {% if + sample_src != "" %} {% assign audio_filename_with_path = 'src/samples/' | + append: sample_src %} + + {% endif %} {% else %} + + {% endif %} +
    +
  • +
    diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 890982b6..1555400e 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,14 +1,27 @@ - - -
    - -
    + diff --git a/_layouts/projetos.html b/_layouts/projetos.html index 272f8dff..1a6030e4 100644 --- a/_layouts/projetos.html +++ b/_layouts/projetos.html @@ -4,533 +4,616 @@ title: "{{ page.file }}" ---
    - {% include sidebar.html %} -
    -
    -
    +
    +
    -

    {{ page.file }}

    + - {% if page.file or page.bpm %} -
    -
    - {% if page.file %} -
    - 📁 Arquivo: {{ page.file }} +
    +

    + {{ page.file }} +

    + {% if page.bpm %} + 🎵 {{ page.bpm }} + {% endif %} +
    + + {% if page.file %} +
    + {% assign creation_url = '/mmpSearch/creation.html?project=' | append: + page.file %} {% assign embed_url = creation_url | append: '&embed=true' + %} + + + +
    + +
    + Preview: +
    + {% assign audio_file_path = '/mmp/wav/' | append: page.file | + append: '.wav' %} +
    - {% endif %} {% if page.bpm %} -
    - 🎵 BPM: {{ page.bpm }} -
    - {% endif %}
    - {% endif %} {% assign audio_file_path = '/mmp/wav/' | append: page.file | - append: '.wav' %} {% if page.file %} -
    - -
    {% endif %} +
    -
    -
    - {% if page.tags %} {% assign tags_vazias = true %} {% for categoria in - page.tags %} {% if categoria[1] and categoria[1].size > 0 %} {% assign - tags_vazias = false %} {% endif %} {% endfor %} {% unless tags_vazias - %} -
    -
    - +
    + {% if page.tags %} {% assign tags_vazias = true %} {% for categoria in + page.tags %} {% if categoria[1] and categoria[1].size > 0 %}{% assign + tags_vazias = false %}{% endif %} {% endfor %} {% unless tags_vazias %} +
    + +

    + 🏷️ Tags do Projeto +

    + +
    +
    + {% for categoria in page.tags %} {% if categoria[1] and + categoria[1].size > 0 %} +
    + {{ categoria[0] }}: - 🏷️ Tags -
    - {% for categoria in page.tags %} {% if categoria[1] and - 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 %} +
    + {% 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 + %} +
    + +

    + 🎚️ Instrumentos & Padrões +

    + +
    +
    + {% for track in page.tracks %} {% if track.instruments and + track.instruments.size > 0 %} +
    +
    + 📂 {{ track.bassline_name }} +
    + +
    + {% for instrument in track.instruments %} +
    + {% include _instrument_logic_inline.html %}
    + {% endfor %} +
    + + {% elsif track.instrument_name %} {% assign instrument = track %} + +
    + {% include _instrument_logic_inline.html %}
    {% endif %} {% endfor %} -
    -
    - {% endunless %} {% endif %} {% if page.tracks and page.tracks.size > 0 - %} -
    -
    - - 🎚️ Instrumentos - +
    +
    + + {% endif %} +
    -
    -
      - {% for track in page.tracks %} {% if track.instruments and - track.instruments.size > 0 %} -
    • -
      - {{ track.bassline_name }} -
      -
        - {% for instrument in track.instruments %} {% assign - plugin_name = instrument.instrument_name | downcase %} {% - assign is_sample = false %} {% assign sample_src = "" %} - {% if plugin_name == 'audiofileprocessor' or - instrument.audiofileprocessor %} {% assign is_sample = - true %} {% assign sample_src = - instrument.audiofileprocessor.src | default: "" | strip %} - {% endif %} {% assign should_open = false %} {% if - is_sample == false %} {% assign should_open = true %} {% - elsif is_sample == true and sample_src != "" %} {% assign - should_open = true %} {% endif %} +
        +
        +

        + 🛠️ Abra na Criação Colaborativa +

        -
        -
      • -
        - -
        - {% assign display_name = - instrument.instrument_name %} {% if is_sample %} - {% if display_name contains "audiofileprocessor" - and instrument.patterns %} {% assign - first_pattern_name = instrument.patterns | map: - 'name' | first %} {% if first_pattern_name and - first_pattern_name != empty %} {% assign - display_name = first_pattern_name | remove: - ".ogg" | remove: ".wav" | remove: ".flac" | - remove: ".mp3" %} {% elsif - instrument.audiofileprocessor.src %} {% assign - src_parts = instrument.audiofileprocessor.src | - split: '/' %} {% assign file_name = src_parts | - last %} {% assign display_name = file_name | - remove: ".ogg" | remove: ".wav" | remove: - ".flac" | remove: ".mp3" %} {% endif %} {% endif - %} {% endif %} {% assign instrument_slug = - display_name | replace: ' ', '+' %} - - {{ display_name }} - {% unless is_sample %} - (Synth 🎹){% endunless %} - -
        -
        + {% assign creation_url = '/mmpSearch/creation.html?project=' | append: + page.file %} - {% for pattern in instrument.patterns %} {% assign - pattern_steps = pattern.steps %} {% if pattern_steps - and pattern_steps.size > 0 %} -
        - {% assign bassline_index = forloop.index | minus: - 1 %} - {{ track.bassline_name }}{{ bassline_index - }}: -
        - {% 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 %} {% assign - search_url = '/pattern/?p=' | append: - chunk_string | relative_url %} - -
        - {% for step_active in current_chunk_array %} - {% assign step_color = '#d9d9d9' %} {% if - step_active == true or step_active == 'true' - or step_active == 1 %} {% assign step_color - = '#4caf50' %} {% endif %} -
        - {% endfor %} -
        -
        - {% endif %} {% endfor %} -
        -
        - {% endif %} {% endfor %} -
        - -
        - {% if is_sample %} {% if sample_src != "" %} {% - assign audio_filename_with_path = 'src/samples/' | - append: sample_src %} - - {% else %} -

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

        - {% endif %} {% else %} - - Via Web Audio API - {% endif %} -
        -
      • -
        - {% endfor %} -
      -
    • - - {% elsif track.instrument_name %} {% assign instrument = track - %} -
        - {% assign plugin_name = instrument.instrument_name | - downcase %} {% assign is_sample = false %} {% assign - sample_src = "" %} {% if plugin_name == 'audiofileprocessor' - or instrument.audiofileprocessor %} {% assign is_sample = - true %} {% assign sample_src = - instrument.audiofileprocessor.src | default: "" | strip %} - {% endif %} {% assign should_open = false %} {% if is_sample - == false %} {% assign should_open = true %} {% elsif - is_sample == true and sample_src != "" %} {% assign - should_open = true %} {% endif %} - -
        -
      • -
        - -
        - {% assign display_name = - instrument.instrument_name %} {% assign - instrument_slug = display_name | replace: ' ', '+' - %} - - {{ display_name }} - {% unless is_sample %} - (Synth 🎹){% endunless %} - -
        -
        - - {% 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 %} {% assign search_url = - '/pattern/?p=' | append: chunk_string | - relative_url %} - -
        - {% for step_active in current_chunk_array %} - {% assign step_color = '#d9d9d9' %} {% if - step_active == true or step_active == 'true' - or step_active == 1 %} {% assign step_color = - '#4caf50' %} {% endif %} -
        - {% endfor %} -
        -
        - {% endif %} {% endfor %} -
        -
        - {% endif %} {% endfor %} {% endif %} -
        - -
        - {% if is_sample %} {% if sample_src != "" %} {% assign - audio_filename_with_path = 'src/samples/' | append: - sample_src %} - - {% else %} -

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

        - {% endif %} {% else %} - - Via Web Audio API - {% endif %} -
        -
      • -
        -
      - {% endif %} {% endfor %} -
    -
    - - - {% endif %} -
    - -
    -
    -

    - 🛠️ Abra na Criação Colaborativa -

    - - {% assign creation_url = - '/mmpSearch/creation.html?project=' | append: page.file - %} + + Abrir no MMPCreator - Abrir no MMPCreator + -

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

    +

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

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

    Prévia do Editor:

    + {% assign embed_url = creation_url | append: '&embed=true' %} +
    -
    + +
    +
    +{% capture instrument_logic %} {% assign plugin_name = +instrument.instrument_name | downcase %} {% assign is_sample = false %} {% +assign sample_src = "" %} {% if plugin_name == 'audiofileprocessor' or +instrument.audiofileprocessor %} {% assign is_sample = true %} {% assign +sample_src = instrument.audiofileprocessor.src | default: "" | strip %} {% endif +%} {% assign should_open = false %} {% if is_sample == false %} {% assign +should_open = true %} {% elsif is_sample == true and sample_src != "" %} {% +assign should_open = true %} {% endif %} + +
    +
  • +
    + +
    + {% assign display_name = instrument.instrument_name %} {% if is_sample + %} {% if display_name contains "audiofileprocessor" and + instrument.patterns %} {% assign first_pattern_name = + instrument.patterns | map: 'name' | first %} {% if first_pattern_name + and first_pattern_name != empty %} {% assign display_name = + first_pattern_name | remove: ".ogg" | remove: ".wav" | remove: ".flac" + | remove: ".mp3" %} {% elsif instrument.audiofileprocessor.src %} {% + assign src_parts = instrument.audiofileprocessor.src | split: '/' %} + {% assign file_name = src_parts | last %} {% assign display_name = + file_name | remove: ".ogg" | remove: ".wav" | remove: ".flac" | + remove: ".mp3" %} {% endif %} {% endif %} {% endif %} {% assign + instrument_slug = display_name | replace: ' ', '+' %} + + {{ display_name }} + {% unless is_sample %} + (Synth 🎹){% + endunless %} + +
    +
    + + {% for pattern in instrument.patterns %} {% assign pattern_steps = + pattern.steps %} {% if pattern_steps and pattern_steps.size > 0 %} +
    + {% assign bassline_index = forloop.index | minus: 1 %} {% if + track.bassline_name %} + {{ bassline_index }}: + {% endif %} + +
    + {% 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 %} {% assign + search_url = '/pattern/?p=' | append: chunk_string | relative_url %} + +
    + {% for step_active in current_chunk_array %} {% assign step_color + = '#e0e0e0' %} {% if step_active == true or step_active == 'true' + or step_active == 1 %} {% assign step_color = '#4caf50' %} {% + endif %} +
    + {% endfor %} +
    +
    + {% endif %} {% endfor %} +
    +
    + {% endif %} {% endfor %} +
    + +
    + {% if is_sample %} {% if sample_src != "" %} {% assign + audio_filename_with_path = 'src/samples/' | append: sample_src %} + + {% else %} +

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

    + {% endif %} {% else %} + + Via Web Audio API + {% endif %} +
    +
  • +
    +{% endcapture %} + + + + + diff --git a/instruments.md.old b/instruments.md.old deleted file mode 100644 index fe8b19d5..00000000 --- a/instruments.md.old +++ /dev/null @@ -1,99 +0,0 @@ ---- -layout: default -title: "Projetos por Instrumento" -permalink: /instruments/ ---- - -
    -
    - {% include sidebar.html %} -
    -
    -
    - -
    -

    Instrumentos disponíveis:

    -
    - -
    - -
    -
    - - {% assign instruments_exibidos = "" %} - - {% for item in site.data.all %} - {% for track in item.tracks %} - {% if track.instruments %} - {% for instrument in track.instruments %} - {% unless instruments_exibidos contains instrument.instrument_name %} - {% capture instruments_exibidos %}{{ instruments_exibidos }},{{ instrument.instrument_name }}{% endcapture %} - - - {% assign instrument_slug = instrument.instrument_name %} - - {{ instrument.instrument_name }} - - {% endunless %} - {% endfor %} - {% endif %} - {% endfor %} - {% endfor %} -
    -
    -
    - - \ No newline at end of file diff --git a/mmp_files.md.old b/mmp_files.md.old deleted file mode 100644 index 174db51a..00000000 --- a/mmp_files.md.old +++ /dev/null @@ -1,39 +0,0 @@ ---- -layout: default -title: Arquivos MMP Processados -permalink: /arquivosMMP/ ---- - -
    -
    - {% include sidebar.html %} -
    -
    -
    -

    Arquivos MMP disponíveis:

    -
      - {% for files in site.data %} - {% assign file_data = files %} - {% for item in file_data %} - {% if item.file %} -
    • Arquivo: {{ item.file }}
    • - {% endif %} - {% if item.bpm %} -
    • BPM: {{ item.bpm }}
    • - {% endif %} -
        - {% for track in item.tracks %} -
      • Nome da Faixa: {{ track.track_name }} ({{ track.type }})
      • -
          - {% for instrument in track.instruments %} -
        • Instrumento: {{ instrument.instrument_name }}
        • - {% endfor %} -
        - {% endfor %} -
      - {% endfor %} - {% endfor %} -
    -
    -
    -
    diff --git a/mmp_pages.md b/mmp_pages.md index 96e45d61..904d0b14 100644 --- a/mmp_pages.md +++ b/mmp_pages.md @@ -5,27 +5,260 @@ permalink: /mmp_pages/ ---
    - {% include sidebar.html %}
    -

    📁 Projetos disponíveis

    +
    + +
    + {% include sidebar.html %} +
    + +
    +

    📁 Projetos Disponíveis

    +

    + Explore, ouça e reutilize projetos da comunidade LMMS. +

    +
    +
    {% assign mmp_pages = site.pages | where_exp: "page", "page.path contains 'mmp_pages/'" | sort: "title" %} {% for page in mmp_pages %} {% if page.url != '/mmp_pages/' %} -
    - -
    -
    -

    - {{ page.title | default: page.name | replace: '.html', '' }} -

    -
    -
    -
    +
    + +
    + + +
    + +
    + + + +
    + +

    + {{ page.title | default: page.name | replace: '.html', '' }} +

    + + {% if page.bpm %} +
    + + 🎵 {{ page.bpm }} BPM + +
    + {% else %} +
    + {% endif %} + +
    + + {% if page.tags %} +
    + {% endif %} +
    + + +
    + + Ver + + + {% assign creation_url = '/mmpSearch/creation.html?project=' | append: page.file %} + {% assign embed_url = creation_url | append: '&embed=true' %} + + + Editar + +
    + +
    {% endif %} {% endfor %}
    + +

    +
    + + + + + + diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index f80b6d69..00000000 --- a/package-lock.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "name": "mmpSearch", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "dependencies": { - "pino": "^10.1.0" - } - }, - "node_modules/@pinojs/redact": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz", - "integrity": "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==" - }, - "node_modules/atomic-sleep": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", - "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/pino": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-10.1.0.tgz", - "integrity": "sha512-0zZC2ygfdqvqK8zJIr1e+wT1T/L+LF6qvqvbzEQ6tiMAoTqEVK9a1K3YRu8HEUvGEvNqZyPJTtb2sNIoTkB83w==", - "dependencies": { - "@pinojs/redact": "^0.4.0", - "atomic-sleep": "^1.0.0", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^2.0.0", - "pino-std-serializers": "^7.0.0", - "process-warning": "^5.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^4.0.1", - "thread-stream": "^3.0.0" - }, - "bin": { - "pino": "bin.js" - } - }, - "node_modules/pino-abstract-transport": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz", - "integrity": "sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==", - "dependencies": { - "split2": "^4.0.0" - } - }, - "node_modules/pino-std-serializers": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz", - "integrity": "sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==" - }, - "node_modules/process-warning": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", - "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ] - }, - "node_modules/quick-format-unescaped": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", - "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" - }, - "node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/safe-stable-stringify": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", - "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/sonic-boom": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.0.tgz", - "integrity": "sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==", - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/thread-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.1.0.tgz", - "integrity": "sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==", - "dependencies": { - "real-require": "^0.2.0" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index ef563e67..00000000 --- a/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "dependencies": { - "pino": "^10.1.0" - } -} diff --git a/pattern.html b/pattern.html deleted file mode 100644 index c7da1d38..00000000 --- a/pattern.html +++ /dev/null @@ -1,404 +0,0 @@ ---- -layout: default -title: Projetos por Pattern Rítmico -permalink: /pattern/ ---- - - - -
    -
    {% include sidebar.html %}
    - -
    -
    -
    -

    - Projetos que possuem patterns similares: -

    -
    -
    - -
    -
    - -
    - - -
    -
    - - {% comment %} - ... O SEU LOOP LIQUID DE PROJETOS VEM AQUI ... - NENHUMA MUDANÇA É NECESSÁRIA NO LIQUID. - Ele continua exatamente como estava, gerando os 'project-item' - e os 'data-patterns' com chunks de 4 steps. - {% endcomment %} - - {% for projeto in site.data.all %} - - {% assign project_patterns_flat = "" | split: "," %} - {% assign project_patterns_data = "" | split: "," %} - - {% for track in projeto.tracks %} - {% if track.instruments %} - {% for instrument in track.instruments %} - - {% assign display_name = instrument.instrument_name %} - {% if display_name contains "audiofileprocessor" and instrument.patterns %} - {% assign first_pattern_name = instrument.patterns | map: 'name' | first %} - {% if first_pattern_name and first_pattern_name != empty %} - {% assign display_name = first_pattern_name | remove: ".ogg" | remove: ".wav" | remove: ".flac" | remove: ".mp3" %} - {% elsif instrument.audiofileprocessor.src %} - {% assign src_parts = instrument.audiofileprocessor.src | split: '/' %} - {% assign file_name = src_parts | last %} - {% assign display_name = file_name | remove: ".ogg" | remove: ".wav" | remove: ".flac" | remove: ".mp3" %} - {% endif %} - {% endif %} - {% if display_name == nil or display_name == "" %} - {% assign display_name = "Instrumento" %} - {% endif %} - - - {% 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 %} - - {% assign data_pair = chunk_string | append: '::' | append: display_name %} - - {% unless project_patterns_flat contains chunk_string %} - {% assign project_patterns_flat = project_patterns_flat | push: chunk_string %} - {% endunless %} - - {% unless project_patterns_data contains data_pair %} - {% assign project_patterns_data = project_patterns_data | push: data_pair %} - {% 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' %} - - - {{ projeto.file }} - - -
    -

    Patterns (4-steps):

    -
    - - {% for data_pair_string in project_patterns_data %} - {% assign pair_parts = data_pair_string | split: '::' %} - {% assign p_string = pair_parts[0] %} - {% assign p_instrument = pair_parts[1] | default: '?' %} - - - -
    - {% assign p_array = p_string | split: "" %} - {% for step_char in p_array %} - {% assign step_color = '#d9d9d9' %} - {% if step_char == '1' %} - {% assign step_color = '#4caf50' %} - {% endif %} -
    - {% endfor %} -
    - - {{ p_instrument }}: - {{ p_string }} -
    - {% endfor %} -
    -
    - -
    -
    - {% endif %} - {% endfor %} - -
    -
    -
    - -{% comment %} - SCRIPT FINAL (TOTALMENTE REESCRITO PARA 16-STEPS "AND" FILTER) -{% endcomment %} - \ No newline at end of file diff --git a/pattern.md b/pattern.md new file mode 100644 index 00000000..52f72553 --- /dev/null +++ b/pattern.md @@ -0,0 +1,574 @@ +--- +layout: default +title: Projetos por Pattern Rítmico +permalink: /pattern/ +--- + + + +
    +
    +
    +
    + +
    + {% 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 = '../mmp_pages/' | 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 %} +
    +
    +
    + +
    + Ver + {% assign creation_url = '/mmpSearch/creation.html?project=' | + append: projeto.file %} {% assign embed_url = creation_url | + append: '&embed=true' %} + Editar +
    +
    +
    + {% endif %} {% endfor %} +
    +
    + +
    +
    + + + + + + diff --git a/plugin.html b/plugin.html deleted file mode 100644 index d0f9a8dc..00000000 --- a/plugin.html +++ /dev/null @@ -1,125 +0,0 @@ ---- -layout: default -title: Projetos com a tag Plugin -permalink: /plugin/ ---- - - -
    -
    - {% include sidebar.html %} -
    - -
    -
    - -
    -

    Projetos que possuem a tag plugin:

    -
    - -
    - -
    -
    - - -
    - {% for projeto in site.data.all %} - {% if projeto.tags.TAG contains "plugin" %} -
    -
    - - {% 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 }} - - - - {% if projeto.tags.plugin and projeto.tags.plugin.size > 0 %} -
    -

    Plugins:

    -
      - {% for plugin in projeto.tags.plugin %} - {% if plugin != "" %} -
    • {{ plugin }}
    • - {% endif %} - {% endfor %} -
    -
    - {% endif %} -
    -
    - {% endif %} - {% endfor %} -
    -
    -
    - - - diff --git a/plugin.md b/plugin.md new file mode 100644 index 00000000..7ee13eb2 --- /dev/null +++ b/plugin.md @@ -0,0 +1,504 @@ +--- +layout: default +title: Projetos com a tag Plugin +permalink: /plugin/ +--- + + + +
    +
    +
    +
    + +
    + {% include sidebar.html %} +
    + +
    + +
    + + Todos os Plugins Disponíveis + +
    + +
    + +
    +
    + {% assign all_items_string = "" %} {% for p in site.data.all %} {% + if p.tags.plugin %} {% for item in p.tags.plugin %} {% if item != "" + %} {% unless all_items_string contains item %} {% assign + all_items_string = all_items_string | append: item | append: "|||" + %} {% endunless %} {% endif %} {% endfor %} {% endif %} {% endfor %} + {% assign unique_items = all_items_string | split: "|||" | sort %} + {% for item in unique_items %} {% if item != "" %} + + {{ item }} + + {% endif %} {% endfor %} +
    +
    +
    + +
    +
    +

    + + Filtro: + (todos) +

    +
    +
    + +
    +
    + +
    + {% for projeto in site.data.all %} {% if projeto.tags.TAG contains + "plugin" %} + +
    +
    + {% 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 %} + +
    + + {% if projeto.tags.plugin and projeto.tags.plugin.size > 0 %} +
    + {% for item in projeto.tags.plugin %} {% 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 +
    +
    +
    + {% endif %} {% endfor %} +
    +
    +
    +
    + + + + + + diff --git a/projetosComMesmoInstrumento.md.old b/projetosComMesmoInstrumento.md.old deleted file mode 100644 index 78e6ef9a..00000000 --- a/projetosComMesmoInstrumento.md.old +++ /dev/null @@ -1,46 +0,0 @@ ---- -layout: default -title: Projetos com Instrumentos Similares -permalink: /quaisProjetos/ ---- - -
    -
    - {% include sidebar.html %} -
    - -
    -

    Arquivos que possuem instrumentos similares:

    - - {% assign tags_exibidas = "" %} - - {% for item in site.data.all %} - {% for tag in item.tags.TAG %} - {% unless tags_exibidas contains tag %} - {% capture tags_exibidas %}{{ tags_exibidas }},{{ tag }}{% endcapture %} - - - {% endunless %} - {% endfor %} - {% endfor %} -
    -
    diff --git a/projetosPorTrack.md b/projetosPorTrack.md index 9f936ef8..38bb1d5a 100644 --- a/projetosPorTrack.md +++ b/projetosPorTrack.md @@ -3,37 +3,55 @@ layout: default title: Projetos por tipo de track permalink: /projetosPorTrack/ --- +
    - {% include sidebar.html %} -
    -
    - Arquivos que possuem instrumentos similares: -

    +
    +
    +
    + {% include sidebar.html %} +
    - - Ver Projetos por Instrumento - +
    +
    +
    +

    Navegar por Categorias

    -
    - Arquivos que possuem tracks similares: -

    + + + BUSCAR POR INSTRUMENTO + - {% assign tags_exibidas = "" %} - {% for item in site.data.all %} - {% for tag in item.tags.TAG %} - {% unless tags_exibidas contains tag %} - {% capture tags_exibidas %}{{ tags_exibidas }},{{ tag }}{% endcapture %} +
    + + + + BUSCAR POR DESENHO DE PATTERN + + +
    OU POR TIPO DE TRACK
    + +
    + {% assign tags_exibidas = "" %} + {% for item in site.data.all %} + {% for tag in item.tags.TAG %} + {% unless tags_exibidas contains tag %} + {% capture tags_exibidas %}{{ tags_exibidas }},{{ tag }}{% endcapture %} + + + {{ tag | upcase }} + + {% endunless %} + {% endfor %} + {% endfor %} +
    +
    +
    +
    +
    - - {{ tag }} - - - {% endunless %} - {% endfor %} - {% endfor %} -
    diff --git a/readme.md b/readme.md index 033783ab..65f5c69a 100644 --- a/readme.md +++ b/readme.md @@ -137,3 +137,13 @@ Um serviço systemd foi criado para hospedar o backend de um servidor em nodeJS - [ ] Permitir escolha entre download ou salvar no servidor - [ ] Escolher nome do projeto + +ALICE MMPSearch + +This is a repository with the purpose of creating a site using Jekyll to serve as a LMMS Beat File Library. + +The intuitive is to be able to collect information from the files by indexing it and allows search with the most diverse filters. + +It is part of the master's research in Computer Science at the Federal University of São João del Rei, focused on independent underground music production and the use of open source technologies. + +The mainstream only exists because the underground created the scene. diff --git a/sample.html b/sample.md similarity index 89% rename from sample.html rename to sample.md index 5d46df5b..953df4f9 100644 --- a/sample.html +++ b/sample.md @@ -3,12 +3,14 @@ layout: default title: Projetos com a tag Sample permalink: /sample/ --- +
    - {% include sidebar.html %} -
    +
    + {% include sidebar.html %} +
    @@ -31,16 +33,16 @@ permalink: /sample/
    - {% assign file_url = projeto.file | downcase - | replace: ' ', '-' - | replace: 'ç', 'c' - | replace: 'ã', 'a' + {% assign file_url = projeto.file | downcase + | replace: ' ', '-' + | replace: 'ç', 'c' + | replace: 'ã', 'a' | replace: 'á', 'a' | replace: 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' - | replace: 'í', 'i' - | replace: 'ó', 'o' + | replace: 'í', 'i' + | replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' | replace: 'ú', 'u' %} @@ -67,6 +69,7 @@ permalink: /sample/ {% endif %} {% endfor %}
    +
    @@ -121,4 +124,4 @@ permalink: /sample/ window.history.replaceState({}, '', newUrl); }); }); - \ No newline at end of file + diff --git a/wavFiles.md b/wavFiles.md index 161adb41..e5384182 100644 --- a/wavFiles.md +++ b/wavFiles.md @@ -1,12 +1,14 @@ --- layout: default title: Beats Disponíveis -permalink: /beatsDisponiveis/ +permalink: /beats/ ---
    - {% include sidebar.html %} +
    + {% include sidebar.html %} +

    🎧 Lista de Beats 🎧

    @@ -20,27 +22,27 @@ permalink: /beatsDisponiveis/ {% 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/" + {% assign project_url = "/mmp_pages/" | append: projeto.file - | downcase - | replace: ' ', '-' - | replace: ' ', '-' - | replace: 'ç', 'c' - | replace: 'ã', 'a' + | downcase + | replace: ' ', '-' + | replace: ' ', '-' + | replace: 'ç', 'c' + | replace: 'ã', 'a' | replace: 'á', 'a' | replace: 'â', 'a' | replace: 'é', 'e' | replace: 'ê', 'e' - | replace: 'í', 'i' - | replace: 'ó', 'o' + | replace: 'í', 'i' + | replace: 'ó', 'o' | replace: 'ô', 'o' | replace: 'õ', 'o' - | replace: 'ú', 'u' + | replace: 'ú', 'u' | append: ".html" %} {% endif %} {% endfor %} @@ -56,7 +58,7 @@ permalink: /beatsDisponiveis/ {{ file.name | replace: '.wav', '' }} {% endif %}

    - +
    +