sim-lib-music-serial 0.1.0

Immutable serial plans with stable row and event identity, explicit provenance, and validated partial temporal order.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Compatibility wrapper for the default strict chromatic serial realizer.

use crate::{
    RealizationContext, SerialPlan, SerialRealization, StrictRealizationError,
    default_realizer_registry, strict_chromatic_realizer_id,
};

/// Realizes one immutable serial plan into exact note events and rests.
pub fn realize_strict(
    plan: &SerialPlan,
    context: &RealizationContext,
) -> Result<SerialRealization, StrictRealizationError> {
    default_realizer_registry().realize(&strict_chromatic_realizer_id(), plan, context)
}