code: function (symbol) {
    var parentheticals;
  
    if (symbol === '') return 'M'; // No symbol means major triad
  
    symbol = symbol.replace(/maj/i, 'M')
                   .replace(/∆/, 'M')
                   .replace(/min/i, 'm')
                   .replace(/^-/, 'm')
                   .replace(/dom/, '')
                   .replace(/^o/, 'dim')
                   .replace(/1\/2dim/, 'ø');
  
    // Remove parentheses unless they are significant, i.e. they contain an 11, or 13
    parentheticals = symbol.match(/\([^\)]*\)/g);
    _.each(parentheticals, function (parenthetical) {
      if (parenthetical.indexOf('11') === -1 && parenthetical.indexOf('13') === -1) {
        symbol = symbol.replace(parenthetical, parenthetical.slice(1, -1));
      }
    });
  
    return symbol;
  }
docs: Replace aliases in chord symbol