drumscript.notation_generator.helpers

Helper functions for musical calculations.

Functions

calculate_cents_difference

Calculates the difference between two frequencies in cents.

format_drum_event

Formats a classified drum event into a dictionary containing notation-specific information using the DRUM_NOTATION_MAP imported from constants.py

get_note_duration_name

Converts a duration in beats to a standard musical note name (e.g., 'quarter', 'eighth').

round_to_nearest_subdivision

Rounds a time value (in beats) to the nearest specified rhythmic subdivision.