#AkaiHammerhead # convert Akai Mini Mk 3 default pads to Ruismaker notes # Hammerhead uses the Ruismaker "black notes" convention. # Akai Mini Mk 3: c..g, 48..55 # Hammerhead: 49, 51, 54, 56, 58, 61, 63, 66. If load Set name AkaiHH # script name displayed by host # Use L array as mapping table. The $ makes values decimal. # Left numbers are Akai notes, right are Ruismaker. Ass L$48 = $49 Ass L$49 = $51 Ass L$50 = $54 Ass L$51 = $56 Ass L$52 = $58 Ass L$53 = $61 Ass L$54 = $63 Ass L$55 = $66 End # Initialization ——————————————————————————— # MIDI messages other than mapped notes are passed unchanged # Updates the MIDI note value, leaving velocity unchanged. # MIDI message is in M0, M1, M2. # LM1 is the value at position M1 in L, like L[M1] in C. If M0 < A0 # handle Note Off and On, any channel if LM1 > 0 # only change mapped notes ass M1 = LM1 # update input note end End