plugin 1.0.1
Deploy / Deploy (push) Successful in 1m38s Details

This commit is contained in:
JotaChina 2025-11-23 13:29:36 -03:00
parent 527502e931
commit 21bf5f257d
12 changed files with 4023 additions and 57334 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,20 @@
bpm: '140' bpm: '127'
file: teste file: teste
src: /nethome/jotachina/projetos/mmpSearch/mmp/teste.mmp src: /nethome/jotachina/projetos/mmpSearch/mmp/teste.mmp
tags: tags:
TAG: TAG:
- plugin - plugin
- sample
- bassline
automation: [] automation: []
bassline: [] bassline:
- Beat/Bassline 0
- Batida/Linha de Baixo 1
plugin: plugin:
- tripleoscillator
- audiofileprocessor - audiofileprocessor
sample: [] sample:
- latin_guitar02.ogg
tracks: tracks:
- arpeggiator: - arpeggiator:
arp: '0' arp: '0'
@ -20,20 +26,10 @@ tracks:
arpmode: '0' arpmode: '0'
arprange: '1' arprange: '1'
arpskip: '0' arpskip: '0'
arptime: '200' arptime: '100'
arptime_denominator: '4' arptime_denominator: '4'
arptime_numerator: '4' arptime_numerator: '4'
arptime_syncmode: '0' arptime_syncmode: '0'
audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: drums/clap01.ogg
stutter: '0'
chordcreator: chordcreator:
chord: '0' chord: '0'
chord-enabled: '0' chord-enabled: '0'
@ -103,6 +99,7 @@ tracks:
fxchain: fxchain:
enabled: '0' enabled: '0'
numofeffects: '0' numofeffects: '0'
instrument_name: tripleoscillator
instrumenttrack: instrumenttrack:
basenote: '57' basenote: '57'
fxch: '0' fxch: '0'
@ -123,6 +120,698 @@ tracks:
outputprogram: '1' outputprogram: '1'
readable: '0' readable: '0'
writable: '0' writable: '0'
plugin_name: audiofileprocessor tags: tripleoscillator
track_name: clap01.ogg track_name: TripleOscillator
tripleoscillator:
coarse0: '0'
coarse1: '-12'
coarse2: '-24'
finel0: '0'
finel1: '0'
finel2: '0'
finer0: '0'
finer1: '0'
finer2: '0'
modalgo1: '2'
modalgo2: '2'
modalgo3: '2'
pan0: '0'
pan1: '0'
pan2: '0'
phoffset0: '0'
phoffset1: '0'
phoffset2: '0'
stphdetun0: '0'
stphdetun1: '0'
stphdetun2: '0'
userwavefile0: ''
userwavefile1: ''
userwavefile2: ''
vol0: '33'
vol1: '33'
vol2: '33'
wavetype0: '0'
wavetype1: '0'
wavetype2: '0'
type: plugin type: plugin
- sample_info:
len: '389'
muted: '0'
pan: '0'
pos: '0'
sample_rate: '44100'
src: latin/latin_guitar02.ogg
vol: '100'
sample_name: latin_guitar02.ogg
track_name: Sample track
type: sample
- bassline_name: Beat/Bassline 0
instruments:
- audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: drumsynth/cr8000/Conga_m.ds
stutter: '0'
basenote: '57'
fxch: '0'
instrument_name: Conga_m.ds
instrument_type: '0'
pan: '0'
patterns:
- name: Conga_m.ds
pos: '0'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- name: Bubble.ds
pos: '192'
steps:
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
pitch: '0'
pitchrange: '1'
plugin_name: audiofileprocessor
usemasterpitch: '1'
vol: '100'
- audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: drumsynth/effects/Bubble.ds
stutter: '0'
basenote: '57'
fxch: '0'
instrument_name: Bubble.ds
instrument_type: '0'
pan: '0'
patterns:
- name: Bubble.ds
pos: '0'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- name: Bubble.ds
pos: '192'
steps:
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
- false
- true
- false
- false
- true
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- false
pitch: '0'
pitchrange: '1'
plugin_name: audiofileprocessor
usemasterpitch: '1'
vol: '100'
- audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: drumsynth/misc_perc/clav_2.ds
stutter: '0'
basenote: '57'
fxch: '0'
instrument_name: clav_2.ds
instrument_type: '0'
pan: '0'
patterns:
- name: clav_2.ds
pos: '0'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- name: clav_2.ds
pos: '192'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- true
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- true
- false
pitch: '0'
pitchrange: '1'
plugin_name: audiofileprocessor
usemasterpitch: '1'
vol: '100'
- audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: gig/DrumKits/drive-download-20230412T011016Z-001/Percs/triangle.wav
stutter: '0'
basenote: '57'
fxch: '0'
instrument_name: triangle.wav
instrument_type: '0'
pan: '0'
patterns:
- name: triangle.wav
pos: '0'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- name: clav_2.ds
pos: '192'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- true
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- true
- false
pitch: '0'
pitchrange: '1'
plugin_name: audiofileprocessor
usemasterpitch: '1'
vol: '100'
- audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: gig/DrumKits/drive-download-20230412T011016Z-001/Percs/boombap.wav
stutter: '0'
basenote: '57'
fxch: '0'
instrument_name: boombap.wav
instrument_type: '0'
pan: '0'
patterns:
- name: boombap.wav
pos: '0'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- name: boombap.wav
pos: '192'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- true
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
pitch: '0'
pitchrange: '1'
plugin_name: audiofileprocessor
usemasterpitch: '1'
vol: '100'
- audiofileprocessor:
amp: '100'
eframe: '1'
interp: '1'
lframe: '0'
looped: '0'
reversed: '0'
sframe: '0'
src: instruments/flute01.ogg
stutter: '0'
basenote: '57'
fxch: '0'
instrument_name: flute01.ogg
instrument_type: '0'
pan: '0'
patterns:
- name: flute01.ogg
pos: '0'
steps:
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- name: flute01.ogg
pos: '192'
steps:
- true
- false
- false
- false
- true
- false
- false
- false
- true
- false
- true
- false
- true
- false
- true
- false
- true
- false
- true
- false
- false
- false
- true
- false
- true
- false
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- true
- false
- false
- false
- true
- false
- true
- false
- true
- false
- true
- false
- true
- false
- true
- false
- false
- false
- true
- false
- true
- false
- false
- false
- true
- false
- false
- false
pitch: '0'
pitchrange: '1'
plugin_name: audiofileprocessor
usemasterpitch: '1'
vol: '100'
tags: audiofileprocessor
type: bassline
- bassline_name: Batida/Linha de Baixo 1
instruments: []
tags: ''
type: bassline

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,22 @@ import { highlightStep } from "./pattern_ui.js";
import { getTotalSteps } from "../utils.js"; import { getTotalSteps } from "../utils.js";
import { initializeAudioContext } from "../audio.js"; import { initializeAudioContext } from "../audio.js";
// Ajuste os caminhos (../plugins/...) conforme a estrutura real das suas pastas
import { TripleOscillator } from "../../audio/plugins/TripleOscillator.js";
import { Nes } from "../../audio/plugins/Nes.js";
import { SuperSaw } from "../../audio/plugins/SuperSaw.js";
import { Lb302 } from "../../audio/plugins/Lb302.js";
import { Kicker } from "../../audio/plugins/Kicker.js";
// Mapa para facilitar a criação dinâmica
const PLUGIN_CLASSES = {
tripleoscillator: TripleOscillator,
nes: Nes,
supersaw: SuperSaw,
lb302: Lb302,
kicker: Kicker,
};
const timerDisplay = document.getElementById("timer-display"); const timerDisplay = document.getElementById("timer-display");
// Variável para armazenar as "Parts" (sequências melódicas) do Tone.js // Variável para armazenar as "Parts" (sequências melódicas) do Tone.js
@ -104,30 +120,35 @@ function tick() {
} }
} }
// Percorre tracks e toca o step atual se ativo // PERCORRE AS TRACKS
appState.pattern.tracks.forEach((track) => { appState.pattern.tracks.forEach((track) => {
if (track.muted) return; // Respeita o Mute if (track.muted) return;
if (!track.patterns || track.patterns.length === 0) return; if (!track.patterns || track.patterns.length === 0) return;
const activePattern = track.patterns[track.activePatternIndex]; const activePattern = track.patterns[track.activePatternIndex];
if (!activePattern) return;
// Verifica se o step atual está ativo // Verifica se o step atual está ativo
if (activePattern && activePattern.steps[appState.global.currentStep]) { if (activePattern.steps[appState.global.currentStep]) {
// CASO 1: SAMPLER (Sempre toca no step)
// CASO 1: SAMPLER (Arquivo de Áudio)
if (track.samplePath) { if (track.samplePath) {
playSample(track.samplePath, track.id); playSample(track.samplePath, track.id);
} }
// CASO 2: PLUGIN (Sintetizador) // CASO 2: PLUGIN (Sintetizador)
// Se for plugin e tiver step marcado, toca nota padrão (C5) else if (track.type === "plugin" && track.instrument) {
else if (track.type === 'plugin' && track.instrument) { // --- CORREÇÃO DO SOM DUPLICADO ---
// "16n" é a duração de uma semicolcheia // Verifica se existem notas no Piano Roll.
// Usamos um try/catch para evitar travar o loop se o plugin falhar // Se houver notas (array notes > 0), IGNORA o step sequencer.
try { // O som será gerado APENAS pelo 'schedulePianoRoll'.
track.instrument.triggerAttackRelease("C5", "16n", Tone.now());
} catch (e) { const hasNotes = activePattern.notes && activePattern.notes.length > 0;
console.warn("Falha ao tocar step do plugin:", e);
} if (!hasNotes) {
// Só toca o C5 do step se NÃO houver melodia desenhada
try {
track.instrument.triggerAttackRelease("C5", "16n", Tone.now());
} catch (e) {}
}
} }
} }
}); });
@ -142,7 +163,7 @@ export function startPlayback() {
// Garante que o contexto do Tone esteja rodando // Garante que o contexto do Tone esteja rodando
if (Tone.context.state !== "running") { if (Tone.context.state !== "running") {
Tone.start(); Tone.start();
} }
if (appState.global.currentStep === 0) { if (appState.global.currentStep === 0) {
@ -181,16 +202,22 @@ export function stopPlayback() {
// --- NOVO: Para o Transport e Limpa Synths --- // --- NOVO: Para o Transport e Limpa Synths ---
Tone.Transport.stop(); Tone.Transport.stop();
// Limpa agendamentos melódicos // Limpa agendamentos melódicos
activeParts.forEach(part => part.dispose()); activeParts.forEach((part) => part.dispose());
activeParts = []; activeParts = [];
// Solta notas travadas de todos os plugins // Solta notas travadas de todos os plugins
appState.pattern.tracks.forEach(track => { appState.pattern.tracks.forEach((track) => {
try { track.player?.stop(); } catch {} try {
try { track.instrument?.releaseAll?.(); } catch {} // Para PolySynths track.player?.stop();
try { track.instrument?.triggerRelease?.(); } catch {} // Para MonoSynths } catch {}
try {
track.instrument?.releaseAll?.();
} catch {} // Para PolySynths
try {
track.instrument?.triggerRelease?.();
} catch {} // Para MonoSynths
}); });
// -------------------------------------------- // --------------------------------------------
@ -213,7 +240,7 @@ export function rewindPlayback() {
? appState.global.currentStep - 1 ? appState.global.currentStep - 1
: getTotalSteps() - 1; : getTotalSteps() - 1;
appState.global.currentStep = 0; appState.global.currentStep = 0;
Tone.Transport.position = 0; // Reseta o tempo do Tone.js Tone.Transport.position = 0; // Reseta o tempo do Tone.js
if (!appState.global.isPlaying) { if (!appState.global.isPlaying) {
@ -232,53 +259,64 @@ export function togglePlayback() {
} }
} }
// ========================================================================= // 2. Agendador de Piano Roll (Melodia)
// AGENDADOR DE PIANO ROLL (NOVA FUNÇÃO)
// Agenda as notas melódicas (desenhadas no Piano Roll) para tocar no Tone.Transport
// =========================================================================
function schedulePianoRoll() { function schedulePianoRoll() {
// Limpa anteriores por segurança activeParts.forEach((part) => part.dispose());
activeParts.forEach(part => part.dispose()); activeParts = [];
activeParts = [];
appState.pattern.tracks.forEach(track => { appState.pattern.tracks.forEach((track) => {
if (track.muted) return;
const pattern = track.patterns[track.activePatternIndex];
if (
pattern &&
pattern.notes &&
pattern.notes.length > 0 &&
track.instrument
) {
// Converte notas para eventos Tone.js
const events = pattern.notes.map((note) => {
// --- CORREÇÃO DE TEMPO (PPQ) ---
// LMMS usa 192 ticks por batida. Tone.js também usa 192 por padrão.
// Precisamos converter o 'pos' (ticks absolutos) para tempo musical
// 1 Beat = 192 ticks
// Tone.Time("0:0:0").toTicks()
return {
// Passamos 'ticks' diretamente. O Tone converte baseado no BPM.
time:
0 + (note.pos * (Tone.Transport.PPQ / 192)) / Tone.Transport.PPQ,
midi: note.key,
duration: note.len / 192 + "n", // Converte duração baseada em semínimas (192)
velocity: (note.vol || 100) / 100,
};
});
const part = new Tone.Part((time, value) => {
if (track.muted) return; if (track.muted) return;
const pattern = track.patterns[track.activePatternIndex]; const freq = Tone.Frequency(value.midi, "midi");
// Só agenda se tiver notas E for um instrumento
if (pattern && pattern.notes && pattern.notes.length > 0 && track.instrument) {
// Mapeia as notas para o formato de evento do Tone.js
const events = pattern.notes.map(note => {
return {
// Converte Ticks (pos) para Tempo Musical do Tone.js
// Assumindo 192 PPQ (padrão LMMS) -> Tone PPQ
time: 0 + (note.pos * (Tone.Transport.PPQ / 192) / Tone.Transport.PPQ),
midi: note.key,
duration: note.len + "i", // 'i' em Tone.js significa ticks
velocity: (note.vol || 100) / 100
};
});
// Cria uma Part (sequência) // Dispara nota
const part = new Tone.Part((time, value) => { if (track.instrument.triggerAttackRelease) {
if (track.muted) return; // Se a duração calculada for muito curta ou inválida, usa 16n
const dur = value.duration || "16n";
const freq = Tone.Frequency(value.midi, "midi"); track.instrument.triggerAttackRelease(
// Dispara o método que padronizamos em todos os plugins freq,
if (track.instrument.triggerAttackRelease) { dur,
track.instrument.triggerAttackRelease(freq, value.duration, time, value.velocity); time,
} value.velocity
}, events).start(0); );
// Configura o Loop da Melodia
const bars = parseInt(document.getElementById('bars-input')?.value || 1);
part.loop = true;
part.loopEnd = bars + "m"; // 'm' = measure (compasso)
activeParts.push(part);
} }
}); }, events).start(0);
const bars = parseInt(document.getElementById("bars-input")?.value || 1);
part.loop = true;
part.loopEnd = bars + "m";
activeParts.push(part);
}
});
} }
// ========================================================================= // =========================================================================
@ -286,60 +324,153 @@ function schedulePianoRoll() {
// ========================================================================= // =========================================================================
export async function renderActivePatternToBlob() { export async function renderActivePatternToBlob() {
initializeAudioContext(); initializeAudioContext();
const bpm = parseInt(document.getElementById("bpm-input").value, 10) || 120; const bpm = parseInt(document.getElementById("bpm-input").value, 10) || 120;
const totalSteps = getTotalSteps();
const stepInterval = 60 / (bpm * 4);
const duration = totalSteps * stepInterval;
// =========================================================
// 1. CÁLCULO DE DURAÇÃO INTELIGENTE
// =========================================================
const stepInterval = 60 / (bpm * 4);
const activePatternIndex = const activePatternIndex =
appState.pattern.tracks[0]?.activePatternIndex || 0; appState.pattern.tracks[0]?.activePatternIndex || 0;
let maxStepFound = getTotalSteps(); // Mínimo: tamanho da tela
const buffer = await Tone.Offline(async () => { // Varre todas as tracks para achar a última nota ou step
appState.pattern.tracks.forEach((track) => {
const p = track.patterns[activePatternIndex];
if (!p) return;
// A. Steps (Bateria)
if (p.steps && p.steps.includes(true)) {
const lastIdx = p.steps.lastIndexOf(true);
if (lastIdx + 1 > maxStepFound) maxStepFound = lastIdx + 1;
}
// B. Notas (Piano Roll) - Assumindo 192 ticks/beat e steps de 1/16 (48 ticks)
if (p.notes && p.notes.length > 0) {
p.notes.forEach((n) => {
const endTick = n.pos + n.len;
const endStep = Math.ceil(endTick / 48);
if (endStep > maxStepFound) maxStepFound = endStep;
});
}
});
// Arredonda para o próximo compasso cheio (múltiplo de 16)
const stepsPerBar = 16;
const totalSteps = Math.ceil(maxStepFound / stepsPerBar) * stepsPerBar;
const duration = totalSteps * stepInterval;
// =========================================================
// 2. RENDERIZAÇÃO OFFLINE
// =========================================================
const buffer = await Tone.Offline(async ({ transport }) => {
const masterGain = new Tone.Gain().toDestination(); const masterGain = new Tone.Gain().toDestination();
const offlineTracksParts = appState.pattern.tracks // Loop por cada trilha do projeto
.map((track) => { appState.pattern.tracks.forEach((track) => {
const pattern = track.patterns[activePatternIndex]; const pattern = track.patterns[activePatternIndex];
// Se não tem pattern, ou se é uma track muda/vazia, pula
if (!pattern || track.muted) return;
// Nota: O render atual suporta apenas Samplers (buffers carregados) // Verifica se tem conteúdo (buffer de áudio OU notas MIDI OU steps ativos)
// Para suportar Plugins no futuro, precisaríamos recriar o synth aqui dentro. const hasAudio = track.buffer;
if (!pattern || !track.buffer || !pattern.steps.includes(true)) { const hasNotes = pattern.notes && pattern.notes.length > 0;
return null; const hasSteps = pattern.steps && pattern.steps.includes(true);
}
const trackBuffer = track.buffer; if (!hasAudio && !hasNotes && !hasSteps) return;
const panner = new Tone.Panner(track.pan).connect(masterGain);
const volume = new Tone.Volume(Tone.gainToDb(track.volume)).connect(
panner
);
const events = []; // Cria canal de volume/pan para essa track no mundo Offline
pattern.steps.forEach((isActive, stepIndex) => { const panner = new Tone.Panner(track.pan || 0).connect(masterGain);
if (isActive) { const volume = new Tone.Volume(
const time = stepIndex * stepInterval; track.volume === 0 ? -100 : Tone.gainToDb(track.volume)
events.push(time); ).connect(panner);
// --- CENÁRIO A: É um SAMPLE (Áudio gravado) ---
if (track.samplePath && track.buffer) {
// Lógica original de steps para samples
if (pattern.steps) {
const events = [];
pattern.steps.forEach((isActive, stepIndex) => {
if (isActive) events.push(stepIndex * stepInterval);
});
if (events.length > 0) {
new Tone.Part((time) => {
new Tone.Player(track.buffer).connect(volume).start(time);
}, events).start(0);
} }
}); }
}
const part = new Tone.Part((time) => { // --- CENÁRIO B: É um PLUGIN (Sintetizador) ---
new Tone.Player(trackBuffer) else if (track.type === "plugin") {
.connect(volume) // Normaliza o nome (ex: "TripleOscillator" -> "tripleoscillator")
.start(time); // Tenta pegar o nome da propriedade 'pluginName', 'instrument.name' ou do próprio objeto params
}, events); const pluginName = (
track.pluginName ||
track.instrument?.constructor?.name ||
""
).toLowerCase();
return part; const PluginClass = PLUGIN_CLASSES[pluginName];
})
.filter((t) => t !== null);
offlineTracksParts.forEach((part) => { if (PluginClass) {
part.start(0); // INSTANCIA O PLUGIN NO MUNDO OFFLINE
// Passamos 'track.params' ou 'track.pluginData' (ajuste conforme seu appState salva os dados)
const instrumentInstance = new PluginClass(
null,
track.params || track.pluginData || {}
);
// Conecta na cadeia de áudio offline
instrumentInstance.connect(volume);
// 1. Agendar Notas do Piano Roll
if (hasNotes) {
const events = pattern.notes.map((note) => ({
time: 0 + note.pos * (48 / 192) * stepInterval, // Conversão aproximada Ticks -> Segundos
// Se quiser precisão exata do Tone, use: note.pos * (Tone.Transport.PPQ / 192) / Tone.Transport.PPQ
midi: note.key,
duration: (note.len / 192) * (60 / bpm), // Duração em segundos
velocity: (note.vol || 100) / 100,
}));
new Tone.Part((time, val) => {
const freq = Tone.Frequency(val.midi, "midi");
instrumentInstance.triggerAttackRelease(freq, val.duration, time);
}, events).start(0);
}
// 2. Agendar Steps (Caso use o TripleOscillator como bateria/efeito no step sequencer)
else if (hasSteps) {
const stepEvents = [];
pattern.steps.forEach((isActive, idx) => {
if (isActive) stepEvents.push(idx * stepInterval);
});
new Tone.Part((time) => {
// Toca um C5 padrão para steps sem nota definida
instrumentInstance.triggerAttackRelease(
Tone.Frequency("C5"),
0.1,
time
);
}, stepEvents).start(0);
}
} else {
console.warn(
`Render: Plugin não suportado ou não encontrado: ${pluginName}`
);
}
}
}); });
Tone.Transport.bpm.value = bpm; // Configura e inicia o Transport Offline
Tone.Transport.start(); transport.bpm.value = bpm;
}, duration); transport.start();
}, duration);
const blob = bufferToWave(buffer); const blob = bufferToWave(buffer);
return blob; return blob;
@ -376,19 +507,19 @@ function bufferToWave(abuffer) {
setString("WAVE"); setString("WAVE");
setString("fmt "); setString("fmt ");
view.setUint32(pos, 16, true); view.setUint32(pos, 16, true);
pos += 4; pos += 4;
view.setUint16(pos, 1, true); view.setUint16(pos, 1, true);
pos += 2; pos += 2;
view.setUint16(pos, numOfChan, true); view.setUint16(pos, numOfChan, true);
pos += 2; pos += 2;
view.setUint32(pos, abuffer.sampleRate, true); view.setUint32(pos, abuffer.sampleRate, true);
pos += 4; pos += 4;
view.setUint32(pos, abuffer.sampleRate * 2 * numOfChan, true); view.setUint32(pos, abuffer.sampleRate * 2 * numOfChan, true);
pos += 4; pos += 4;
view.setUint16(pos, numOfChan * 2, true); view.setUint16(pos, numOfChan * 2, true);
pos += 2; pos += 2;
view.setUint16(pos, 16, true); view.setUint16(pos, 16, true);
pos += 2; pos += 2;
setString("data"); setString("data");
view.setUint32(pos, length - 44, true); view.setUint32(pos, length - 44, true);
pos += 4; pos += 4;
@ -400,11 +531,11 @@ function bufferToWave(abuffer) {
for (i = 0; i < abuffer.length; i++) { for (i = 0; i < abuffer.length; i++) {
for (let j = 0; j < numOfChan; j++) { for (let j = 0; j < numOfChan; j++) {
sample = Math.max(-1, Math.min(1, channels[j][i])); sample = Math.max(-1, Math.min(1, channels[j][i]));
sample = (0.5 + sample * 32767.5) | 0; sample = (0.5 + sample * 32767.5) | 0;
view.setInt16(pos, sample, true); view.setInt16(pos, sample, true);
pos += 2; pos += 2;
} }
} }
return new Blob([buffer], { type: "audio/wav" }); return new Blob([buffer], { type: "audio/wav" });
} }

View File

@ -7,6 +7,7 @@ import { playSample, stopPlayback } from "./pattern_audio.js";
import { getTotalSteps } from "../utils.js"; import { getTotalSteps } from "../utils.js";
import { sendAction } from '../socket.js'; import { sendAction } from '../socket.js';
import { initializeAudioContext } from '../audio.js'; import { initializeAudioContext } from '../audio.js';
import * as Tone from "https://esm.sh/tone";
// Função principal de renderização para o editor de patterns // Função principal de renderização para o editor de patterns
export function renderPatternEditor() { export function renderPatternEditor() {
@ -105,7 +106,7 @@ export function redrawSequencer() {
} }
// ============================================================ // ============================================================
// LÓGICA DE DECISÃO V2: STEPS OU PIANO ROLL? // LÓGICA DE DECISÃO V2: STEPS OU PIANO ROLL? (MANTIDA)
// ============================================================ // ============================================================
const notes = activePattern.notes || []; const notes = activePattern.notes || [];
@ -117,7 +118,6 @@ export function redrawSequencer() {
const isMelodic = notes.some(n => n.key !== firstKey); const isMelodic = notes.some(n => n.key !== firstKey);
const hasLongNotes = notes.some(n => n.len > 48); const hasLongNotes = notes.some(n => n.len > 48);
// Sobreposição de notas (Acordes)
const sortedNotes = [...notes].sort((a, b) => a.pos - b.pos); const sortedNotes = [...notes].sort((a, b) => a.pos - b.pos);
let hasOverlap = false; let hasOverlap = false;
for (let i = 0; i < sortedNotes.length - 1; i++) { for (let i = 0; i < sortedNotes.length - 1; i++) {
@ -153,14 +153,18 @@ export function redrawSequencer() {
} }
}); });
// --- CÁLCULO REVERTIDO (VOLTA AO PADRÃO ANTERIOR) ---
const barsInput = document.getElementById('bars-input');
const barsCount = barsInput ? parseInt(barsInput.value) || 1 : 1;
// Revertido: Removemos a multiplicação por beatsPerBar que causou o bug visual
const totalTicks = 192 * barsCount;
// ----------------------------------------------------
activePattern.notes.forEach(note => { activePattern.notes.forEach(note => {
const noteEl = document.createElement('div'); const noteEl = document.createElement('div');
noteEl.className = 'mini-note'; noteEl.className = 'mini-note';
const barsInput = document.getElementById('bars-input');
const barsCount = barsInput ? parseInt(barsInput.value) || 1 : 1;
const totalTicks = 192 * barsCount;
const leftPercent = (note.pos / totalTicks) * 100; const leftPercent = (note.pos / totalTicks) * 100;
const widthPercent = (note.len / totalTicks) * 100; const widthPercent = (note.len / totalTicks) * 100;
@ -200,7 +204,6 @@ export function redrawSequencer() {
stepElement.classList.add("active"); stepElement.classList.add("active");
} }
// --- EVENTO DE CLIQUE (CORRIGIDO PARA PLUGINS) ---
stepElement.addEventListener("click", (e) => { stepElement.addEventListener("click", (e) => {
e.stopPropagation(); e.stopPropagation();
initializeAudioContext(); initializeAudioContext();
@ -216,18 +219,13 @@ export function redrawSequencer() {
isActive: isActive isActive: isActive
}); });
// --- AQUI ESTAVA O PROBLEMA: TOCA O SOM ---
if (isActive) { if (isActive) {
// Caso 1: Sampler (Áudio)
if (trackData.type === 'sampler' && trackData.samplePath) { if (trackData.type === 'sampler' && trackData.samplePath) {
playSample(trackData.samplePath, trackData.id); playSample(trackData.samplePath, trackData.id);
} }
// Caso 2: Plugin (Sintetizador)
else if (trackData.type === 'plugin' && trackData.instrument) { else if (trackData.type === 'plugin' && trackData.instrument) {
// Toca um C5 (Dó) curto para feedback visual/sonoro
try { try {
// triggerAttackRelease(nota, duração) trackData.instrument.triggerAttackRelease("C5", "16n", Tone.now());
trackData.instrument.triggerAttackRelease("C5", "16n");
} catch(err) { } catch(err) {
console.warn("Erro ao tocar preview do synth:", err); console.warn("Erro ao tocar preview do synth:", err);
} }

View File

@ -70,418 +70,425 @@
</style> </style>
</head> </head>
<body> <body>
<aside class="sample-browser">
<div class="browser-header">Navegador de Samples</div>
<div class="browser-content" id="browser-content"></div>
</aside>
<button id="sidebar-toggle"><i class="fa-solid fa-caret-left"></i></button>
<div class="app-container">
<header class="global-toolbar">
<div class="control-group">
<i
class="fa-solid fa-file"
id="new-project-btn"
title="Novo Projeto"
></i>
<i
class="fa-solid fa-folder-open"
id="open-mmp-btn"
title="Abrir Projeto do Servidor"
></i>
<i
class="fa-solid fa-save"
id="save-mmp-btn"
title="Salvar Projeto (.mmp)"
></i>
<i
class="fa-solid fa-upload"
id="upload-sample-btn"
title="Carregar Sample do Computador"
></i>
</div>
<div class="divider"></div>
<div class="control-group">
<i
class="fa-solid fa-backward-step"
id="rewind-btn"
title="Voltar ao Início"
></i>
<i class="fa-solid fa-play" title="Play/Pause Global (Futuro)"></i>
<i class="fa-solid fa-stop" title="Stop Global (Futuro)"></i>
<button id="record-btn" class="transport-btn" title="Gravar">
<i class="fa-solid fa-circle-dot"></i>
</button>
</div>
<div class="divider"></div>
<div class="info-display-group">
<div class="info-display">
<div class="interactive-input-container">
<button class="adjust-btn" data-target="bpm" data-step="-1">
-
</button>
<input
type="text"
class="value-input"
id="bpm-input"
value="140"
data-min="20"
data-max="400"
/>
<button class="adjust-btn" data-target="bpm" data-step="1">
+
</button>
</div>
<div class="label">ANDAMENTO/BPM</div>
</div>
<div class="info-display">
<div class="interactive-input-container">
<button class="adjust-btn" data-target="bars" data-step="-1">
-
</button>
<input
type="text"
class="value-input"
id="bars-input"
value="1"
data-min="1"
data-max="64"
/>
<button class="adjust-btn" data-target="bars" data-step="1">
+
</button>
</div>
<div class="label">COMPASSOS</div>
</div>
<div class="info-display">
<div class="interactive-input-container">
<div class="compasso-group">
<button
class="adjust-btn"
data-target="compasso-a"
data-step="-1"
>
-
</button>
<input
type="text"
class="value-input compasso-input"
id="compasso-a-input"
value="4"
data-min="1"
data-max="16"
/>
<button
class="adjust-btn"
data-target="compasso-a"
data-step="1"
>
+
</button>
</div>
<span class="compasso-separator">/</span>
<div class="compasso-group">
<button
class="adjust-btn"
data-target="compasso-b"
data-step="-1"
>
-
</button>
<input
type="text"
class="value-input compasso-input"
id="compasso-b-input"
value="4"
data-min="1"
data-max="16"
/>
<button
class="adjust-btn"
data-target="compasso-b"
data-step="1"
>
+
</button>
</div>
</div>
<div class="label">COMPASSO</div>
</div>
<div class="info-display">
<div
id="timer-display"
class="interactive-input-container"
style="font-size: 0.7rem; color: var(--text-dark)"
>
00:00:00
</div>
<div class="label">MIN:SEC:MSEC</div>
</div>
</div>
<div class="control-group">
<button id="metronome-btn" title="Metrônomo On/Off">Metrônomo</button>
<button
id="create-room-btn"
class="transport-btn"
title="Criar ou entrar em uma sala compartilhada"
>
<i class="fa-solid fa-users"></i>
<span style="margin-left: 8px">Criar Sala</span>
</button>
</div>
<div class="spacer"></div>
<div class="control-group master-controls">
<div class="knob-container">
<div class="knob" id="master-volume-knob">
<div class="knob-indicator"></div>
</div>
<span>VOL MASTER</span>
</div>
<div class="knob-container">
<div class="knob" id="master-pan-knob">
<div class="knob-indicator"></div>
</div>
<span>PAN MASTER</span>
</div>
</div>
</header>
<main class="main-content">
<div class="beat-editor">
<div class="editor-header">
Mostrar/esconder Editor de Bases
<div class="window-controls">
<i class="fa-solid fa-minus"></i
><i class="fa-regular fa-square"></i
><i class="fa-solid fa-xmark"></i>
</div>
</div>
<div class="editor-toolbar">
<div class="playback-controls">
<i class="fa-solid fa-play" id="play-btn" title="Play/Pause"></i>
<i class="fa-solid fa-stop" id="stop-btn" title="Stop"></i>
</div>
<div class="pattern-manager">
<h2 id="beat-bassline-title"></h2>
<select
id="global-pattern-selector"
class="pattern-selector"
disabled
>
<option>Selecione uma faixa</option>
</select>
<button id="add-pattern-btn" class="pattern-btn">+</button>
<button id="remove-pattern-btn" class="pattern-btn">-</button>
<button
id="send-pattern-to-playlist-btn"
class="pattern-btn"
title="Enviar Pattern para a Playlist"
style="width: auto; padding: 0 8px; font-size: 0.9rem"
>
<i class="fa-solid fa-arrow-right-to-bracket"></i> Enviar
</button>
</div>
<div class="tool-icons">
<i class="fa-solid fa-table-cells"></i
><i class="fa-solid fa-bars-staggered"></i>
<i class="fa-solid fa-music" id="open-piano-roll-btn" title="Abrir Piano Roll"></i>
<i
class="fa-solid fa-wave-square"
id="bounce-pattern-btn"
title="Renderizar Pattern para Pista de Áudio"
></i>
<i
class="fa-solid fa-plus"
id="add-bar-btn"
title="Adicionar 1 Compasso"
></i>
</div>
<div id="timeline-context-menu">
<div id="copy-clip">Copiar</div>
<div id="cut-clip">Recortar</div>
<div id="paste-clip">Colar</div>
<div class="menu-divider"></div>
<div id="delete-clip" style="color: var(--accent-red)">
Excluir Clipe
</div>
</div>
<div id="ruler-context-menu">
<div id="ruler-set-loop-start">Definir Início do Loop</div>
<div id="ruler-set-loop-end">Definir Fim do Loop</div>
</div>
<div class="zoom-controls">
<i class="fa-solid fa-minus" id="remove-instrument-btn"></i
><i class="fa-solid fa-plus" id="add-instrument-btn"></i>
</div>
</div>
<div id="track-container"></div>
</div>
<div class="piano-roll-editor" id="piano-roll-editor" style="display: none;">
<div class="editor-header">
<span>Piano Roll - <span id="piano-roll-instrument-name">Instrumento 1</span></span>
<div class="window-controls">
<i class="fa-solid fa-xmark" id="close-piano-roll-btn"></i>
</div>
</div>
<div class="piano-roll-toolbar"> <div class="studio-wrapper">
<div class="playback-controls">
<i class="fa-solid fa-pencil active" title="Draw Tool"></i> <aside class="sample-browser">
<i class="fa-solid fa-eraser" title="Erase Tool"></i> <div class="browser-header">Navegador de Samples</div>
</div> <div class="browser-content" id="browser-content"></div>
<div class="snap-controls"> </aside>
<label>Snap:</label>
<select>
<option>1/4</option>
<option>1/8</option>
<option selected>1/16</option>
</select>
</div>
</div>
<div class="piano-roll-workspace"> <button id="sidebar-toggle"><i class="fa-solid fa-caret-left"></i></button>
<div class="piano-keys-container" id="piano-keys-container">
<canvas id="piano-keys-canvas"></canvas> <div class="app-container">
</div> <header class="global-toolbar">
<div class="control-group">
<div class="piano-grid-container" id="piano-grid-container"> <i
<canvas id="piano-grid-canvas"></canvas> class="fa-solid fa-file"
</div> id="new-project-btn"
</div> title="Novo Projeto"
</div> ></i>
<div class="audio-editor"> <i
<div class="editor-header"> class="fa-solid fa-folder-open"
<span>Editor de Amostras de Áudio</span> id="open-mmp-btn"
title="Abrir Projeto do Servidor"
<div class="playback-controls"> ></i>
<i <i
class="fa-solid fa-search-minus" class="fa-solid fa-save"
id="zoom-out-btn" id="save-mmp-btn"
title="Zoom Out" title="Salvar Projeto (.mmp)"
></i> ></i>
<i <i
class="fa-solid fa-search-plus" class="fa-solid fa-upload"
id="zoom-in-btn" id="upload-sample-btn"
title="Zoom In" title="Carregar Sample do Computador"
></i> ></i>
<i </div>
class="fa-solid fa-scissors" <div class="divider"></div>
id="slice-tool-btn" <div class="control-group">
title="Ferramenta de Corte" <i
></i> class="fa-solid fa-backward-step"
id="rewind-btn"
<i title="Voltar ao Início"
class="fa-solid fa-arrows-left-right-to-line" ></i>
id="resize-tool-trim" <i class="fa-solid fa-play" title="Play/Pause Global (Futuro)"></i>
title="Modo de Redimensionamento (Aparar/Trimming)" <i class="fa-solid fa-stop" title="Stop Global (Futuro)"></i>
></i> <button id="record-btn" class="transport-btn" title="Gravar">
<i <i class="fa-solid fa-circle-dot"></i>
class="fa-solid fa-arrows-left-right" </button>
id="resize-tool-stretch" </div>
title="Modo de Redimensionamento (Esticar/Time Stretch)" <div class="divider"></div>
></i> <div class="info-display-group">
<i <div class="info-display">
class="fa-solid fa-play" <div class="interactive-input-container">
id="audio-editor-play-btn" <button class="adjust-btn" data-target="bpm" data-step="-1">
title="Play/Pause" -
></i> </button>
<i <input
class="fa-solid fa-stop" type="text"
id="audio-editor-stop-btn" class="value-input"
title="Stop" id="bpm-input"
></i> value="140"
<i data-min="20"
class="fa-solid fa-repeat" data-max="400"
id="audio-editor-loop-btn" />
title="Ativar/Desativar Loop" <button class="adjust-btn" data-target="bpm" data-step="1">
></i> +
<button </button>
id="sync-mode-btn" </div>
class="control-btn active" <div class="label">ANDAMENTO/BPM</div>
title="Modo de Sincronia de Playback (Global/Local)" </div>
<div class="info-display">
<div class="interactive-input-container">
<button class="adjust-btn" data-target="bars" data-step="-1">
-
</button>
<input
type="text"
class="value-input"
id="bars-input"
value="1"
data-min="1"
data-max="64"
/>
<button class="adjust-btn" data-target="bars" data-step="1">
+
</button>
</div>
<div class="label">COMPASSOS</div>
</div>
<div class="info-display">
<div class="interactive-input-container">
<div class="compasso-group">
<button
class="adjust-btn"
data-target="compasso-a"
data-step="-1"
>
-
</button>
<input
type="text"
class="value-input compasso-input"
id="compasso-a-input"
value="4"
data-min="1"
data-max="16"
/>
<button
class="adjust-btn"
data-target="compasso-a"
data-step="1"
>
+
</button>
</div>
<span class="compasso-separator">/</span>
<div class="compasso-group">
<button
class="adjust-btn"
data-target="compasso-b"
data-step="-1"
>
-
</button>
<input
type="text"
class="value-input compasso-input"
id="compasso-b-input"
value="4"
data-min="1"
data-max="16"
/>
<button
class="adjust-btn"
data-target="compasso-b"
data-step="1"
>
+
</button>
</div>
</div>
<div class="label">COMPASSO</div>
</div>
<div class="info-display">
<div
id="timer-display"
class="interactive-input-container"
style="font-size: 0.7rem; color: var(--text-dark)"
> >
Global 00:00:00
</button> </div>
<i <div class="label">MIN:SEC:MSEC</div>
class="fa-solid fa-plus"
id="add-audio-track-btn"
title="Adicionar Pista de Áudio"
></i>
</div> </div>
</div> </div>
<div id="audio-track-container"> <div class="control-group">
<div class="audio-track-lane"> <button id="metronome-btn" title="Metrônomo On/Off">Metrônomo</button>
<div class="track-info"> <button
<div class="track-info-header"> id="create-room-btn"
<i class="fa-solid fa-gear"></i> class="transport-btn"
<span class="track-name">Pista de Áudio 1</span> title="Criar ou entrar em uma sala compartilhada"
<div class="track-mute"></div> >
<i class="fa-solid fa-users"></i>
<span style="margin-left: 8px">Criar Sala</span>
</button>
</div>
<div class="spacer"></div>
<div class="control-group master-controls">
<div class="knob-container">
<div class="knob" id="master-volume-knob">
<div class="knob-indicator"></div>
</div>
<span>VOL MASTER</span>
</div>
<div class="knob-container">
<div class="knob" id="master-pan-knob">
<div class="knob-indicator"></div>
</div>
<span>PAN MASTER</span>
</div>
</div>
</header>
<main class="main-content">
<div class="beat-editor">
<div class="editor-header">
Mostrar/esconder Editor de Bases
<div class="window-controls">
<i class="fa-solid fa-minus"></i
><i class="fa-regular fa-square"></i
><i class="fa-solid fa-xmark"></i>
</div>
</div>
<div class="editor-toolbar">
<div class="playback-controls">
<i class="fa-solid fa-play" id="play-btn" title="Play/Pause"></i>
<i class="fa-solid fa-stop" id="stop-btn" title="Stop"></i>
</div>
<div class="pattern-manager">
<h2 id="beat-bassline-title"></h2>
<select
id="global-pattern-selector"
class="pattern-selector"
disabled
>
<option>Selecione uma faixa</option>
</select>
<button id="add-pattern-btn" class="pattern-btn">+</button>
<button id="remove-pattern-btn" class="pattern-btn">-</button>
<button
id="send-pattern-to-playlist-btn"
class="pattern-btn"
title="Enviar Pattern para a Playlist"
style="width: auto; padding: 0 8px; font-size: 0.9rem"
>
<i class="fa-solid fa-arrow-right-to-bracket"></i> Enviar
</button>
</div>
<div class="tool-icons">
<i class="fa-solid fa-table-cells"></i
><i class="fa-solid fa-bars-staggered"></i>
<i class="fa-solid fa-music" id="open-piano-roll-btn" title="Abrir Piano Roll"></i>
<i
class="fa-solid fa-wave-square"
id="bounce-pattern-btn"
title="Renderizar Pattern para Pista de Áudio"
></i>
<i
class="fa-solid fa-plus"
id="add-bar-btn"
title="Adicionar 1 Compasso"
></i>
</div>
<div id="timeline-context-menu">
<div id="copy-clip">Copiar</div>
<div id="cut-clip">Recortar</div>
<div id="paste-clip">Colar</div>
<div class="menu-divider"></div>
<div id="delete-clip" style="color: var(--accent-red)">
Excluir Clipe
</div> </div>
<div class="track-controls"> </div>
<div class="knob-container">
<div class="knob" data-control="volume"> <div id="ruler-context-menu">
<div class="knob-indicator"></div> <div id="ruler-set-loop-start">Definir Início do Loop</div>
</div> <div id="ruler-set-loop-end">Definir Fim do Loop</div>
<span>VOL</span> </div>
<div class="zoom-controls">
<i class="fa-solid fa-minus" id="remove-instrument-btn"></i
><i class="fa-solid fa-plus" id="add-instrument-btn"></i>
</div>
</div>
<div id="track-container"></div>
</div>
<div class="piano-roll-editor" id="piano-roll-editor" style="display: none;">
<div class="editor-header">
<span>Piano Roll - <span id="piano-roll-instrument-name">Instrumento 1</span></span>
<div class="window-controls">
<i class="fa-solid fa-xmark" id="close-piano-roll-btn"></i>
</div>
</div>
<div class="piano-roll-toolbar">
<div class="playback-controls">
<i class="fa-solid fa-pencil active" title="Draw Tool"></i>
<i class="fa-solid fa-eraser" title="Erase Tool"></i>
</div>
<div class="snap-controls">
<label>Snap:</label>
<select>
<option>1/4</option>
<option>1/8</option>
<option selected>1/16</option>
</select>
</div>
</div>
<div class="piano-roll-workspace">
<div class="piano-keys-container" id="piano-keys-container">
<canvas id="piano-keys-canvas"></canvas>
</div>
<div class="piano-grid-container" id="piano-grid-container">
<canvas id="piano-grid-canvas"></canvas>
</div>
</div>
</div>
<div class="audio-editor">
<div class="editor-header">
<span>Editor de Amostras de Áudio</span>
<div class="playback-controls">
<i
class="fa-solid fa-search-minus"
id="zoom-out-btn"
title="Zoom Out"
></i>
<i
class="fa-solid fa-search-plus"
id="zoom-in-btn"
title="Zoom In"
></i>
<i
class="fa-solid fa-scissors"
id="slice-tool-btn"
title="Ferramenta de Corte"
></i>
<i
class="fa-solid fa-arrows-left-right-to-line"
id="resize-tool-trim"
title="Modo de Redimensionamento (Aparar/Trimming)"
></i>
<i
class="fa-solid fa-arrows-left-right"
id="resize-tool-stretch"
title="Modo de Redimensionamento (Esticar/Time Stretch)"
></i>
<i
class="fa-solid fa-play"
id="audio-editor-play-btn"
title="Play/Pause"
></i>
<i
class="fa-solid fa-stop"
id="audio-editor-stop-btn"
title="Stop"
></i>
<i
class="fa-solid fa-repeat"
id="audio-editor-loop-btn"
title="Ativar/Desativar Loop"
></i>
<button
id="sync-mode-btn"
class="control-btn active"
title="Modo de Sincronia de Playback (Global/Local)"
>
Global
</button>
<i
class="fa-solid fa-plus"
id="add-audio-track-btn"
title="Adicionar Pista de Áudio"
></i>
</div>
</div>
<div id="audio-track-container">
<div class="audio-track-lane">
<div class="track-info">
<div class="track-info-header">
<i class="fa-solid fa-gear"></i>
<span class="track-name">Pista de Áudio 1</span>
<div class="track-mute"></div>
</div> </div>
<div class="knob-container"> <div class="track-controls">
<div class="knob" data-control="pan"> <div class="knob-container">
<div class="knob-indicator"></div> <div class="knob" data-control="volume">
<div class="knob-indicator"></div>
</div>
<span>VOL</span>
</div> </div>
<span>PAN</span> <div class="knob-container">
<div class="knob" data-control="pan">
<div class="knob-indicator"></div>
</div>
<span>PAN</span>
</div>
</div>
</div>
<div class="timeline-container">
<div class="spectrogram-view-grid" style="width: 4000px">
<div
class="timeline-clip"
style="left: 100px; width: 400px"
></div>
<div class="playhead"></div>
</div> </div>
</div> </div>
</div> </div>
<div class="timeline-container"> <div class="audio-track-lane">
<div class="spectrogram-view-grid" style="width: 4000px"> <div class="track-info">
<div <div class="track-info-header">
class="timeline-clip" <i class="fa-solid fa-gear"></i>
style="left: 100px; width: 400px" <span class="track-name">Pista de Áudio 2</span>
></div> <div class="track-mute"></div>
</div>
<div class="track-controls">
<div class="knob-container">
<div class="knob" data-control="volume">
<div class="knob-indicator"></div>
</div>
<span>VOL</span>
</div>
<div class="knob-container">
<div class="knob" data-control="pan">
<div class="knob-indicator"></div>
</div>
<span>PAN</span>
</div>
</div>
</div>
<div class="timeline-container">
<div id="loop-region" class="loop-region">
<div class="spectrogram-view-grid" style="width: 4000px">
<div class="timeline-clip" style="left: 50px; width: 600px">
<div class="clip-name">jungle01.ogg</div>
</div>
</div>
</div>
<div class="playhead"></div> <div class="playhead"></div>
</div> </div>
</div> </div>
</div> </div>
<div class="audio-track-lane">
<div class="track-info">
<div class="track-info-header">
<i class="fa-solid fa-gear"></i>
<span class="track-name">Pista de Áudio 2</span>
<div class="track-mute"></div>
</div>
<div class="track-controls">
<div class="knob-container">
<div class="knob" data-control="volume">
<div class="knob-indicator"></div>
</div>
<span>VOL</span>
</div>
<div class="knob-container">
<div class="knob" data-control="pan">
<div class="knob-indicator"></div>
</div>
<span>PAN</span>
</div>
</div>
</div>
<div class="timeline-container">
<div id="loop-region" class="loop-region">
<div class="spectrogram-view-grid" style="width: 4000px">
<div class="timeline-clip" style="left: 50px; width: 600px">
<div class="clip-name">jungle01.ogg</div>
</div>
</div>
</div>
<div class="playhead"></div>
</div>
</div>
</div> </div>
</div> </main>
</main> </div>
</div> </div>
<input <input
type="file" type="file"
@ -529,14 +536,19 @@
// Variáveis de Controle // Variáveis de Controle
let currentTrackId = null; let currentTrackId = null;
const CONSTANTS = { // --- Configurações ---
NOTE_HEIGHT: 20, const CONSTANTS = {
KEY_WIDTH: 60, NOTE_HEIGHT: 20,
BEAT_WIDTH: 40, KEY_WIDTH: 60,
TOTAL_KEYS: 84, // 7 oitavas BEAT_WIDTH: 40, // Largura visual de 1 batida (Quarter Note)
START_NOTE: 24, // C1 TOTAL_KEYS: 84,
TICKS_PER_PIXEL: 0 // Calculado dinamicamente START_NOTE: 24,
};
// --- CORREÇÃO DE ESCALA ---
// O LMMS usa 192 ticks por batida (Quarter Note).
// Se nossa batida tem 40px de largura, a relação é:
TICKS_PER_PIXEL: 192 / 40 // = 4.8
};
const pianoRollEditor = document.getElementById('piano-roll-editor'); const pianoRollEditor = document.getElementById('piano-roll-editor');
const keysCanvas = document.getElementById('piano-keys-canvas'); const keysCanvas = document.getElementById('piano-keys-canvas');
@ -572,26 +584,26 @@
// --- DESENHO E LÓGICA --- // --- DESENHO E LÓGICA ---
function resizeCanvas() { function resizeCanvas() {
const totalHeight = CONSTANTS.TOTAL_KEYS * CONSTANTS.NOTE_HEIGHT; const totalHeight = CONSTANTS.TOTAL_KEYS * CONSTANTS.NOTE_HEIGHT;
// 64 compassos * 192 ticks / (ticks por beat) * largura... simplificando:
// Vamos fixar uma largura grande por enquanto // Calcula a largura total baseada nos compassos definidos no input
const totalWidth = 3000; const barsCount = parseInt(document.getElementById('bars-input')?.value || 1);
// 1 Compasso = 4 Batidas. Largura = Batidas * Largura da Batida
const totalWidth = (barsCount * 4) * CONSTANTS.BEAT_WIDTH;
keysCanvas.width = CONSTANTS.KEY_WIDTH; keysCanvas.width = CONSTANTS.KEY_WIDTH;
keysCanvas.height = totalHeight; keysCanvas.height = totalHeight;
gridCanvas.width = totalWidth;
gridCanvas.height = totalHeight; gridCanvas.width = totalWidth; // Ajusta largura ao tamanho real da música
gridCanvas.height = totalHeight;
// Importante: Sincronizar a conversão de Pixel <-> Tick // REMOVA ESTA LINHA ANTIGA:
// 1 Beat = 48 ticks (em 16th) ou 192 ticks por bar? // CONSTANTS.TICKS_PER_PIXEL = 48 / CONSTANTS.BEAT_WIDTH;
// No seu file.js: ticksPerStep = 12 (1/16).
// Então BEAT_WIDTH (40px) = 4 steps = 48 ticks.
CONSTANTS.TICKS_PER_PIXEL = 48 / CONSTANTS.BEAT_WIDTH;
drawKeys(); drawKeys();
drawGrid(); drawGrid();
drawNotes(); drawNotes();
} }
function drawKeys() { function drawKeys() {
keysCtx.clearRect(0, 0, keysCanvas.width, keysCanvas.height); keysCtx.clearRect(0, 0, keysCanvas.width, keysCanvas.height);
@ -743,4 +755,4 @@
<script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script> <script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script>
<script src="assets/js/creations/socket.js" type="module"></script> <script src="assets/js/creations/socket.js" type="module"></script>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{ {
"summary": { "summary": {
"total": 50, "total": 35,
"healthy": 50, "healthy": 35,
"recovered": 0, "recovered": 0,
"broken": 0 "broken": 0
}, },
@ -176,81 +176,6 @@
"status": "HEALTHY", "status": "HEALTHY",
"dependencies": [] "dependencies": []
}, },
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{
"name": "unknown",
"status": "HEALTHY",
"dependencies": []
},
{ {
"name": "unknown", "name": "unknown",
"status": "HEALTHY", "status": "HEALTHY",

View File

@ -11,20 +11,6 @@
"New Exploration 3.mmp", "New Exploration 3.mmp",
"Nightcrawlers - Surrender Your Love 1995 Loop.mmp", "Nightcrawlers - Surrender Your Love 1995 Loop.mmp",
"Nuttertools.mmp", "Nuttertools.mmp",
"On track.mmp",
"Opus III - A Fine Day 1992 Loop.mmp",
"Opus III - A Fine Day 1992.mmp",
"Orbital - Halcyon On and On 1993 Loop.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0001-TEMPLATE-A-1-old-00001-OLD-SCHOOL-6-READY.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0001-TEMPLATE-A-1-old-TEMPLATE-HH-00032-HAPPY-HARDCORE-ACID-READY.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0001-TEMPLATE-A-1-old-TEMPLATE-HH-00034-HAPPY-HARDCORE-ACID-READY.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0001-TEMPLATE-A-1-old-TEMPLATE-HH-00035-HAPPY-HARDCORE-ACID-READY.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0003-TEMPLATE-A-1-old-TEMPLATE-TR-00031-TRUE-IBIZA-TRANCE-READY.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0003-TEMPLATE-A-1-old-TEMPLATE-TR-00163-IBIZA-ACID-TRANCE-READY.mmp",
"PRICE-SINGLE-1-USD-FULL-COLLECTION-15-USD-0003-TEMPLATE-A-1-old-TEMPLATE-TR-00165-IBIZA-ACID-TRANCE-READY.mmp",
"Provincetown.mmp",
"Psychedelic storm.mmp",
"Red Carpet - Alright 2004 Loop.mmp",
"Relaxing Theme 2.mmp", "Relaxing Theme 2.mmp",
"Relaxing Theme 3.mmp", "Relaxing Theme 3.mmp",
"Relaxing Theme.mmp", "Relaxing Theme.mmp",
@ -42,7 +28,6 @@
"Wesley_Silva_Guimarães.mmp", "Wesley_Silva_Guimarães.mmp",
"XpressiveTest10.mmp", "XpressiveTest10.mmp",
"leandro_souza_atvd1.mmp", "leandro_souza_atvd1.mmp",
"regarde toi.mmp",
"space-camel.mmp", "space-camel.mmp",
"stairs.mmp", "stairs.mmp",
"teste.mmp", "teste.mmp",

View File

@ -1,16 +1,24 @@
{ {
"file": "teste", "file": "teste",
"src": "/nethome/jotachina/projetos/mmpSearch/mmp/teste.mmp", "src": "/nethome/jotachina/projetos/mmpSearch/mmp/teste.mmp",
"bpm": "140", "bpm": "127",
"tags": { "tags": {
"TAG": [ "TAG": [
"plugin" "plugin",
"sample",
"bassline"
], ],
"plugin": [ "plugin": [
"tripleoscillator",
"audiofileprocessor" "audiofileprocessor"
], ],
"sample": [], "sample": [
"bassline": [], "latin_guitar02.ogg"
],
"bassline": [
"Beat/Bassline 0",
"Batida/Linha de Baixo 1"
],
"automation": [] "automation": []
}, },
"tracks": [ "tracks": [
@ -24,17 +32,39 @@
"fxch": "0", "fxch": "0",
"usemasterpitch": "1" "usemasterpitch": "1"
}, },
"plugin_name": "audiofileprocessor", "instrument_name": "tripleoscillator",
"audiofileprocessor": { "tags": "tripleoscillator",
"looped": "0", "tripleoscillator": {
"stutter": "0", "coarse1": "-12",
"reversed": "0", "userwavefile1": "",
"interp": "1", "userwavefile0": "",
"src": "drums/clap01.ogg", "coarse0": "0",
"lframe": "0", "pan2": "0",
"eframe": "1", "modalgo3": "2",
"sframe": "0", "stphdetun0": "0",
"amp": "100" "phoffset1": "0",
"userwavefile2": "",
"vol0": "33",
"coarse2": "-24",
"stphdetun2": "0",
"pan1": "0",
"finer1": "0",
"pan0": "0",
"wavetype0": "0",
"vol1": "33",
"finel2": "0",
"finel1": "0",
"modalgo1": "2",
"finel0": "0",
"phoffset0": "0",
"finer2": "0",
"stphdetun1": "0",
"wavetype1": "0",
"finer0": "0",
"wavetype2": "0",
"modalgo2": "2",
"vol2": "33",
"phoffset2": "0"
}, },
"eldata": { "eldata": {
"fwet": "0", "fwet": "0",
@ -43,104 +73,833 @@
"fres": "0.5" "fres": "0.5"
}, },
"elvol": { "elvol": {
"latt": "0", "att": "0",
"hold": "0.5",
"amt": "0",
"sustain": "0.5",
"lspd": "0.1",
"ctlenvamt": "0",
"lspd_denominator": "4", "lspd_denominator": "4",
"lspd_syncmode": "0", "lamt": "0",
"userwavefile": "",
"dec": "0.5", "dec": "0.5",
"pdel": "0", "pdel": "0",
"lspd_numerator": "4",
"x100": "0", "x100": "0",
"lamt": "0", "lspd_syncmode": "0",
"ctlenvamt": "0",
"lshp": "0", "lshp": "0",
"att": "0", "hold": "0.5",
"rel": "0.1", "latt": "0",
"sustain": "0.5",
"userwavefile": "",
"lspd": "0.1",
"amt": "0",
"lpdel": "0", "lpdel": "0",
"lspd_numerator": "4" "rel": "0.1"
}, },
"elcut": { "elcut": {
"latt": "0", "att": "0",
"hold": "0.5",
"amt": "0",
"sustain": "0.5",
"lspd": "0.1",
"ctlenvamt": "0",
"lspd_denominator": "4", "lspd_denominator": "4",
"lspd_syncmode": "0", "lamt": "0",
"userwavefile": "",
"dec": "0.5", "dec": "0.5",
"pdel": "0", "pdel": "0",
"lspd_numerator": "4",
"x100": "0", "x100": "0",
"lamt": "0", "lspd_syncmode": "0",
"ctlenvamt": "0",
"lshp": "0", "lshp": "0",
"att": "0", "hold": "0.5",
"rel": "0.1", "latt": "0",
"sustain": "0.5",
"userwavefile": "",
"lspd": "0.1",
"amt": "0",
"lpdel": "0", "lpdel": "0",
"lspd_numerator": "4" "rel": "0.1"
}, },
"elres": { "elres": {
"latt": "0", "att": "0",
"hold": "0.5",
"amt": "0",
"sustain": "0.5",
"lspd": "0.1",
"ctlenvamt": "0",
"lspd_denominator": "4", "lspd_denominator": "4",
"lspd_syncmode": "0", "lamt": "0",
"userwavefile": "",
"dec": "0.5", "dec": "0.5",
"pdel": "0", "pdel": "0",
"lspd_numerator": "4",
"x100": "0", "x100": "0",
"lamt": "0", "lspd_syncmode": "0",
"ctlenvamt": "0",
"lshp": "0", "lshp": "0",
"att": "0", "hold": "0.5",
"rel": "0.1", "latt": "0",
"sustain": "0.5",
"userwavefile": "",
"lspd": "0.1",
"amt": "0",
"lpdel": "0", "lpdel": "0",
"lspd_numerator": "4" "rel": "0.1"
}, },
"chordcreator": { "chordcreator": {
"chord": "0", "chordrange": "1",
"chord-enabled": "0", "chord-enabled": "0",
"chordrange": "1" "chord": "0"
}, },
"arpeggiator": { "arpeggiator": {
"arptime_denominator": "4",
"arp-enabled": "0",
"arpmode": "0",
"arptime_syncmode": "0",
"arptime_numerator": "4",
"arpskip": "0",
"arpdir": "0",
"arp": "0",
"arpmiss": "0",
"arpcycle": "0", "arpcycle": "0",
"arpgate": "100",
"arpmode": "0",
"arp-enabled": "0",
"arptime_denominator": "4",
"arp": "0",
"arpskip": "0",
"arptime_numerator": "4",
"arptime": "100",
"arptime_syncmode": "0",
"arprange": "1", "arprange": "1",
"arptime": "200", "arpmiss": "0",
"arpgate": "100" "arpdir": "0"
}, },
"midiport": { "midiport": {
"writable": "0",
"fixedinputvelocity": "-1",
"fixedoutputvelocity": "-1",
"outputchannel": "1",
"inputcontroller": "0",
"fixedoutputnote": "-1",
"basevelocity": "63",
"outputprogram": "1",
"inputchannel": "0",
"readable": "0", "readable": "0",
"outputcontroller": "0" "outputcontroller": "0",
"outputprogram": "1",
"fixedoutputnote": "-1",
"outputchannel": "1",
"inputchannel": "0",
"inputcontroller": "0",
"basevelocity": "63",
"fixedoutputvelocity": "-1",
"fixedinputvelocity": "-1",
"writable": "0"
}, },
"fxchain": { "fxchain": {
"enabled": "0", "enabled": "0",
"numofeffects": "0" "numofeffects": "0"
}, },
"track_name": "clap01.ogg", "track_name": "TripleOscillator",
"type": "plugin" "type": "plugin"
},
{
"track_name": "Sample track",
"sample_name": "latin_guitar02.ogg",
"type": "sample",
"sample_info": {
"pan": "0",
"vol": "100",
"src": "latin/latin_guitar02.ogg",
"len": "389",
"sample_rate": "44100",
"pos": "0",
"muted": "0"
}
},
{
"bassline_name": "Beat/Bassline 0",
"type": "bassline",
"tags": "audiofileprocessor",
"instruments": [
{
"instrument_name": "Conga_m.ds",
"instrument_type": "0",
"pitch": "0",
"pan": "0",
"vol": "100",
"pitchrange": "1",
"basenote": "57",
"fxch": "0",
"usemasterpitch": "1",
"plugin_name": "audiofileprocessor",
"audiofileprocessor": {
"amp": "100",
"src": "drumsynth/cr8000/Conga_m.ds",
"lframe": "0",
"stutter": "0",
"interp": "1",
"sframe": "0",
"looped": "0",
"eframe": "1",
"reversed": "0"
},
"patterns": [
{
"name": "Conga_m.ds",
"pos": "0",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
{
"name": "Bubble.ds",
"pos": "192",
"steps": [
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false,
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false,
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false,
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false
]
}
]
},
{
"instrument_name": "Bubble.ds",
"instrument_type": "0",
"pitch": "0",
"pan": "0",
"vol": "100",
"pitchrange": "1",
"basenote": "57",
"fxch": "0",
"usemasterpitch": "1",
"plugin_name": "audiofileprocessor",
"audiofileprocessor": {
"amp": "100",
"src": "drumsynth/effects/Bubble.ds",
"lframe": "0",
"stutter": "0",
"interp": "1",
"sframe": "0",
"looped": "0",
"eframe": "1",
"reversed": "0"
},
"patterns": [
{
"name": "Bubble.ds",
"pos": "0",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
{
"name": "Bubble.ds",
"pos": "192",
"steps": [
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false,
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false,
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false,
false,
true,
false,
false,
true,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
false
]
}
]
},
{
"instrument_name": "clav_2.ds",
"instrument_type": "0",
"pitch": "0",
"pan": "0",
"vol": "100",
"pitchrange": "1",
"basenote": "57",
"fxch": "0",
"usemasterpitch": "1",
"plugin_name": "audiofileprocessor",
"audiofileprocessor": {
"amp": "100",
"src": "drumsynth/misc_perc/clav_2.ds",
"lframe": "0",
"stutter": "0",
"interp": "1",
"sframe": "0",
"looped": "0",
"eframe": "1",
"reversed": "0"
},
"patterns": [
{
"name": "clav_2.ds",
"pos": "0",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
{
"name": "clav_2.ds",
"pos": "192",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false
]
}
]
},
{
"instrument_name": "triangle.wav",
"instrument_type": "0",
"pitch": "0",
"pan": "0",
"vol": "100",
"pitchrange": "1",
"basenote": "57",
"fxch": "0",
"usemasterpitch": "1",
"plugin_name": "audiofileprocessor",
"audiofileprocessor": {
"amp": "100",
"src": "gig/DrumKits/drive-download-20230412T011016Z-001/Percs/triangle.wav",
"lframe": "0",
"stutter": "0",
"interp": "1",
"sframe": "0",
"looped": "0",
"eframe": "1",
"reversed": "0"
},
"patterns": [
{
"name": "triangle.wav",
"pos": "0",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
{
"name": "clav_2.ds",
"pos": "192",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false
]
}
]
},
{
"instrument_name": "boombap.wav",
"instrument_type": "0",
"pitch": "0",
"pan": "0",
"vol": "100",
"pitchrange": "1",
"basenote": "57",
"fxch": "0",
"usemasterpitch": "1",
"plugin_name": "audiofileprocessor",
"audiofileprocessor": {
"amp": "100",
"src": "gig/DrumKits/drive-download-20230412T011016Z-001/Percs/boombap.wav",
"lframe": "0",
"stutter": "0",
"interp": "1",
"sframe": "0",
"looped": "0",
"eframe": "1",
"reversed": "0"
},
"patterns": [
{
"name": "boombap.wav",
"pos": "0",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
{
"name": "boombap.wav",
"pos": "192",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
}
]
},
{
"instrument_name": "flute01.ogg",
"instrument_type": "0",
"pitch": "0",
"pan": "0",
"vol": "100",
"pitchrange": "1",
"basenote": "57",
"fxch": "0",
"usemasterpitch": "1",
"plugin_name": "audiofileprocessor",
"audiofileprocessor": {
"amp": "100",
"src": "instruments/flute01.ogg",
"lframe": "0",
"stutter": "0",
"interp": "1",
"sframe": "0",
"looped": "0",
"eframe": "1",
"reversed": "0"
},
"patterns": [
{
"name": "flute01.ogg",
"pos": "0",
"steps": [
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
{
"name": "flute01.ogg",
"pos": "192",
"steps": [
true,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
false,
true,
false,
true,
false,
true,
false,
true,
false,
false,
false,
true,
false,
true,
false,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
true,
false,
false,
false,
true,
false,
true,
false,
true,
false,
true,
false,
true,
false,
true,
false,
false,
false,
true,
false,
true,
false,
false,
false,
true,
false,
false,
false
]
}
]
}
]
},
{
"bassline_name": "Batida/Linha de Baixo 1",
"type": "bassline",
"tags": "",
"instruments": []
} }
] ]
} }

View File

@ -1,55 +1,245 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE lmms-project> <!DOCTYPE lmms-project>
<lmms-project type="song" creator="LMMS" creatorversion="1.2.2" version="1.0"> <lmms-project version="1.0" type="song" creatorversion="1.2.2" creator="LMMS">
<head timesig_numerator="4" bpm="140" mastervol="100" masterpitch="0" timesig_denominator="4"/> <head mastervol="100" masterpitch="0" timesig_numerator="4" bpm="127" timesig_denominator="4"/>
<song> <song>
<trackcontainer width="600" height="300" type="song" visible="1" x="5" maximized="0" minimized="0" y="17"> <trackcontainer minimized="0" visible="1" maximized="0" x="5" type="song" width="600" y="5" height="300">
<track type="0" solo="0" name="clap01.ogg" muted="0"> <track solo="0" type="0" name="TripleOscillator" muted="0">
<instrumenttrack basenote="57" fxch="0" pan="0" pitch="0" vol="100" usemasterpitch="1" pitchrange="1"> <instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor"> <instrument name="tripleoscillator">
<audiofileprocessor looped="0" stutter="0" reversed="0" interp="1" src="drums/clap01.ogg" lframe="0" eframe="1" sframe="0" amp="100"/> <tripleoscillator coarse1="-12" userwavefile1="" userwavefile0="" coarse0="0" pan2="0" modalgo3="2" stphdetun0="0" phoffset1="0" userwavefile2="" vol0="33" coarse2="-24" stphdetun2="0" pan1="0" finer1="0" pan0="0" wavetype0="0" vol1="33" finel2="0" finel1="0" modalgo1="2" finel0="0" phoffset0="0" finer2="0" stphdetun1="0" wavetype1="0" finer0="0" wavetype2="0" modalgo2="2" vol2="33" phoffset2="0"/>
</instrument> </instrument>
<eldata fwet="0" fcut="14000" ftype="0" fres="0.5"> <eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol latt="0" hold="0.5" amt="0" sustain="0.5" lspd="0.1" ctlenvamt="0" lspd_denominator="4" lspd_syncmode="0" userwavefile="" dec="0.5" pdel="0" x100="0" lamt="0" lshp="0" att="0" rel="0.1" lpdel="0" lspd_numerator="4"/> <elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut latt="0" hold="0.5" amt="0" sustain="0.5" lspd="0.1" ctlenvamt="0" lspd_denominator="4" lspd_syncmode="0" userwavefile="" dec="0.5" pdel="0" x100="0" lamt="0" lshp="0" att="0" rel="0.1" lpdel="0" lspd_numerator="4"/> <elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres latt="0" hold="0.5" amt="0" sustain="0.5" lspd="0.1" ctlenvamt="0" lspd_denominator="4" lspd_syncmode="0" userwavefile="" dec="0.5" pdel="0" x100="0" lamt="0" lshp="0" att="0" rel="0.1" lpdel="0" lspd_numerator="4"/> <elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata> </eldata>
<chordcreator chord="0" chord-enabled="0" chordrange="1"/> <chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arptime_denominator="4" arp-enabled="0" arpmode="0" arptime_syncmode="0" arptime_numerator="4" arpskip="0" arpdir="0" arp="0" arpmiss="0" arpcycle="0" arprange="1" arptime="200" arpgate="100"/> <arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="100" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport writable="0" fixedinputvelocity="-1" fixedoutputvelocity="-1" outputchannel="1" inputcontroller="0" fixedoutputnote="-1" basevelocity="63" outputprogram="1" inputchannel="0" readable="0" outputcontroller="0"/> <midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/> <fxchain enabled="0" numofeffects="0"/>
</instrumenttrack> </instrumenttrack>
<pattern pos="0" type="1" steps="16" name="clap01.ogg" muted="0"> <pattern steps="16" type="1" name="TripleOscillator" pos="0" muted="0">
<note key="60" pos="48" len="48" pan="0" vol="100"/> <note pan="0" vol="100" key="60" len="48" pos="0"/>
<note key="60" pos="144" len="48" pan="0" vol="100"/> <note pan="0" vol="100" key="62" len="48" pos="48"/>
<note key="60" pos="240" len="48" pan="0" vol="100"/> <note pan="0" vol="100" key="65" len="48" pos="96"/>
<note key="60" pos="336" len="48" pan="0" vol="100"/> <note pan="0" vol="100" key="67" len="48" pos="144"/>
</pattern> </pattern>
</track> </track>
<track solo="0" type="2" name="Sample track" muted="0">
<sampletrack pan="0" vol="100">
<fxchain enabled="0" numofeffects="0"/>
</sampletrack>
<sampletco len="389" pos="0" src="latin/latin_guitar02.ogg" muted="0" sample_rate="44100"/>
<sampletco len="389" pos="384" src="latin/latin_guitar02.ogg" muted="0" sample_rate="44100"/>
</track>
<track solo="0" type="1" name="Beat/Bassline 0" muted="0">
<bbtrack>
<trackcontainer minimized="0" visible="1" maximized="0" x="1" type="bbtrackcontainer" width="1352" y="375" height="398">
<track solo="0" type="0" name="Conga_m.ds" muted="0">
<instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor">
<audiofileprocessor stutter="0" looped="0" sframe="0" interp="1" reversed="0" eframe="1" amp="100" src="drumsynth/cr8000/Conga_m.ds" lframe="0"/>
</instrument>
<eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata>
<chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="200" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/>
</instrumenttrack>
<pattern steps="16" type="0" name="Conga_m.ds" pos="0" muted="0"/>
<pattern steps="64" type="0" name="Bubble.ds" pos="192" muted="0">
<note pan="0" vol="100" key="57" len="-192" pos="12"/>
<note pan="0" vol="100" key="57" len="-192" pos="48"/>
<note pan="0" vol="100" key="57" len="-192" pos="84"/>
<note pan="0" vol="100" key="57" len="-192" pos="132"/>
<note pan="0" vol="100" key="57" len="-192" pos="204"/>
<note pan="0" vol="100" key="57" len="-192" pos="240"/>
<note pan="0" vol="100" key="57" len="-192" pos="276"/>
<note pan="0" vol="100" key="57" len="-192" pos="324"/>
<note pan="0" vol="100" key="57" len="-192" pos="396"/>
<note pan="0" vol="100" key="57" len="-192" pos="432"/>
<note pan="0" vol="100" key="57" len="-192" pos="468"/>
<note pan="0" vol="100" key="57" len="-192" pos="516"/>
<note pan="0" vol="100" key="57" len="-192" pos="588"/>
<note pan="0" vol="100" key="57" len="-192" pos="624"/>
<note pan="0" vol="100" key="57" len="-192" pos="660"/>
<note pan="0" vol="100" key="57" len="-192" pos="708"/>
</pattern>
</track>
<track solo="0" type="0" name="Bubble.ds" muted="0">
<instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor">
<audiofileprocessor stutter="0" looped="0" sframe="0" interp="1" reversed="0" eframe="1" amp="100" src="drumsynth/effects/Bubble.ds" lframe="0"/>
</instrument>
<eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata>
<chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="200" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/>
</instrumenttrack>
<pattern steps="16" type="0" name="Bubble.ds" pos="0" muted="0"/>
<pattern steps="64" type="0" name="Bubble.ds" pos="192" muted="0">
<note pan="0" vol="100" key="57" len="-192" pos="12"/>
<note pan="0" vol="100" key="57" len="-192" pos="48"/>
<note pan="0" vol="100" key="57" len="-192" pos="84"/>
<note pan="0" vol="100" key="57" len="-192" pos="132"/>
<note pan="0" vol="100" key="57" len="-192" pos="204"/>
<note pan="0" vol="100" key="57" len="-192" pos="240"/>
<note pan="0" vol="100" key="57" len="-192" pos="276"/>
<note pan="0" vol="100" key="57" len="-192" pos="324"/>
<note pan="0" vol="100" key="57" len="-192" pos="396"/>
<note pan="0" vol="100" key="57" len="-192" pos="432"/>
<note pan="0" vol="100" key="57" len="-192" pos="468"/>
<note pan="0" vol="100" key="57" len="-192" pos="516"/>
<note pan="0" vol="100" key="57" len="-192" pos="588"/>
<note pan="0" vol="100" key="57" len="-192" pos="624"/>
<note pan="0" vol="100" key="57" len="-192" pos="660"/>
<note pan="0" vol="100" key="57" len="-192" pos="708"/>
</pattern>
</track>
<track solo="0" type="0" name="clav_2.ds" muted="0">
<instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor">
<audiofileprocessor stutter="0" looped="0" sframe="0" interp="1" reversed="0" eframe="1" amp="100" src="drumsynth/misc_perc/clav_2.ds" lframe="0"/>
</instrument>
<eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata>
<chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="200" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/>
</instrumenttrack>
<pattern steps="16" type="0" name="clav_2.ds" pos="0" muted="0"/>
<pattern steps="64" type="0" name="clav_2.ds" pos="192" muted="0">
<note pan="0" vol="100" key="57" len="-192" pos="360"/>
<note pan="0" vol="100" key="57" len="-192" pos="744"/>
</pattern>
</track>
<track solo="0" type="0" name="triangle.wav" muted="0">
<instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor">
<audiofileprocessor stutter="0" looped="0" sframe="0" interp="1" reversed="0" eframe="1" amp="100" src="gig/DrumKits/drive-download-20230412T011016Z-001/Percs/triangle.wav" lframe="0"/>
</instrument>
<eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata>
<chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="200" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/>
</instrumenttrack>
<pattern steps="16" type="0" name="triangle.wav" pos="0" muted="0"/>
<pattern steps="64" type="0" name="clav_2.ds" pos="192" muted="0">
<note pan="0" vol="100" key="57" len="-192" pos="360"/>
<note pan="0" vol="100" key="57" len="-192" pos="744"/>
</pattern>
</track>
<track solo="0" type="0" name="boombap.wav" muted="0">
<instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor">
<audiofileprocessor stutter="0" looped="0" sframe="0" interp="1" reversed="0" eframe="1" amp="100" src="gig/DrumKits/drive-download-20230412T011016Z-001/Percs/boombap.wav" lframe="0"/>
</instrument>
<eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata>
<chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="200" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/>
</instrumenttrack>
<pattern steps="16" type="0" name="boombap.wav" pos="0" muted="0"/>
<pattern steps="64" type="0" name="boombap.wav" pos="192" muted="0">
<note pan="0" vol="100" key="57" len="-192" pos="528"/>
</pattern>
</track>
<track solo="0" type="0" name="flute01.ogg" muted="0">
<instrumenttrack pan="0" vol="100" pitchrange="1" basenote="57" pitch="0" fxch="0" usemasterpitch="1">
<instrument name="audiofileprocessor">
<audiofileprocessor stutter="0" looped="0" sframe="0" interp="1" reversed="0" eframe="1" amp="100" src="instruments/flute01.ogg" lframe="0"/>
</instrument>
<eldata ftype="0" fwet="0" fres="0.5" fcut="14000">
<elvol att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elcut att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
<elres att="0" lspd_denominator="4" lamt="0" dec="0.5" pdel="0" lspd_numerator="4" x100="0" lspd_syncmode="0" ctlenvamt="0" lshp="0" hold="0.5" latt="0" sustain="0.5" userwavefile="" lspd="0.1" amt="0" lpdel="0" rel="0.1"/>
</eldata>
<chordcreator chordrange="1" chord-enabled="0" chord="0"/>
<arpeggiator arpcycle="0" arpgate="100" arpmode="0" arp-enabled="0" arptime_denominator="4" arp="0" arpskip="0" arptime_numerator="4" arptime="200" arptime_syncmode="0" arprange="1" arpmiss="0" arpdir="0"/>
<midiport readable="0" outputcontroller="0" outputprogram="1" fixedoutputnote="-1" outputchannel="1" inputchannel="0" inputcontroller="0" basevelocity="63" fixedoutputvelocity="-1" fixedinputvelocity="-1" writable="0"/>
<fxchain enabled="0" numofeffects="0"/>
</instrumenttrack>
<pattern steps="16" type="0" name="flute01.ogg" pos="0" muted="0"/>
<pattern steps="64" type="1" name="flute01.ogg" pos="192" muted="0">
<note pan="0" vol="100" key="61" len="48" pos="0"/>
<note pan="0" vol="76" key="64" len="48" pos="48"/>
<note pan="0" vol="100" key="66" len="24" pos="96"/>
<note pan="0" vol="57" key="66" len="24" pos="120"/>
<note pan="0" vol="100" key="68" len="24" pos="144"/>
<note pan="0" vol="61" key="70" len="24" pos="168"/>
<note pan="0" vol="100" key="66" len="24" pos="192"/>
<note pan="0" vol="61" key="66" len="24" pos="216"/>
<note pan="0" vol="100" key="64" len="24" pos="264"/>
<note pan="0" vol="48" key="62" len="24" pos="288"/>
<note pan="0" vol="61" key="61" len="48" pos="336"/>
<note pan="0" vol="100" key="58" len="48" pos="384"/>
<note pan="0" vol="76" key="56" len="48" pos="432"/>
<note pan="0" vol="100" key="54" len="24" pos="480"/>
<note pan="0" vol="57" key="54" len="24" pos="504"/>
<note pan="0" vol="100" key="52" len="24" pos="528"/>
<note pan="0" vol="61" key="52" len="24" pos="552"/>
<note pan="0" vol="100" key="50" len="24" pos="576"/>
<note pan="0" vol="61" key="50" len="24" pos="600"/>
<note pan="0" vol="100" key="52" len="24" pos="648"/>
<note pan="0" vol="48" key="50" len="24" pos="672"/>
<note pan="0" vol="61" key="49" len="48" pos="720"/>
</pattern>
</track>
</trackcontainer>
</bbtrack>
<bbtco len="192" name="" pos="576" usestyle="1" color="4286611584" muted="0"/>
</track>
<track solo="0" type="1" name="Batida/Linha de Baixo 1" muted="0">
<bbtrack/>
<bbtco len="768" name="" pos="768" usestyle="1" color="4286611584" muted="0"/>
</track>
</trackcontainer> </trackcontainer>
<track type="6" solo="0" name="Automation track" muted="0"> <track solo="0" type="6" name="Automation track" muted="0">
<automationtrack/> <automationtrack/>
<automationpattern pos="0" mute="0" prog="0" len="192" tens="1" name="Numerator"/> <automationpattern mute="0" prog="0" len="192" name="Numerator" pos="0" tens="1"/>
<automationpattern pos="0" mute="0" prog="0" len="192" tens="1" name="Denominator"/> <automationpattern mute="0" prog="0" len="192" name="Denominator" pos="0" tens="1"/>
<automationpattern pos="0" mute="0" prog="0" len="192" tens="1" name="Tempo"/> <automationpattern mute="0" prog="0" len="192" name="Tempo" pos="0" tens="1"/>
<automationpattern pos="0" mute="0" prog="0" len="192" tens="1" name="Master volume"/> <automationpattern mute="0" prog="0" len="192" name="Master volume" pos="0" tens="1"/>
<automationpattern pos="0" mute="0" prog="0" len="192" tens="1" name="Master pitch"/> <automationpattern mute="0" prog="0" len="192" name="Master pitch" pos="0" tens="1"/>
</track> </track>
<fxmixer width="543" height="333" visible="1" x="5" maximized="0" minimized="0" y="322"> <fxmixer minimized="0" visible="0" maximized="0" x="5" width="543" y="310" height="333">
<fxchannel num="0" volume="1" muted="0" name="Master" soloed="0"> <fxchannel volume="1" soloed="0" num="0" name="Master" muted="0">
<fxchain enabled="0" numofeffects="0"/> <fxchain enabled="0" numofeffects="0"/>
</fxchannel> </fxchannel>
</fxmixer> </fxmixer>
<ControllerRackView width="350" height="200" visible="1" x="680" maximized="0" minimized="0" y="322"/> <ControllerRackView minimized="0" visible="1" maximized="0" x="680" width="350" y="310" height="200"/>
<pianoroll width="860" height="480" visible="0" x="5" maximized="0" minimized="0" y="17"/> <pianoroll minimized="0" visible="0" maximized="0" x="5" width="860" y="10" height="480"/>
<automationeditor width="860" height="400" visible="0" x="1" maximized="0" minimized="0" y="13"/> <automationeditor minimized="0" visible="0" maximized="0" x="1" width="860" y="1" height="400"/>
<projectnotes width="729" height="400" visible="0" x="700" maximized="0" minimized="0" y="22"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <projectnotes minimized="0" visible="0" maximized="0" x="285" width="679" y="1" height="400"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> <html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> </style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.5pt; font-weight:400; font-style:normal;">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html>]]></projectnotes> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html>]]></projectnotes>
<timeline lp0pos="0" lp1pos="192" lpstate="0"/> <timeline lp0pos="0" lpstate="1" lp1pos="1536"/>
<controllers/> <controllers/>
</song> </song>
</lmms-project> </lmms-project>

View File

@ -0,0 +1,79 @@
21/11/2025 15:47:35 [INFO] ==============================
21/11/2025 15:47:35 [INFO] AUDITORIA DE AMBIENTE (HARDWARE)
21/11/2025 15:47:35 [INFO] ==============================
21/11/2025 15:47:35 [INFO] Sistema: Linux 6.8.0-87-generic
21/11/2025 15:47:35 [INFO] Kernel: #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025
21/11/2025 15:47:35 [INFO] Node: ubuntu
21/11/2025 15:47:35 [INFO] CPU Modelo: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
21/11/2025 15:47:35 [INFO] Núcleos (Log): 12
21/11/2025 15:47:35 [INFO] Núcleos (Disp): 12 (Alocados para este script)
21/11/2025 15:47:35 [INFO] Memória Total: 7.69 GB
21/11/2025 15:47:35 [INFO] Disco (Total): 448 GB
21/11/2025 15:47:35 [INFO] Disco (Livre): 124 GB
21/11/2025 15:47:35 [INFO] ==============================
21/11/2025 15:47:35 [INFO] === Iniciando Pipeline de Indexação Paralela ===
21/11/2025 15:47:35 [INFO] Log sendo salvo em: /nethome/jotachina/projetos/mmpSearch/scripts/handler/logs/execucao_2025-11-21_15-47-35.log
21/11/2025 15:47:35 [INFO] Iniciando processamento de 35 arquivos.
21/11/2025 15:47:35 [INFO] Utilizando 12 núcleos de CPU.
21/11/2025 15:47:35 [INFO] [PID 3526766] Processando: tp1 - Luiz Filipe Almada.mmp
21/11/2025 15:47:35 [INFO] [PID 3526767] Processando: tp1_MarcoAntonio.mmp
21/11/2025 15:47:35 [INFO] [PID 3526768] Processando: Ukifune.mmp
21/11/2025 15:47:35 [INFO] [PID 3526769] Processando: Tears of Tragedy Classical 2.mmp
21/11/2025 15:47:35 [INFO] [PID 3526770] Processando: Relaxing Theme.mmp
21/11/2025 15:47:35 [INFO] [PID 3526771] Processando: XpressiveTest10.mmp
21/11/2025 15:47:35 [INFO] [PID 3526772] Processando: winddown.mmp
21/11/2025 15:47:35 [INFO] [PID 3526773] Processando: Living Joy - don't stop movin 1996 Loop.mmp
21/11/2025 15:47:35 [INFO] [PID 3526774] Processando: Hizaki Classical.mmp
21/11/2025 15:47:35 [INFO] [PID 3526775] Processando: Relaxing Theme 2.mmp
21/11/2025 15:47:35 [INFO] [PID 3526777] Processando: The Drum.mmp
21/11/2025 15:47:35 [INFO] [PID 3526776] Processando: Um começo.mmp
21/11/2025 15:47:35 [INFO] [PID 3526766] Processando: Syu Classical.mmp
21/11/2025 15:47:36 [INFO] [PID 3526767] Processando: Nuttertools.mmp
21/11/2025 15:47:36 [INFO] [PID 3526776] Processando: leandro_souza_atvd1.mmp
21/11/2025 15:47:36 [INFO] [PID 3526774] Processando: stairs.mmp
21/11/2025 15:47:36 [INFO] [PID 3526766] Processando: MPXVM - FUMIX 307 ( Original Mix ).mmp
21/11/2025 15:47:36 [INFO] [PID 3526769] Processando: Robin S - Show Me Love 1993 Loop.mmp
21/11/2025 15:47:36 [INFO] [PID 3526767] Processando: Mantronix - Got To Have Your Love 1989 Loop.mmp
21/11/2025 15:47:36 [INFO] [PID 3526772] Processando: VitorAugusto.mmp
21/11/2025 15:47:36 [INFO] [PID 3526768] Processando: Nightcrawlers - Surrender Your Love 1995 Loop.mmp
21/11/2025 15:47:36 [INFO] [PID 3526774] Processando: My worst enemy.mmp
21/11/2025 15:47:36 [INFO] [PID 3526776] Processando: Introduction.mmp
21/11/2025 15:47:36 [INFO] [PID 3526772] Processando: teste.mmp
21/11/2025 15:47:36 [INFO] [PID 3526774] Processando: Mighty Dub Katz - Magic Carpet Ride 1995 Loop.mmp
21/11/2025 15:47:36 [INFO] [PID 3526772] Processando: JoãoVitorSimão-2023008380-megaMainSong.mmp
21/11/2025 15:47:36 [INFO] [PID 3526769] Processando: Iara Rodrigues.mmp
21/11/2025 15:47:36 [INFO] [PID 3526776] Processando: space-camel.mmp
21/11/2025 15:47:36 [INFO] [PID 3526773] Processando: Shade of separation EXTENDED.mmp
21/11/2025 15:47:36 [INFO] [PID 3526772] Processando: Solaris Deep Note.mmp
21/11/2025 15:47:36 [INFO] [PID 3526767] Processando: New Exploration 3.mmp
21/11/2025 15:47:36 [INFO] [PID 3526768] Processando: Samanta Freire.mmp
21/11/2025 15:47:36 [INFO] [PID 3526768] Processando: SonsAlignígenas.mmp
21/11/2025 15:47:37 [INFO] [PID 3526776] Processando: Relaxing Theme 3.mmp
21/11/2025 15:47:37 [INFO] [PID 3526766] Processando: Wesley_Silva_Guimarães.mmp
21/11/2025 15:48:26 [INFO] Arquivos 'all.json' e 'all.yml' gerados com sucesso.
21/11/2025 15:48:26 [INFO] === Iniciando Geração de Manifestos (Pós-Processamento) ===
21/11/2025 15:48:26 [INFO] Manifesto salvo: /nethome/jotachina/projetos/mmpSearch/metadata/samples-manifest.json
21/11/2025 15:48:26 [INFO] Manifesto salvo: /nethome/jotachina/projetos/mmpSearch/metadata/mmp-manifest.json
21/11/2025 15:48:26 [INFO] ============================================================
21/11/2025 15:48:26 [INFO] RELATÓRIO DE EXECUÇÃO - 21/11/2025 15:48:26
21/11/2025 15:48:26 [INFO] ============================================================
21/11/2025 15:48:26 [INFO] Tempo Total do Pipeline: 50.89 segundos
21/11/2025 15:48:26 [INFO] --------------------
21/11/2025 15:48:26 [INFO] [1] Indexação Paralela (Arquivos .mmp/.mmpz)
21/11/2025 15:48:26 [INFO] Total Encontrado: 35
21/11/2025 15:48:26 [INFO] Sucessos: 35
21/11/2025 15:48:26 [INFO] Falhas: 0
21/11/2025 15:48:26 [INFO] --------------------
21/11/2025 15:48:26 [INFO] [2] Geração de Manifestos (Frontend)
21/11/2025 15:48:26 [INFO] [OK] metadata/samples-manifest.json
21/11/2025 15:48:26 [INFO] [OK] metadata/mmp-manifest.json
21/11/2025 15:48:26 [INFO] ============================================================
21/11/2025 15:48:26 [INFO] Pipeline finalizado.
21/11/2025 15:48:26 [INFO] === Iniciando Análise Profunda de Dependências ===
21/11/2025 15:48:27 [INFO] Relatório salvo: /nethome/jotachina/projetos/mmpSearch/metadata/dependency_report.json
21/11/2025 15:48:27 [INFO] Resumo: {
"total": 35,
"healthy": 35,
"recovered": 0,
"broken": 0
}