Pegagittt
(Pegagit)
September 2, 2022, 11:31pm
#1
local number = 11
local numberInsideNumber = 5.5
Lets say we have 11 Numbers and i select Number 5.5 inside 11. This would be the Middle of number. How could i go to the middle of the Sound TimePosition with it?
Explain:
Number:
1 number ------------- 11 number
------------------------
1 sec ---------------- 30 sec
Sound:
nicemike40
(nicemike40)
September 2, 2022, 11:37pm
#2
I’m sorry, it’s hard to understand what you’re trying to do.
Can you provide more details, context, and working code examples?
Pegagittt
(Pegagit)
September 2, 2022, 11:44pm
#3
The Sound is 10 seconds long, The Variable Number has the Numbers to 10 and i select the 5 from Number, then its going to Sound.TimePosition 5. But how can i do that as a Example when the Sound is 15 sec long and the Variable Number is 43?
concaten8
(Decadecimal)
September 3, 2022, 12:00am
#4
Sound.TimePosition = (numberInsideNumber / number) * Sound.TimeLength
This might be what you mean? Not entirely sure what you are asking though as it is a tad unclear.
The above should work for any case where numberInsideNumber <= number
Pegagittt
(Pegagit)
September 3, 2022, 12:02am
#5
I will try it now and i mean when Sound is 20 sec long and number is 4 and i select 3 It should go to 15 sec
1 Like
concaten8
(Decadecimal)
September 3, 2022, 12:02am
#6
In this case what I have just said will work.
concaten8
(Decadecimal)
September 3, 2022, 1:22am
#7
Did my method work for you? Would appreciate a juicy solution tick if so.
Pegagittt
(Pegagit)
September 3, 2022, 1:27am
#8
Sorry i forgott yes it worked
1 Like
Pegagittt
(Pegagit)
September 3, 2022, 2:57am
#9
Hey do u also know how to take the Number from Timeposition in the Middle? Like just print the number in the Middle of TimePosition
concaten8
(Decadecimal)
September 3, 2022, 2:59am
#10
Please elaborate? Getting the “middle” of a number isn’t a clear way to describe it.
1 Like
Pegagittt
(Pegagit)
September 3, 2022, 3:00am
#11
Like if TimeLength is 11 seconds long take the Number 5.5
concaten8
(Decadecimal)
September 3, 2022, 3:02am
#12
If you just want half of the current TimePosition (?) then
print(Sound.TimePosition / 2)