Skip to content

Commit

Permalink
Fix interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
adosikas committed Nov 6, 2022
1 parent 4a6687b commit cebc929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/synth_mapping_helper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.9.0"
__version__ = "0.9.1"

from . import movement
from . import pattern_generation
Expand Down
2 changes: 1 addition & 1 deletion src/synth_mapping_helper/rails.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def interpolate_spline(data: "numpy array (n, m)", new_z: "numpy array (x)") ->
pchip_interpolate(padded_data[:, 2], padded_data[:, 0], new_z),
pchip_interpolate(padded_data[:, 2], padded_data[:, 1], new_z),
new_z,
), axis=-1)[1:-1]
), axis=-1)

def get_position_at(notes: SINGLE_COLOR_NOTES, beat: float, interpolate_gaps: bool = True) -> "numpy array (2)":
# single note
Expand Down

0 comments on commit cebc929

Please sign in to comment.