HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Tags
    3. playhead
    Log in to post
    • All categories
    • M

      Changing playback position of audio looper

      Watching Ignoring Scheduled Pinned Locked Moved Scripting looper playhead
      2
      0 Votes
      2 Posts
      80 Views
      LindonL

      @marbey consider replacing your Audio Looper with a Sampler and using a SampleStart modulator there, remember the sample start modulator will work in percentages of the range you set up for the sample (wav file) itself in the sample editor

    • Matt_SFM

      Jump to DAW playback position

      Watching Ignoring Scheduled Pinned Locked Moved Solved Scripting transport daw playhead midiplayer
      10
      0 Votes
      10 Posts
      443 Views
      Matt_SFM

      @ulrik Ok, I'm not completely useless then 😂

      It's the first time I'm using midi clips in a plugin so...
      Thank you again for your help, it's much appreciated !

    • d.healeyD

      Waveform how to get playback position?

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Scripting playhead waveform
      15
      0 Votes
      15 Posts
      897 Views
      ulrikU

      @d-healey said in Waveform how to get playback position?:

      @ulrik Yes, if I had an audio file, but I have a waveform control linked to a sampler.

      Did you find a solution for this?

    • amounraA

      Engine.getPlayhead() functionality

      Watching Ignoring Scheduled Pinned Locked Moved Feature Requests playhead transport
      23
      1 Votes
      23 Posts
      3k Views
      Christoph HartC

      @Christoph-Hart found the culprit:

      // if this is non-zero it means that the buffer coming // from the DAW was split into chunks for processing // so we need to update the playhead to reflect the // "real" position for the given buffer if(offsetWithinProcessBuffer != 0) { newTime.timeInSamples += offsetWithinProcessBuffer; newTime.timeInSeconds += (double)offsetWithinProcessBuffer / processingSampleRate; const auto numSamplesPerQuarter = (double)TempoSyncer::getTempoInSamples(newTime.bpm, processingSampleRate, 1.0f); newTime.ppqPosition += (double)offsetWithinProcessBuffer / numSamplesPerQuarter; }