HISE Logo Forum
    • Categories
    • Register
    • Login

    Midi Player and drag to DAW...almost There...Speed Buttons Success!

    Scheduled Pinned Locked Moved Scripting
    31 Posts 7 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ulrikU
      ulrik @ulrik
      last edited by

      @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?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      1 Reply Last reply Reply Quote 0
      • DimitrisSPD
        DimitrisSP @ulrik
        last edited by

        @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?

        ulrikU 2 Replies Last reply Reply Quote 0
        • ulrikU
          ulrik @DimitrisSP
          last edited by

          @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 :)

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          1 Reply Last reply Reply Quote 1
          • ulrikU
            ulrik @DimitrisSP
            last edited by

            @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.

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @ulrik
              last edited by

              @ulrik https://docs.hise.audio/scripting/scripting-in-hise/scriptpanel.html#storing-data

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              ulrikU 1 Reply Last reply Reply Quote 1
              • ulrikU
                ulrik @d.healey
                last edited by

                @d-healey of course I could not find it, I didn't look close enough đź‘€
                thanks David

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @DimitrisSP
                  last edited by

                  @DimitrisSP

                  1. 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?

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @ulrik
                    last edited by

                    @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.

                    PR: 170c3e02678e0696e857b7a4bf5d549164fe727b

                    Can't help pressing F5 in the forum...

                    ulrikU 1 Reply Last reply Reply Quote 3
                    • ulrikU
                      ulrik @ustk
                      last edited by

                      @ustk Beautiful! :)
                      It's not in the develop code yet I guess?

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk
                        last edited by ustk

                        @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

                        Can't help pressing F5 in the forum...

                        ulrikU 1 Reply Last reply Reply Quote 3
                        • ulrikU
                          ulrik @ustk
                          last edited by

                          @ustk It works great in a compiled plugin, thanks!

                          Hise Develop branch
                          MacOs 15.3.1, Xcode 16.2
                          http://musikboden.se

                          DanHD 1 Reply Last reply Reply Quote 1
                          • DanHD
                            DanH @ulrik
                            last edited by

                            @ulrik @ustk is there a way to script the notes in the midi player?

                            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                            https://dhplugins.com/ | https://dcbreaks.com/
                            London, UK

                            ulrikU 1 Reply Last reply Reply Quote 0
                            • ulrikU
                              ulrik @DanH
                              last edited by

                              @DanH You can create your own midi sequence
                              https://docs.hise.audio/scripting/scripting-api/midiplayer/index.html

                              If that was what you asked for?

                              Hise Develop branch
                              MacOs 15.3.1, Xcode 16.2
                              http://musikboden.se

                              DanHD 1 Reply Last reply Reply Quote 1
                              • DanHD
                                DanH @ulrik
                                last edited by

                                @ulrik yes I think so. Would be great to be able to write a sequence in a sliderpack and then drag it into DAW...

                                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                https://dhplugins.com/ | https://dcbreaks.com/
                                London, UK

                                ustkU 1 Reply Last reply Reply Quote 0
                                • ustkU
                                  ustk @DanH
                                  last edited by

                                  @DanH Nothing prevents you from doing it, all the tools are there, just find/make the combination you need (sliderpack, panel, direct recording…)

                                  Can't help pressing F5 in the forum...

                                  1 Reply Last reply Reply Quote 2
                                  • CatABCC CatABC referenced this topic on
                                  • First post
                                    Last post

                                  44

                                  Online

                                  1.7k

                                  Users

                                  11.7k

                                  Topics

                                  102.3k

                                  Posts