Start play Song issue!

3.57K viewsCSS Questionsstart play from here
0

Good afternoon everyone!

Sorry for the many questions, but I’m trying to finalize the script once and for all. I managed to solve the timeline scrubbing issue thanks to the script I downloaded here. I just had to reduce the number of beats, otherwise the locator was moving too fast. Now I can scrub through the timeline and start the song from that point… unless I press stop twice! At that point, it no longer matters where the locator is — the song will always start from where the small triangular play marker is positioned in the timeline, which in this case is at the beginning.

On the Minilab 3, when you move through the timeline using the knob and press play on the same knob, the small play marker is automatically positioned at that point.

Is there a way to achieve the same result in CSS?

Basically, when you press play, the marker from which playback always starts should be updated to the current locator position.

Thanks again, and I hope someone can help me!

Roberto Tafuro Answered question
1

It’s finally done! I got it to work with a Play and a Pause button in Gate/Momentary mode (sends velocity 127 on press and 0 when you let go).

The Play Button always starts at the current position of your scrollwheel, and the Pause Button either Stops or Keeps playing on the current play Position. And you always ignore the green triangle.

Just switch out the Listeners to your own buttons/wheel, and use the right controller Template, and it should work.

The Problem:

If your song is playing and you move your playhead with your Scrollwheel, the green triangle appears and stops you from being able to play from where you want.

Solution:

If you select a cue point, you ignore the green triangle, so following steps need to happen in the right order when you press the Play Button:

  1. Stop Playing                               (in order to be able to reset the playheads position)
  2. Scroll Arranger to the right once  (scrolling resets the playheads position to where you want it to be)
  3. Scroll Arranger to the left once    (to get back to original Position)
  4. Set Cue Point
  5. Jump to prev. Cue point
  6. Jumo to next Cue point              (now the current playhead is selected and green triangle dissapears)
  7. Delete Cue Point
  8. Play

Step 1. happens when pressing Play on Velocity 127

Step 2. and 3. happen in a different Reaction, that waits for the song being stopped in Step 1, that was the only way i Found to make everything properly happen in the right order.

Step 4. – 8. Happen when you let go of the Play Button again (velocity 0)

So now, in one press all of that happens instantly and everything works as intended. This might also work on a Toggle button, but i made it work for Gate/Momentary because that way i can also use both Play and Pause Buttons with different functions when i hold a shift button.

Deanchik Answered question
You are viewing 1 out of 14 answers, click here to view all answers.