sonolus.py 0.6.5__py3-none-any.whl → 0.6.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,7 @@ from sonolus.script.internal.value import BackingValue, DataValue, Value
23
23
  from sonolus.script.num import Num
24
24
  from sonolus.script.pointer import _backing_deref, _deref
25
25
  from sonolus.script.record import Record
26
+ from sonolus.script.timing import TimescaleEase
26
27
  from sonolus.script.values import zeros
27
28
 
28
29
  _ENTITY_MEMORY_SIZE = 64
@@ -1320,6 +1321,9 @@ class StandardImportName:
1320
1321
  TIMESCALE_GROUP = "#TIMESCALE_GROUP"
1321
1322
  """The timescale group, for timescale change markers."""
1322
1323
 
1324
+ TIMESCALE_EASE = "#TIMESCALE_EASE"
1325
+ """The timescale ease type, for timescale change markers."""
1326
+
1323
1327
  JUDGMENT = "#JUDGMENT"
1324
1328
  """The judgment of the entity.
1325
1329
 
@@ -1358,6 +1362,9 @@ class StandardImport:
1358
1362
  TIMESCALE_GROUP = Annotated[EntityRef[Any], imported(name=StandardImportName.TIMESCALE_GROUP)]
1359
1363
  """The timescale group, for timescale change markers."""
1360
1364
 
1365
+ TIMESCALE_EASE = Annotated[TimescaleEase, imported(name=StandardImportName.TIMESCALE_EASE)]
1366
+ """The timescale ease type, for timescale change markers."""
1367
+
1361
1368
  JUDGMENT = Annotated[int, imported(name=StandardImportName.JUDGMENT)]
1362
1369
  """The judgment of the entity.
1363
1370
 
sonolus/script/timing.py CHANGED
@@ -1,7 +1,14 @@
1
+ from enum import IntEnum
2
+
1
3
  from sonolus.backend.ops import Op
2
4
  from sonolus.script.internal.native import native_function
3
5
 
4
6
 
7
+ class TimescaleEase(IntEnum):
8
+ NONE = 0
9
+ LINEAR = 1
10
+
11
+
5
12
  @native_function(Op.BeatToBPM)
6
13
  def beat_to_bpm(beat: float) -> float:
7
14
  """Get the bpm at the given beat.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sonolus.py
3
- Version: 0.6.5
3
+ Version: 0.6.7
4
4
  Summary: Sonolus engine development in Python
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
@@ -34,7 +34,7 @@ sonolus/build/level.py,sha256=yXsQtnabkJK0vuVmZ_Wr1jx37jFLgInCS7lTlXjkv9Q,706
34
34
  sonolus/build/node.py,sha256=gnX71RYDUOK_gYMpinQi-bLWO4csqcfiG5gFmhxzSec,1330
35
35
  sonolus/build/project.py,sha256=eHh4ioOjaFtt26bcefUuDZhMhFw8NXnjRTYPiEInQV8,6505
36
36
  sonolus/script/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
- sonolus/script/archetype.py,sha256=HBg2cS6ZDy0zBbHH8Ieke5QOWR71PwFCmtJie8zDXiI,48957
37
+ sonolus/script/archetype.py,sha256=mUBGvD7pMGeIEMLJfs-A5Bgd1CgG0Rce1vTJ7GUAXPE,49272
38
38
  sonolus/script/array.py,sha256=9uOUHZIDMyMT9q3APcXJWXWt97yG-AZoRlxwrvSY6SU,12367
39
39
  sonolus/script/array_like.py,sha256=hUDdDaP306kflVv9YomdHIMXogrVjxsBXCrLvB9QpuE,9681
40
40
  sonolus/script/bucket.py,sha256=SNqnfLGpnO_u-3LFFazdgzNk332OdDUIlmZHsuoVZuE,7674
@@ -62,7 +62,7 @@ sonolus/script/runtime.py,sha256=rJZM_KbKmnwpjhDEpR0DrM6EMSEu46apIErWA_pfLJA,333
62
62
  sonolus/script/sprite.py,sha256=kqFESwQjR-tTJ3EEMnXmMBxX-gCjtPYwF5Pgx1OInNM,16317
63
63
  sonolus/script/stream.py,sha256=qVljaCxJJtQs7aBwfUG15pYvztb4jFYzSLGDh5t4DTA,24713
64
64
  sonolus/script/text.py,sha256=wxujIgKYcCfl2AD2_Im8g3vh0lDEHYwTSRZg9wsBPEU,13402
65
- sonolus/script/timing.py,sha256=ZR0ypV2PIoDCMHHGOMfCeezStCsBQdzomdqaz5VKex0,2981
65
+ sonolus/script/timing.py,sha256=DklMvuxcFg3MzXsecUo6Yhdk7pScOJ7STwXvAiTvLKM,3067
66
66
  sonolus/script/transform.py,sha256=w5mr7hTuNYU0eTAdnN_wTVibaQa0mZrkl-W-kgewJxQ,21345
67
67
  sonolus/script/ui.py,sha256=DYPGWIjHj1IFPxW1zaEuIUQx0b32FJPXtiwCvrtJ6oo,7528
68
68
  sonolus/script/values.py,sha256=6iJG6h4IDlbcK8FH4GENSHOQc7C_7fCGa34wM80qToA,1629
@@ -86,8 +86,8 @@ sonolus/script/internal/simulation_context.py,sha256=LGxLTvxbqBIhoe1R-SfwGajNIDw
86
86
  sonolus/script/internal/transient.py,sha256=y2AWABqF1aoaP6H4_2u4MMpNioC4OsZQCtPyNI0txqo,1634
87
87
  sonolus/script/internal/tuple_impl.py,sha256=DPNdmmRmupU8Ah4_XKq6-PdT336l4nt15_uCJKQGkkk,3587
88
88
  sonolus/script/internal/value.py,sha256=OngrCdmY_h6mV2Zgwqhuo4eYFad0kTk6263UAxctZcY,6963
89
- sonolus_py-0.6.5.dist-info/METADATA,sha256=cU1Ruyl2Nt__z5kalCBRw6jvSiIyq-WcShZvUyM8KgY,302
90
- sonolus_py-0.6.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
91
- sonolus_py-0.6.5.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
92
- sonolus_py-0.6.5.dist-info/licenses/LICENSE,sha256=JEKpqVhQYfEc7zg3Mj462sKbKYmO1K7WmvX1qvg9IJk,1067
93
- sonolus_py-0.6.5.dist-info/RECORD,,
89
+ sonolus_py-0.6.7.dist-info/METADATA,sha256=UZzZ0PYBRM0JuGiVVT16UHvO6A5ZQ1Xbplv0t9Yt5yQ,302
90
+ sonolus_py-0.6.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
91
+ sonolus_py-0.6.7.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
92
+ sonolus_py-0.6.7.dist-info/licenses/LICENSE,sha256=JEKpqVhQYfEc7zg3Mj462sKbKYmO1K7WmvX1qvg9IJk,1067
93
+ sonolus_py-0.6.7.dist-info/RECORD,,