Midi Player and drag to DAW...almost There...Speed Buttons Success!
-
@Christoph-Hart @ulrik @MikeB A big thanks for your help and a big sorry for been late to respond.
I am working on a project away from my home(and of course my computer)
and it is impossible for yesterday and today to check and try your solutions.But tomorrow i will be back home so i will try everything.
-
Hi guys...Today (all day checking and trying) came a little bit closer by using the snippet that @ulrik suggested...Thanks a lot my friend @ulrik
In that snippet Half and Double were working (but not at the first hit)...i had to press twice and it was working but with x2 effect of what was expected...
It means that if i wanted the half speed i was receiving (after twice press) the 1/4 speed...and the opposite with double.After some trial and error i made that working at the first strike by commenting out
//MIDIPlayer.clear();
So now every time i hit the HalfTempo button i get the half speed or if i hit the DoubleTempo button i get the double speed...and if i drag n drop the midi to DAW everything is ok and converted as it should be.
Here is the snippet as it is now
HiseSnippet 2254.3oc4YstaaajElx1rcoRT2zhhE6OGHrnftwkQxwwIYCLhh0kDswNVvRI8FVDPSNRZZnlggbjqcCLPeI1+2Gg8QnOB6iRdC18LyvKCkTTTc2zTrKQfi3YNmy7ctNWXuHlGNNlEYTxZv4gXiRW0r+4T93licITitsLJ8AlCvwbi8OOzMNF6aTpz5OTLVIqMLjOu9966F3R8v4jLLdFi3gOfLgvyo1qwiIAAcb8wCHSz3dmFc8Xzlr.1T.GqaVyHz06EtivOwUv1Zl.HZ6S3rn9bWNN1nzF6y7Ou+X12SU7+LRL4j.r3k5F8AEoH2gE3KPrfpQywj.+do1argQIyd4V+5Jq+SMOj3Sxnm6Etlb.TtD59iRqsL3UWGd0Vc3slF79vzfiDdAtmiijvBHzsU2DB5Pp4znHLk2G+xo3BglWe+jgFDANYc5GvXgsot.P80IKT9I.q8CwEGnz5Es50eyVsdPYdK0PXTcHAXgUWJ8EfagEBQ+VtbWiR9l2ttCcvtO9NM2+ap8PGmu6w85OXTmu1Ad53zywo0o6P+gVO8r3N.kgCbb5185sezINGuuS68a+cAe0YibtSygAvnW+5.MGmWLtkiyot9sbtIuy.+8MDSrJqqp4q5c7Q+s1MG77NGcPq1Gew9twDuGF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tPh5YputUenWpGV7YDfsKJNYRo0D8CUuWKcC88wTe4K+a3IYv5h2KkLX8zA+MYNl35EwddxmkPjK+GjT.6lJ+TeVlGJdGUO6XIl0bpYH9PEO2yS3t+Bv+rXY19RHyMuDxrykPlacIjY2KgL29RHycVpLhEidvTNahpTDHzqs5HEkx9B0kV23+.lRZFUA
But unfortunately there are also 2 problems (again 2 problems...)
1) NormalTempo button does not work as it should be and it is obvious because
timeSign.NumBars *= 1.0;
and
e.setTimestamp(ts*1.0);
so either i have pressed the HalfTempo or the DoubleTempo button it leaves both values untouched.
The only working way should be for example to press the HalfTempo and having the half speed as it should be...then in order to have normal speed i should press the DoubleTempo button and then for double speed again the DoubleTempo button...and exactly the opposite the other way (if i wanted to go from double speed to normal and to half)...but it is not practical...that's why there is a NormalTempo button there.I think the only way is to somehow store the last value of every of the 3 buttons and to use some if statements for every callback...but i couldnt find a way...maybe its not so difficult and maybe i am blind.
2) The HalfTempo and DoubleTempo buttons must have a unique effect (half speed, or double speed compared to the normal speed)...I mean either i press for example the HalfTempo button once or twice or...10 times it must play at half speed...and the same about DoubleTempo button (play double speed)
But i think this can also be solved if i find a way to store the last value of every of the 3 buttons and procced as explained earlier.
-
After 2 days of trial and error trying to find a way to store the last values of the tempo buttons without any success, i managed to have everything setup correctly using a "not so elegand" way.
I used 9 buttons instead of 3...(3 for the Half tempos, 3 for the Normal tempos and 3 for the Double tempos)
Using Show-Hide functions and a rabbit hole of if statements i changed for every different button the callbacks accordingly so finally everything syncs to DAW and works as expected...I would prefer a more elegand way with less lines of code and stuff but for the moment it does exactly what it needs...
Here is the snippet for anyone who need something like this
HiseSnippet 2952.3oc6b0ubaabDGTRH1j1xwISlN8OugSmLTVLPjxzx10Uiokfnkp0GbDoccpGOdf.ORBaP.ZfiJRQQSyiReD5iPeD5iheCZ2C2AfCjffPL5qZGNYrMta261629a26CfK0cr0wtt1NRYx1739XoL2VtwwVjtq2UyvRZKUoLekbSrKQZsi6q45haIkIyrOmVWlryI486S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ua716LwXuz6S3Er8xuBkyKuQ61XcRnwNmbsWeweeIEMk6vLkaI2.1Un2ENyyP9CdOi9aZGhQOGagcnfZ4DtZq+mzd0V6m5q15d5Dn642HKWwFtZCbOilPDi38GT5kt3ZN3OtO0KKV951vdBiqpO8zZvfLVcZP2MnGc4Y8rGXE4ZFN7s4btzsSjIbGVm6Z8Ur8xK4vroybiAAyTejqn8cAZbu9l3MrNDaBKb1yF+VXkxs0FXR7KMJudGaK69cssLzEc56iINFc5fcDs8XGPOiPhbcg+tp6iMwZtQVY31.wSyAvI7ThEkSOVjj+5OJyLWDMXD84QR8Y+xLo991Cna2ZGMfndD6FV2.xkpioWkUXiTzyLIyLz7grmK4OweCrUKuG9uvOdkkoOmgWYY+JuT5idZ5N1uie0Xob4a5UBLts7tt4Yk2g9Lpr+1kkkKoTRhdYYemtNEt+A.ehWmkmBct+TnSkoPmGLE5rxTnyCmBcdTh5PmL5YCH18XghPA02fsY6LA+eIgLyJ8+v4yovp
If someone find a simpler solution will be welcome!
Thanks a lot guys for your help! -
@DimitrisSP I took a shot on this as well, I stored the original number of bars & timestamps in a panel, and used that information to switch between the tempos.
Try it and see if you can use itHiseSnippet 2490.3oc6Z0taabiEcFaOscTh5lVTrX+Igvh.o5jwxtNNI0aPTr9HQM9CAKkrsHHHX7HJItYD4jYnTsqgA5iReD1Gg9HruD6+yavtWRNiFNRxxZ8hjcw1c9giFx6k7vy8bI4PlVgLObTDKzvztyYAXCyaZ09LJeP0AtDpQyZhBNfzkzx28LbnwdmE3FEg6ZXZt5SEVXZulg748OdOWeWpGNsHCiWxHd38ICI7zRaU44De+FtcwcHC0rd6JM8XzpLe1H.MqZU1Hv06st8wG5JLaEKCyOodWBmE1l6xwQFlqsGq6YsGv9Qpx9WRhHm3iEuroQangTE2f42UfXQoFUGP761JYTGYXXZ0JkCVUwAekZHmTdJWbKYEnTOz4CyUVD71TGdkWd3shF79zjPjVDIND0rVy4DhpNJLDS4swuaDNSn48ONtpNg.IqW99LVPc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Ge.taaIWQovjrllcK7sH8i.7Nx5aR6hOEpoLLc0zwi8mId7nJMfgQaxOooh9iYHrOcoREzhF80noeMbpnwO+pYfPsJgtcIrmFxFEnokVRPjMkJEF+hNLBF8gGF5okov3m0gQkS+2.Fyd102x5.V2Q9hSCW+lVDWuTbEvr7YN+ZwYTSiH7yxbQDeHt9kkEtegUKB2av7w6JyAuha14CLdiuLq7V060C6wSA6ZVM99O72bkNT9bETtgUaXOnxq.PBjeu7czeFlJE8TLEGJH0MWvkL92V1KYLXoujwi73P2GeH4Q5Mbk13gjNPJSjdu8hHbiP76NVDk0KuJC1u37p58OtALHmqOsE6eTJWdxP1HZl68Y56UaskaSKWwsIt1+UeYme7lbX0kCtygAMaMyUleKPFOLvGWmNF6C6RQhwuD1VRO2Q97jRypqOfQYACXThmdP+XLOjzuONTG6yc.8DNOyE29UUNF6icixr929fvyMD3I70jK1b44hEEu9CVJ3hDIin+2XR8U+s4j5GyFI1T4AtfP8T0Ud2FlK0CKtcQX6hhOuxbEw7gp2Km7cEswztxW9GvSbkaJd2LtxMSp7iReLz0Kj8l3aqTnk+LYIv3lJu+eaqCDui1bxWGYU1org3hUdimmftuKvOy2mstF97MWCe19Z3y8tF9ry0vm6eM74AKzGwhQOYDmMTkJBEzpt5SJLm7+WE3au9m.vdL2n
-
@ulrik @Christoph-Hart btw, I tried and tried and tried to Console.print(trace(e)) the objects in eventList but I was not able to get any information about what they hide.
I realise the properties are functions right?
So, is there a way to Console.print those methods? -
@ulrik A big bravo to you my friend and thanks a lot for your help.
I checked your solution and it works like a charm.
It works exactly like my solution in the level of a user experience but you achieved that with a lot less code and stuff...so it is a much more elegant solution...Great!By the way how you found some special callbacks like
Storage.data.tStamps
and/or
Storage.data.numBars
Are they located in some API?...I did not find something like this searching...Maybe i searched in wrong directions?
-
@DimitrisSP I'm glad it could be of use!
All panel components have an object attached to them, named "data" so you can use them for storage of all kind of stuff, very handy indeed :) -
@DimitrisSP actually I could not find anything written about the panels object "data" in the documentation, I think I got it from some of Christoph examples.
-
-
@d-healey of course I could not find it, I didn't look close enough
thanks David -
- If you load a midi and drag n drop to any daw it works like a charm...but if you load another midi after that(or try to drag n drop the same midi for second time) it does not work...I noticed that if you close the interface from the edit button of the daw and load again the instrument you can drag n drop again any loaded midi file...and that story goes on...Or if you try it from Hise plugin in any daw the same thing happens...you can drag n drop any loaded midi file but in order to drag again a second midi file you have to close and open again the (interface preview, or Hit compile and it works...and so on)
Did you find a solution to this issue?
-
@ulrik Just made a pull request that fixes the issue. The fix I've made isn't clean so this has to be reworked anyway. For now, it should work as expected for both drag in/out, but the externalDrag object of the LAF will always be true so is useless until a better solution is found.
-
@ustk Beautiful! :)
It's not in the develop code yet I guess? -
@ulrik I have fixed the
externalDrag
flag so it works now.
Just wait for the pull request to be merged or pick to your own branch from it -
@ustk It works great in a compiled plugin, thanks!
-
-
@DanH You can create your own midi sequence
https://docs.hise.audio/scripting/scripting-api/midiplayer/index.htmlIf that was what you asked for?
-
@ulrik yes I think so. Would be great to be able to write a sequence in a sliderpack and then drag it into DAW...
-
@DanH Nothing prevents you from doing it, all the tools are there, just find/make the combination you need (sliderpack, panel, direct recording…)
-