HISE Logo Forum
    • Categories
    • Register
    • Login

    Changed behaviour in MIDIPlayer?

    Scheduled Pinned Locked Moved Bug Reports
    4 Posts 2 Posters 277 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
      last edited by

      @Christoph-Hart , this code worked like a charm to setPlaybackPosition(value) while the MIDIPlayer was playing, but with this latest "script node" this doesn't work anymore, the player just jumps back to the start and plays from there.
      Is it supposed behaviour or is something broken?
      If it is supposed, how can I control the playback position while the player is running?

      inline function onDemoDisplayKnbControl(component, value)
      {
          if(value && MIDIPlay.getPlaybackPosition() > 0)
          {
              MIDIPlay.setPlaybackPosition(value); 
          }
      }
      
      Content.getComponent("DemoDisplayKnb").setControlCallback(onDemoDisplayKnbControl);
      

      Another question, is it possible to set the MIDIPlayer on "pause"?

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Ooopsies, that might have slipped in when I rewrote the MIDI Player logic to support changing the loop length on the fly. I'll take a look at it.

        ulrikU 2 Replies Last reply Reply Quote 2
        • ulrikU
          ulrik @Christoph Hart
          last edited by

          @Christoph-Hart 👍

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

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

            @Christoph-Hart It's working now with the latest script node code :)
            Thank you!

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            47

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts