mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:37:40 +02:00
extend multisound with pitch, volume, looping, offset in seconds
This commit is contained in:
@ -234,6 +234,12 @@ namespace HeavenStudio
|
||||
return secPerBeat * beat;
|
||||
}
|
||||
|
||||
// convert real seconds to beats
|
||||
public float GetRestFromRealTime(float seconds)
|
||||
{
|
||||
return seconds/secPerBeat;
|
||||
}
|
||||
|
||||
public void SetBpm(float bpm)
|
||||
{
|
||||
this.songBpm = bpm;
|
||||
|
Reference in New Issue
Block a user