lib/gm.js
function checkFamily(program, family) {
    var familyIndex = gm.families.indexOf(family.toLowerCase());

    if (familyIndex === -1 || program < (familyIndex * 8) ||
            program >= ((familyIndex + 1) * 8)) {
        return false;
    }

    return true;
}
function checkFamily(program, family) {
    var familyIndex = gm.families.indexOf(family.toLowerCase());

    if (familyIndex === -1 || program < (familyIndex * 8) ||
            program >= ((familyIndex + 1) * 8)) {
        return false;
    }

    return true;
}
function checkFamily ( program , family ) { var familyIndex = gm . families . indexOf ( family . toLowerCase ( ) ) ; if ( familyIndex === - 1 || program < ( familyIndex * 8 ) || program >= ( ( familyIndex + 1 ) * 8 ) ) { return false ; } return true ; }
Check if a program is in a family of instruments

@private
@param {number} program Program to test
@param {string} family Family name
@return {boolean} Whether the program belongs to the family
Check if a program is in a family of instruments