test_all¶
Classes¶
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.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.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.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.TestNoiseSource¶
- test_render_range()¶
- test_render_nonconstant()¶
- test_deterministic()¶
- test_repr()¶
- class test_all.TestSynthWidget¶
- test_defaults()¶
- test_waveform_generated_on_init()¶
- test_waveform_is_binary_float32()¶
- test_waveform_updates_on_type_change()¶
- test_waveform_updates_on_frequency_change()¶
- test_waveform_updates_on_amplitude_change()¶
- test_noise_waveform()¶
- test_custom_init()¶
- class test_all.TestSettingsWidget¶
- test_defaults()¶
- test_custom_init()¶
- test_set_sample_rate()¶
- test_set_channels()¶
- test_set_buffer_size()¶
- test_set_midi_port()¶
- test_set_available_midi_ports()¶
- test_midi_event_bytes()¶
- 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.TestMixerWidget¶
- test_defaults()¶
- test_add_channel()¶
- test_add_multiple_channels()¶
- test_remove_channel()¶
- test_remove_out_of_bounds()¶
- test_set_channel_gain()¶
- test_set_channel_gain_clamped()¶
- test_set_channel_pan()¶
- test_set_channel_mute()¶
- test_set_channel_solo()¶
- test_to_mixer()¶
- test_to_mixer_mix_down()¶
- 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.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.TestNoteComposer¶
- test_defaults()¶
- test_custom_length()¶
- test_set_step()¶
- test_set_step_out_of_bounds()¶
- test_toggle_step()¶
- test_toggle_step_out_of_bounds()¶
- test_clear()¶
- test_to_pattern()¶
- test_repr()¶
- class test_all.TestSequencerWidget¶
- test_defaults()¶
- test_steps_initialised()¶
- test_voices_initialised()¶
Default monophonic sequencer has one voice whose steps match .steps.
- test_polyphonic_voices()¶
Polyphonic sequencer with N voices.
- test_steps_is_voice_zero()¶
The .steps property is an alias for voices[0].steps.
- test_voices_trait_synced()¶
The voices_data trait contains step lists for all voices.
- test_custom_length()¶
- test_set_step()¶
- test_set_step_voice()¶
set_step with voice kwarg targets a specific voice.
- test_set_step_out_of_bounds()¶
- test_toggle_step()¶
- test_toggle_step_voice()¶
toggle_step with voice kwarg targets a specific voice.
- test_toggle_step_out_of_bounds()¶
- test_clear()¶
- test_clear_all_voices()¶
clear() deactivates all steps across all voices.
- test_to_pattern()¶
- test_to_step_sequencer()¶
- test_bpm_change()¶
- test_transport()¶
- class test_all.TestSamplerWidget¶
- test_defaults()¶
- test_envelope_defaults()¶
- test_load_sample()¶
- test_load_sample_decimation()¶
Large samples should be decimated to max 2048 points.
- test_load_sample_small()¶
Small samples are not decimated.
- test_envelope_change()¶
- test_max_voices()¶
- test_custom_init()¶
- test_to_sampler()¶
- class test_all.TestTransportWidget¶
- test_defaults()¶
- test_custom_bpm()¶
- test_set_bpm()¶
- test_time_signature()¶
- test_play_state()¶
- test_position()¶
- test_loop()¶
- class test_all.TestKeyboardWidget¶
- test_defaults()¶
- test_custom_octaves()¶
- test_set_velocity()¶
- test_sustain()¶
- test_connect_sequencer()¶
- test_disconnect_sequencer()¶
- test_connect_sampler_all()¶
- test_connect_sampler_split()¶
- test_disconnect_sampler()¶
- test_connect_sampler_replaces_same_channel()¶
Re-connecting the same sampler updates zone, doesn’t duplicate.
- test_session_routing()¶
- class test_all.TestTrack¶
- test_creation()¶
- test_link_transport()¶
BPM and is_playing sync from transport to sequencer.
- test_unlink()¶
- test_repr()¶
- test_sampler_source()¶
- class test_all.TestSession¶
- test_defaults()¶
- test_custom_bpm()¶
- test_custom_time_signature()¶
- test_add_track()¶
- test_add_track_sets_sound_source_routing()¶
add_track sets session_id and channel_index on the sound source.
- test_add_multiple_tracks()¶
- test_bpm_sync()¶
Transport BPM propagates to all sequencers via traitlets.link.
- test_play_sync()¶
Transport play state propagates to all sequencers.
- test_remove_track()¶
- test_remove_track_clears_sound_source_routing()¶
remove_track clears session_id/channel_index on the sound source.
- test_remove_middle_track_adjusts_sound_source_indices()¶
remove_track adjusts channel_index on remaining sound sources.
- test_add_track_non_sampler_sound_source_no_error()¶
add_track with SynthWidget (no session_id attr) does not error.
- test_remove_track_unlinks()¶
Removed track no longer syncs with transport.
- test_remove_track_out_of_bounds()¶
- test_repr()¶