Boost Midi velocity factors
This commit is contained in:
parent
69457f21e1
commit
937837125c
1 changed files with 7 additions and 7 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
package mg.dot.feufaro.midi
|
package mg.dot.feufaro.midi
|
||||||
|
|
||||||
enum class Dynamic(val velocity: Int, val label: String, val factor: Float) {
|
enum class Dynamic(val velocity: Int, val label: String, val factor: Float) {
|
||||||
PPP(16, "ppp", 16f / 80f),
|
PPP(16, "ppp", 0.55f),
|
||||||
PP (33, "pp", 33f / 80f),
|
PP (33, "pp", 0.66f),
|
||||||
P (49, "p", 49f / 80f),
|
P (49, "p", 0.77f),
|
||||||
MP (64, "mp", 64f / 80f),
|
MP (64, "mp", 0.88f),
|
||||||
MF (80, "mf", 1.00f),
|
MF (80, "mf", 1.00f),
|
||||||
F (96, "f", 96f / 80f),
|
F (96, "f", 1.15f),
|
||||||
FF (112, "ff", 112f / 80f),
|
FF (112, "ff", 1.35f),
|
||||||
FFF(126, "fff", 126f / 80f);
|
FFF(126, "fff", 1.60f);
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun fromVelocity(v: Int): Dynamic =
|
fun fromVelocity(v: Int): Dynamic =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue