Simple monitor for displaying MIDI status for digital pianos.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

106 righe
3.2 KiB

  1. <!DOCTYPE html>
  2. <html lang="en-PH" style="--size-close-button: 2rem;">
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="icon" href="%PUBLIC_URL%/favicon.png" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta name="theme-color" content="#000000" />
  8. <meta
  9. name="description"
  10. content="Web site created using create-react-app"
  11. />
  12. <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
  13. <!--
  14. manifest.json provides metadata used when your web app is installed on a
  15. user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
  16. -->
  17. <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
  18. <!--
  19. Notice the use of %PUBLIC_URL% in the tags above.
  20. It will be replaced with the URL of the `public` folder during the build.
  21. Only files inside the `public` folder can be referenced from the HTML.
  22. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
  23. work correctly both with client-side routing and a non-root public URL.
  24. Learn how to configure a non-root public URL by running `npm run build`.
  25. -->
  26. <link rel="stylesheet" href="%PUBLIC_URL%/style.css" />
  27. <title>Piano MIDI Monitor</title>
  28. </head>
  29. <body>
  30. <button
  31. id="close"
  32. class="theme button"
  33. style="
  34. display: block;
  35. position: fixed;
  36. line-height: 0;
  37. top: 0;
  38. right: 0;
  39. padding: 0;
  40. border: 0;
  41. height: var(--size-close-button, 2rem);
  42. width: var(--size-close-button, 2rem);
  43. text-align: center;
  44. outline: 0;
  45. "
  46. >
  47. <span
  48. style="
  49. display: block;
  50. background-color: currentColor;
  51. width: 50%;
  52. height: 0.125rem;
  53. margin: 0 auto;
  54. transform: rotate(45deg);
  55. "
  56. ></span>
  57. <span
  58. style="
  59. display: block;
  60. background-color: currentColor;
  61. width: 50%;
  62. height: 0.125rem;
  63. margin: 0 auto;
  64. margin-top: -0.125rem;
  65. transform: rotate(-45deg);
  66. "
  67. ></span>
  68. </button>
  69. <noscript>You need to enable JavaScript to run this app.</noscript>
  70. <!--
  71. This HTML file is a template.
  72. If you open it directly in the browser, you will see an empty page.
  73. You can add webfonts, meta tags, or analytics to this file.
  74. The build step will place the bundled scripts into the <body> tag.
  75. To begin the development, run `npm start` or `yarn start`.
  76. To create a production bundle, use `npm run build` or `yarn build`.
  77. -->
  78. <script>
  79. ((window, electron) => {
  80. const { ipcRenderer, } = electron
  81. const EVENTS = [
  82. 'note',
  83. 'pedal',
  84. 'spanchange',
  85. ]
  86. EVENTS.forEach(event => {
  87. ipcRenderer.on(event, (_, message) => {
  88. window.postMessage({
  89. event,
  90. message
  91. })
  92. })
  93. })
  94. window.document.getElementById('close').addEventListener('click', () => {
  95. ipcRenderer.send('quit')
  96. })
  97. })(window, require('electron'))
  98. </script>
  99. </body>
  100. </html>