Tutorial.MultiMeter

function run_multimeter(root) {
    mr = new MultiMeter({
        count: 6,
        layout: 'right',
        scale: 'decibel',
        segment: 2,
        min: -60,
        max: 12,
        values: 18,
        scale_base: 0,
        title: "Channel 0 (mr)",
        titles: ['L', 'R', 'C', 'LFE', 'LS', 'RS'],
        show_title: true,
        show_titles: [true, true, true, true, true, true],
        show_label: true,
        gradient: {"-60": "#001f83", "-0.1": "#008bea", "0": "#ff6000", "12": "#ffa000"},
        levels: [1, 3, 6, 12],
        gap_labels: 20,
        format_label: TK.FORMAT("%d")
    });
    ml = new MultiMeter({
        count: 6,
        layout: 'left',
        scale: 'decibel',
        segment: 2,
        min: -60,
        max: 12,
        values: 18,
        scale_base: 0,
        title: "Channel 1 (ml)",
        titles: ['L', 'R', 'C', 'LFE', 'LS', 'RS'],
        show_title: true,
        show_titles: [true, true, true, true, true, true],
        show_label: true,
        gradient: {"-60": "#001f83", "-0.1": "#008bea", "0": "#ff6000", "12": "#ffa000"},
        levels: [1, 3, 6, 12],
        gap_labels: 20,
        format_label: TK.FORMAT("%d"),
        show_clip: true
    });
    mb = new MultiMeter({
        count: 6,
        layout: 'bottom',
        scale: 'decibel',
        segment: 2,
        min: -60,
        max: 12,
        values: 18,
        scale_base: 0,
        title: "Channel 2 (mb)",
        titles: ['L', 'R', 'C', 'LFE', 'LS', 'RS'],
        show_title: true,
        show_titles: [true, true, true, true, true, true],
        show_label: true,
        gradient: {"-60": "#001f83", "-0.1": "#008bea", "0": "#ff6000", "12": "#ffa000"},
        levels: [1, 3, 6, 12],
        gap_labels: 20
    });
    mt = new MultiMeter({
        count: 6,
        layout: 'top',
        scale: 'decibel',
        segment: 2,
        min: -60,
        max: 12,
        values: 18,
        scale_base: 0,
        title: "Channel 3 (mt)",
        titles: ['L', 'R', 'C', 'LFE', 'LS', 'RS'],
        show_title: true,
        show_titles: [true, true, true, true, true, true],
        show_label: true,
        gradient: {"-60": "#001f83", "-0.1": "#008bea", "0": "#ff6000", "12": "#ffa000"},
        levels: [1, 3, 6, 12],
        gap_labels: 20,
        show_clip: true
    });
    root.append_children([mr, ml, mb, mt]);
    ml.set("values", [-6, -56, 12, 3, -24, 0]);
    mr.set("values", [6, -12, 6, 3, -3, -24]);
    mt.set("values", [-6, -56, 12, 3, -24, 0]);
    mb.set("values", [6, -12, 6, 3, -3, -24]);

    ml.set("clips", [0, 0, 1, 1, 0, 1]);
    mr.set("clips", [1, 0, 1, 1, 0, 0]);
    mt.set("clips", [0, 0, 1, 1, 0, 1]);
    mb.set("clips", [1, 0, 1, 1, 0, 0]);
}


.toolkit-multi-meter {

} .toolkit-multi-meter.toolkit-vertical { height: 320px; float: left; } .toolkit-multi-meter.toolkit-horizontal { width: 320px; display: block; margin-left: 300px; }