Quote:
Originally Posted by spk77
I tried to get text from MIDIPianoWindow with ControlGetText, but it didn't work. I think it is possible if note names are first loaded to a variable.
(part of GMdrums.txt)
35 B0 Acoustic Bass Drum
36 C1 Bass Drum 1
37 C#1 Side Stick
38 D1 Acoustic Snare
39 D#1 Hand Clap
40 E 1Electric Snare
41 F1 Low Floor Tom
42 F#1 Closed Hi-Hat
43 G1 High Floor Tom
(I don't know how to do it exactly but something like this might work):
1. get notenumber from control (Edit4 shows note name and number)
2. do some string splitting
3. if notenumber is e.g. 35 -> text to show = B0 Acoustic Bass Drum
|
I have an idea and it is from yours.
I don't think a string split will be needed...
just set varibles based on note number.
Since you are already picking that up - should be able to just
could be loaded based on a menu setting
if GM drums = 0
{
36 = 36
; other variables that are drum note numbers
}
else
{
36 = snare
}
I need a day or two to get back up to speed with ahk, it's been over a year since I looked at it. My syntax is all messed up, but it will come back quickly.
This tool is already very useful - what you've done.
I will used every time I need midi piano roll.
---
I get how the messages are being sent from SKAN -
what I don't get is how to incorporate his list into a menu that is usable from a script.
I pm'd him over at ahk forum.
I will post here if I get something from him.