Simple monitor for displaying MIDI status for digital pianos.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

41 řádky
691 B

  1. export const RANGES = {
  2. 'C3-C5': '48|72',
  3. 'C3-C6': '48|84',
  4. 'C2-C6': '36|84',
  5. 'C2-C7': '36|96',
  6. 'E1-E7': '28|100',
  7. 'E1-G7': '28|103',
  8. 'A0-C8': '21|108',
  9. 'C0-B9': '12|119',
  10. 'Full MIDI': '0|127'
  11. }
  12. export const SCALE_FACTORS = {
  13. '1x': '1',
  14. '2x': '2'
  15. }
  16. export const NATURAL_KEY_WIDTHS = [
  17. 16,
  18. 18,
  19. 20
  20. ]
  21. export interface Config {
  22. range: string
  23. queryDeviceKey: string
  24. scaleFactor: string
  25. naturalKeyColor: string
  26. accidentalKeyColor: string
  27. naturalKeyWidth: string
  28. }
  29. export const defaultConfig: Config = {
  30. range: '21|108',
  31. queryDeviceKey: '',
  32. scaleFactor: '2',
  33. naturalKeyColor: '#e3e3e5',
  34. accidentalKeyColor: '#35313b',
  35. naturalKeyWidth: '18'
  36. }