' +
'' + item.q + '' +
'
';
}
return html;
}
function renderizarVizinhos(nota, container) {
var idx = notasCiclo.indexOf(nota);
var prev = notasCiclo[(idx - 1 + 12) % 12];
var next = notasCiclo[(idx + 1) % 12];
container.innerHTML =
'Sub (IV)
' +
'' + prev + '
T\u00f4nica (I)
' +
'' + nota + '
Dom (V)
';
}
function init() {
var containers = document.querySelectorAll('.vb-selector-area');
if (containers.length === 0) return setTimeout(init, 500);
containers.forEach(function(div) {
if (div.innerHTML !== '') return;
notasCromaticas.forEach(function(n) {
var btn = document.createElement('button');
btn.className = 'vb-btn-note';
btn.innerText = n;
btn.onclick = function() { atualizarTudo(n); };
div.appendChild(btn);
});
});
atualizarTudo('C');
}
document.addEventListener('DOMContentLoaded', init);
setTimeout(init, 1000);
})();
' + next + '