Table Based Midi Browser With Clicks & Keypresses + Other things?
-
I don't quite understand. I sent a compressed file on it. Can you please help me modify it
-
This post is deleted! -
@ulrik yup that did it! What about the colors/search function? Any thoughts there?
-
-With the colors I just need the selection to be more prominent…for whatever reason I can’t seem to get the table row highlight color to change…when you are watching it you can tell when it’s moving…but when you take your eyes off of it you don’t really know where you’re at…not too much of a big deal cause in the midi window you can see the name…but I’m thinking about the end user experience and little stuff like that would drive me crazy…lol
-the search filtering is dope but it’s falling apart because it’s not actually loading what you are clicking on…it’s loading whatever is in the default order of the table…so row one is always midi file 1no matter what the search results say…
-
@johnmike to fix with the colours you need to use laf, (lookAndFeel)
// laf const TBLLaf = Content.createLocalLookAndFeel(); TBLLaf.registerFunction("drawTableCell", function(g, obj) { Console.print(trace(obj)); // this will reveal all you can do with this function g.fillAll(obj.bgColour); g.setColour(obj.selected ? obj.itemColour : obj.itemColour2); g.fillRoundedRectangle(obj.area, 2); g.setColour(obj.textColour); g.setFont("oxygen", 14); g.drawAlignedText(obj.text, obj.area, "centred"); }); GrooveBrowser.setLocalLookAndFeel(TBLLaf);
Read about it in the documentation
https://docs.hise.audio/scripting/scripting-api/scriptedviewport/index.html#settablemode -
@GUJIAN @johnmike
I took GUJIAN's project and modified it a bit, based on your questions- A MidiPlayer callback that will reset the "Play" button when stopped
- "drawTableCell" laf, for the colouring
- read midi files from the MidiFiles folder and dynamically distribute the information to the "TableRowData"
(the FifthID Key signature, is not possible to extract from the midi files so you need to set them in an other way, I have them in an array here) - implemented this to be able to load the selected midi file with the Return key
GrooveBrowser.setEventTypesForValueCallback(["ReturnKey"]);
- Changed the "index" based way to load midi files to "name" based, it helped to make the search function to work better
All this information of how to do it was retrieved from the documentation, even in Hise autocomplete function, you can find the links to the documentation
thanks for that @Christoph-Hart
HiseSnippet 3970.3oc25j1baibkf1l1lbxgmolJUpJeX6k0tSnFoAlTj5vN0DKdpCSJQQRqKWNSARzf.Rfno.ZRIJGsUp7KK+D1eJy2yGRduFGDfGRxNG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Fg6vslyJ8y8VIwQcHVnuHdPX0BWs7gzS+r34WciMWay7alaSIbmS7s1GcmyHh3yhtvhByEK7yi6Vj9BW08uWCnzoa0gYqRsapnZLzIr2KFGDvCOeQ7PBOdndXlPRZb3Gd.LAzEMrNgWPeYaQrmzrb2W6wcUgtK3vFEsw2TOxjuHdXPY+GjWEwlwVMNtePpfbH6phGx0j5uWUbVWoDcICijI4sRKVHCKLOYQ9YeY7odGOgEixgr6S439rEQvmGW76rgnyewLp+iq64uItnUKz+rrsROx2PvZtEuh5oTXRpynv98yKJZglpeYTS0mhqsqcI68XWl0rLm2m8KhWmoNzDOwmvWsF79D4M.r+Uj2oM9dqsbL3iibKT9m08s4gxheY7FF7t5ymGezb3QLL+eA7n2sT5mGuhlFz4yDF7Iwqdx+ZtRRgW9eg6x+EwaAUOJtM.hE+WIdlbrxHJYapE0FUdYuiaL1+6C8FiM3AeiwNnKGV911JVNCXNQHbKZei1PXRjzbuygV0ldYSzZFFdIFdtiyYne7MUAgbtyoEdNjB2hB8YCshbwOl9BS8jGVoV2yMW6I+etat1OAB1iEqwLW2wW.tt8GXRqXMhZB0BJ3wuBJ9SbcE7gF0WtNyhMPmYYzMrgtIEZhpWOpcXdetBTANOxsv6q2pI0jpD1o8+ZK7MJpXiu1uOScQ1Gtt3trW+53trKAC.I+zMI8i++2IocuxA8pq.NgvV6w2eX+VPtwtT7Zh.kBgM4E6QX9M2my32STKpkp3g+F7wavr3yw7FLq+f+aYM5qz0l8Ccc6uC8Set.BH2Vhq1Wh30wmIYmsqP7vo+gtciRpYl3petSL2m6Dy+4Nw09bm35etSbiO2It48OQbSnBC4L2W.KdAfaTwsxxXAW.4XOV5uCQRLUJA
-
@ulrik yup this works perfect...I hate that it can't pull the Key/Time signature data from the files...because I literally have over 300 midi files lol...but I was able to copy this into my current project everything is working the way that I want it to...and im gonna just be entering in the table data manually! thanks so very much!
-
-
@johnmike said in Table Based Midi Browser With Clicks & Keypresses + Other things?:
yup this works perfect...I hate that it can't pull the Key/Time signature data from the files
Does this help?
https://docs.hise.dev/scripting/scripting-api/file/index.html#loadmidimetadata
-
@Christoph-Hart is this the same data as you get when you use
MIDIPlayer.getTimeSignature();
or does it contain more information?
-
@ulrik same
-
Currently, it is not possible to drag MIDI files into Cubase 13, right
If this function can be implemented, it would be convenient to use
-
@GUJIAN said in Table Based Midi Browser With Clicks & Keypresses + Other things?:
Currently, it is not possible to drag MIDI files into Cubase 13, right
Wrong, you can drag midi into cubase for sure, here I drag midi from a plugin into a track in Cubase 12
-
@GUJIAN Oh I guess misunderstood your question, you mean if you can drag midi from this snippet, no it's not implemented
-
This post is deleted! -
@GUJIAN does it work if you compile your project as a vst?
-
This post is deleted! -
@GUJIAN It could be that MIDI files aren't embedded in expansions. Perhaps it's possible for it to read from the MidiFiles.dat if you add it to the expansion's AppData folder.
-
@d-healey No, I don't know what the situation is