export type ITypeContentItem = {
  name: IVocals
  direction: 'vertical' | 'transverse'
  width?: string
  paddingLeft?: string
  paddingRight?: string
}

type ITypeContent = {
  [key: string]: ITypeContentItem
}

export type IVocals =
  | 'flute'
  | 'clarinet'
  | 'saxophone'
  | 'trumpet'
  | 'horn'
  | 'trombone'
  | 'up-bass-horn'
  | 'small-drum'
  | 'tuba'
  | 'piccolo'
  | 'hulusi-flute'
  | 'ocarina'
  | 'pan-flute'
  | 'melodica'

export const typeById: ITypeContent = {
  2: {
    name: 'flute',
    direction: 'transverse',
  }, // 长笛
  4: {
    name: 'clarinet',
    direction: 'vertical',
    width: '1rem',
    paddingLeft: '0rem',
    paddingRight: '1rem',
  }, // 单簧管
  5: {
    name: 'saxophone',
    direction: 'vertical',
    width: '3rem',
  }, // 萨克斯
  6: {
    name: 'saxophone',
    direction: 'vertical',
    width: '3rem',
  }, // 中音萨克斯
  12: {
    name: 'trumpet',
    direction: 'transverse',
  }, // 小号
  13: {
    name: 'horn',
    direction: 'vertical',
    width: '3.5rem',
  }, // 圆号
  14: {
    name: 'trombone',
    direction: 'transverse',
  }, // 长号
  15: {
    name: 'up-bass-horn',
    direction: 'vertical',
    width: '3rem',
  }, // 上低音号
  17: {
    name: 'tuba',
    direction: 'vertical',
    width: '3.4rem',
  }, // 大号
  // 23: {
  //   name: 'small-drum',
  //   direction: 'vertical'
  // }, // 打击乐
  120: {
    name: 'piccolo',
    direction: 'vertical',
    width: '1rem',
    paddingRight: '0.8rem',
  }, // 短笛
  136: {
    name: 'hulusi-flute',
    direction: 'vertical',
  }, // 葫芦丝
  135: {
    name: 'pan-flute',
    direction: 'vertical',
  }, // 排箫
  134: {
    name: 'ocarina',
    direction: 'vertical',
  }, // 陶笛
  137: {
    name: 'melodica',
    direction: 'transverse'
  }, // 口风琴
}
