sonolus.script.timing¶
beat_to_bpm(beat)
¶
Get the bpm at the given beat.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
beat
|
float
|
The beat to get the bpm at. |
required |
Returns:
Type | Description |
---|---|
float
|
The bpm at the given beat. |
beat_to_starting_beat(beat)
¶
Get the starting beat of the bpm section at the given beat.
I.e. the beat of the bpm change at or immediately before the given beat.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
beat
|
float
|
The beat to get the starting beat of the bpm section at. |
required |
Returns:
Type | Description |
---|---|
float
|
The starting beat of the bpm section at the given beat. |
beat_to_starting_time(beat)
¶
Get the starting time of the bpm section at the given beat.
I.e. the time of the bpm change at or immediately before the given beat.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
beat
|
float
|
The beat to get the starting time of the bpm section at. |
required |
Returns:
Type | Description |
---|---|
float
|
The starting time of the bpm section at the given beat. |
beat_to_time(beat)
¶
Get the time at the given beat.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
beat
|
float
|
The beat to get the time at. |
required |
Returns:
Type | Description |
---|---|
float
|
The time at the given beat. |
time_to_scaled_time(time)
¶
Get the scaled (timescale adjusted) time at the given time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time
|
float
|
The time to get the scaled time at. |
required |
Returns:
Type | Description |
---|---|
float
|
The scaled (timescale adjusted) time at the given time. |
time_to_starting_scaled_time(time)
¶
Get the starting scaled (timescale adjusted) time at the given time.
I.e. the scaled time of the timescale change at or immediately before the given time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time
|
float
|
The time to get the starting scaled time at. |
required |
Returns:
Type | Description |
---|---|
float
|
The starting scaled time at the given time. |
time_to_starting_time(time)
¶
Get the starting time of the timescale section at the given time.
I.e. the time of the timescale change at or immediately before the given time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time
|
float
|
The time to get the starting time of the timescale section at. |
required |
Returns:
Type | Description |
---|---|
float
|
The starting time of the timescale section at the given time. |
time_to_timescale(time)
¶
Get the timescale at the given time.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time
|
float
|
The time to get the timescale at. |
required |
Returns:
Type | Description |
---|---|
float
|
The timescale at the given time. |