Simple monitor for displaying MIDI status for digital pianos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
783 B

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