Skip to content

Commit

Permalink
Add tuning parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tremeschin committed Mar 14, 2024
1 parent c72b2dd commit aacef4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SpectroNote/SpectroNote.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class SpectroNoteScene(ShaderScene):
black_ratio: float = 0.5
border_ratio: float = 0.1
vertical: bool = False
tuning: Hertz = 440

def build(self):
ShaderScene.build(self)
Expand All @@ -31,6 +32,7 @@ def build(self):
self.spectrogram.from_notes(
**(PIANO_RANGE if self.piano_range else FULL_RANGE),
piano=self.piano_bins,
tuning=self.tuning,
bins=1440,
)

Expand Down

0 comments on commit aacef4b

Please sign in to comment.