justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Can you help with calculating pixels to move per bpm? When moving a playhead?
Asked by sam_lich (64.234.61.x) on June 26 2018, 10:01pm
Reply on June 27 2018, 1:41pm:
    If you are displaying with pixels/second:
    x_position = pixels_per_second * beat_position * 60 / bpm
    
    If you are displaying pixels/beat:
    x_position = pixels_per_beat * beat_position
    
    Yeah?

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS