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: Another reascript question (sorry!) : What does GetTempoMatchPlayRate do? (I do not understand from the doc description) What are the srcscale and the mult variables? Thanks!
Asked by amagalma (91.240.243.x) on January 27 2022, 6:24pm
Reply on January 28 2022, 5:37am:
    It calculates the playrate to match the source's embedded or inferred tempo to the project tempo


Comments:
  • Posted by amagalma (91.140.101.x) on January 28 2022, 8:16am:
    Thanks! And what do the two variables mean? What are the source scale and the multiplier and how do I find them?

  • Posted by amagalma (194.150.167.x) on January 28 2022, 3:36pm:
    reaper.GetTempoMatchPlayRate( source, 1, item_pos, 1 ) does the job but still I do not know why I had to pass 1 for the source scale and 1 for the multiplier...

  • Posted by amagalma (194.150.167.x) on January 28 2022, 4:02pm:
    For the source scale I pass this : take_playrate*(item_len/source_len) . And for multiplier the take_playrate. Correct?

  • Posted by Justin on January 29 2022, 6:07am:
    Normally I think you'd just pass 1 for each of those?

  • Posted by amagalma (91.140.101.x) on January 30 2022, 7:52am:
    Yes, but that doesn't work always (like when the item already has its playrate changed, or the take has an offset). I think I be figured it out. Thanks! :)


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

    Comment:    

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