test_all

Classes

TestAudioFormat

TestAudioBuffer

TestMidiChannel

TestNote

TestVelocity

TestMidiMessage

TestMidiEvent

TestSineOscillator

TestSquareOscillator

TestSawOscillator

TestNoiseSource

TestMixerChannel

TestMixer

TestStep

TestPattern

TestNoteEvent

TestEventSequence

TestTransportClock

TestStepSequencer

TestAudioSample

TestEnvelope

TestSampleMapping

TestSampleMap

TestSampler

TestKeyboardRoute

TestPadAction

TestTimelineDescriptors

TestMidiFiles

TestDemoNotebook

Module Contents

class test_all.TestAudioFormat
test_construction()
test_defaults()
test_repr()
test_str()
test_eq()
class test_all.TestAudioBuffer
test_construction()
test_stereo()
test_sample_at_and_set_sample()
test_out_of_bounds()
test_clear()
test_to_list()
test_format_property()
test_repr()
class test_all.TestMidiChannel
test_valid_range()
test_invalid_range()
test_repr()
test_eq()
class test_all.TestNote
test_valid_range()
test_invalid_range()
test_to_hz_a4()
test_to_hz_c4()
test_to_hz_octave()
test_from_hz()
test_repr()
class test_all.TestVelocity
test_valid_range()
test_invalid_range()
test_repr()
class test_all.TestMidiMessage
test_note_on()
test_note_off()
test_control_change()
test_program_change()
test_pitch_bend()
test_clock()
test_start()
test_stop()
test_eq()
test_invalid_channel()
test_invalid_note()
test_invalid_velocity()
class test_all.TestMidiEvent
test_construction()
test_message_roundtrip()
test_repr()
class test_all.TestSineOscillator
test_construction()
test_defaults()
test_render_length()
test_render_peak_amplitude()
test_render_custom_amplitude()
test_render_zero_crossings()
test_repr()
class test_all.TestSquareOscillator
test_render_values()
test_repr()
class test_all.TestSawOscillator
test_render_ramps()
test_repr()
class test_all.TestNoiseSource
test_render_range()
test_render_nonconstant()
test_deterministic()
test_repr()
class test_all.TestMixerChannel
test_defaults()
test_setters()
test_gain_clamped()
test_pan_clamped()
test_process_sample_muted()
test_process_sample_center()
test_repr()
test_eq()
class test_all.TestMixer
test_empty()
test_add_channels()
test_remove_channel()
test_remove_out_of_bounds()
test_get_channel()
test_get_channel_out_of_bounds()
test_set_channel_gain()
test_set_channel_pan()
test_set_channel_mute()
test_set_channel_solo()
test_master_gain_clamped()
test_mix_down_single()
test_mix_down_muted()
test_mix_down_wrong_count()
test_repr()
class test_all.TestStep
test_construction()
test_defaults()
test_setters()
test_invalid_note()
test_invalid_velocity()
test_repr()
test_eq()
class test_all.TestPattern
test_construction()
test_default_length()
test_set_step()
test_set_step_out_of_range()
test_toggle_step()
test_get_step_out_of_range()
test_clear()
test_repr()
class test_all.TestNoteEvent
test_construction()
test_end_position()
test_setters()
test_invalid_note()
test_repr()
test_eq()
class test_all.TestEventSequence
test_empty()
test_add_events_sorted()
test_remove_event()
test_events_in_range()
test_events_starting_in_range()
test_duration()
test_clear()
test_repr()
class test_all.TestTransportClock
test_defaults()
test_play_stop()
test_pause()
test_seek()
test_advance()
test_advance_stopped()
test_beat_time_conversion()
test_tick_conversion()
test_set_bpm()
test_repr()
class test_all.TestStepSequencer
test_construction()
test_process_empty()
test_process_active_steps()
test_reset()
test_repr()
class test_all.TestAudioSample
test_construction()
test_duration()
test_loop_points()
test_data()
test_invalid_root_note()
test_repr()
class test_all.TestEnvelope
test_defaults()
test_custom()
test_setters()
test_sustain_clamped()
test_repr()
test_eq()
class test_all.TestSampleMapping
test_construction()
test_matches_range()
test_repr()
class test_all.TestSampleMap
test_empty()
test_single_sample()
test_multi_sample()
test_repr()
class test_all.TestSampler
_make_sample()

1 second 440 Hz sine at 44100 Hz.

test_construction()
test_note_on()
test_note_on_multiple()
test_note_off()
test_voice_stealing()
test_render()
test_panic()
test_all_notes_off()
test_repr()
class test_all.TestKeyboardRoute
test_all()
test_zone_upper()
test_zone_lower()
test_octave()
test_note()
test_notes()
test_invalid_match()
test_invalid_zone()
test_invalid_octave_too_low()
test_invalid_octave_too_high()
test_invalid_note_too_high()
test_invalid_note_too_low()
test_invalid_notes_empty()
test_invalid_notes_oob()
test_invalid_channel_index()
test_invalid_channel_index_type()
test_invalid_float_octave()
test_invalid_float_note()
test_invalid_float_in_notes()
test_equality()
test_repr()
class test_all.TestPadAction
test_note_action()
test_trait_action()
test_invalid_trait_name()
class test_all.TestTimelineDescriptors
test_audio_clip_defaults()
test_audio_clip_clamps_ranges()
test_audio_clip_requires_numeric_duration()
test_timeline_track_defaults()
class test_all.TestMidiFiles
test_read_midi_handles_running_note_ons_and_empty_tracks(tmp_path)
test_events_to_voices_edge_cases(tmp_path)
class test_all.TestDemoNotebook
test_prefixed_example_notebooks_have_language_metadata()
test_prefixed_example_notebooks_have_code_cell_output_fields()
test_notebook_code_cells_run(notebook_path)

Execute every code cell top-to-bottom in an isolated namespace.