Skip to content

Commit

Permalink
Remove numpy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Aug 9, 2024
1 parent 8aaf3a2 commit 2ba2d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isobar/timelines/lfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ..util import scale_lin_lin

import logging
import numpy as np
import math

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -75,7 +75,7 @@ def tick(self):
self.current_time += self.tick_duration

if self.shape == "sine":
value_unscaled = np.sin(np.pi * 2 * self.current_time * self.frequency)
value_unscaled = math.sin(math.pi * 2 * self.current_time * self.frequency)
value_scaled = scale_lin_lin(value_unscaled, -1, 1, self.min, self.max)
self.current_value = value_scaled
else:
Expand Down

0 comments on commit 2ba2d2f

Please sign in to comment.