JavaScript + jQuery 1.7.2:
var measures = 4;
var quant = 4;
$(".string").each(function(index) {
    for (var i = 0; i < measures * quant; i++) {
        var note = $("<div></div>").addClass("note")
        $(this).append(note);
    }
});
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence