mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:37:40 +02:00
Crop Stomp: Implementation progress
This commit is contained in:
@ -214,11 +214,21 @@ namespace RhythmHeavenMania
|
||||
return a;
|
||||
}
|
||||
|
||||
public float GetBeatFromPosition(float position, float startBeat, float length)
|
||||
{
|
||||
return Mathp.DeNormalize(position, startBeat, startBeat + length);
|
||||
}
|
||||
|
||||
public float GetPositionFromMargin(float targetBeat, float margin)
|
||||
{
|
||||
return GetPositionFromBeat(targetBeat - margin, margin);
|
||||
}
|
||||
|
||||
public float GetBeatFromPositionAndMargin(float position, float targetBeat, float margin)
|
||||
{
|
||||
return GetBeatFromPosition(position, targetBeat - margin, margin);
|
||||
}
|
||||
|
||||
public float GetSongPosFromBeat(float beat)
|
||||
{
|
||||
return secPerBeat * beat;
|
||||
|
Reference in New Issue
Block a user