-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: First pass at aditing UI for high-res mode.
This adds: - a `deviceCapability` for highResolution to the newer devices. - front-end UI for displaying that in edit fields - a brief explanation of what this is, within the editor.
- Loading branch information
Showing
6 changed files
with
100 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script lang="ts"> | ||
import HighResolutionExplanation from "./high-resolution.md"; | ||
</script> | ||
|
||
<details> | ||
<summary>What is High Resolution mode?</summary> | ||
<HighResolutionExplanation /> | ||
</details> | ||
|
||
<style> | ||
details > summary { | ||
font-weight: bold; | ||
cursor: pointer; | ||
} | ||
details { | ||
max-width: 80ch; | ||
} | ||
:global(details p) { | ||
line-height: 1.4; | ||
} | ||
:global(code) { | ||
font-size: 1rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
The MIDI standard for a continuous controller sends 7-bit data - 0-127. | ||
|
||
"High resolution" CC data can send 14-bit data (0-16384). | ||
|
||
However: **support for this is very limited**. _If_ you know you need it or can use it, go ahead, it'll work. | ||
|
||
If you think it sounds cool, but don't know if your instruments or tools support it: you probably want to send standard 7-bit data. **Don't just click high resolution because it sounds better.** Unless you know it'll work, it might have unintended consequences. | ||
|
||
#### How high-resolution CCs work | ||
|
||
The 14 bits of data are split into two chunks, MSB/LSB style: one 7-bit chunk for bits 8-14, and one for bits 1-7. The higher significant chunk is sent on continuous controller number `x`; the lower significant chunk is sent on `x+32`. For instance, if you set a controller to send high-res data on CC `32` in the editor above, you'll send the higher chunk on CC `32` and, simultaneously, the lower chunk on CC `64`. (This is why you should only use this feature if you think you need it: otherwise, you're going to be sending extra CCs you might not want.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters