Skip to content

Commit

Permalink
The "discrete" switch is now easier to understand what it is for.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Feb 18, 2024
1 parent 064025f commit bee5b13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.androidaudioplugin.residentmidikeyboard

import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
Expand Down Expand Up @@ -125,7 +126,7 @@ fun MidiKeyboardManagerMain(modifier: Modifier = Modifier) {
Column(modifier.verticalScroll(rememberScrollState())) {
Markdown("""
Resident MIDI Keyboard (RMK) is primarily designed to run as an overlay window.
Start over the notification dot (you will have to give the Notification permission first).
Start over the notification dot (you will have to give us the Notification permission first).
""")

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU && isNotificationPermissionRequired(context)) {
Expand Down Expand Up @@ -177,6 +178,10 @@ The knob controllers are for various non-note MIDI messages such as CCs, NRPNs,
Drag a knob vertically to change the value. They are typically ranged between 0 and 127.
It supports "fine" mode: hold 1 second on the knob to switch to it. Releasing the knob makes it back to normal mode.
The "discrete" button indicates whether the value change events should be sent *every time*.
For example, sending Program Change for *every value tick* does not make sense, so you want to uncheck it.
(The switch is not automatic because we do not know which CC by index or RPN/NRPN by index MSB/LSB is discrete.)
----
Below is an example use case for developers to demonstrate RMK SurfaceView and SurfaceControlViewHost.
Expand Down

0 comments on commit bee5b13

Please sign in to comment.