Skip to content

Save Load Patching testing

Huan Zhang edited this page Feb 3, 2021 · 3 revisions

I am doing some detailed tests for saving/loading patching upon Roger's request. Let me know if there are other test cases/scenarios, or you can't replicate my results. [Mac, chrome]

Test 1: Unit tests: Each module with speaker

-> Connect each module with speaker and save, then restore the project and ensure the audio object is functioning properly.

πŸ‘ Player - speaker
πŸ‘Ώ SamplePlayer - speaker: patching is restored but the previously loaded sound is not ready to play. In Player the behavior is different, after restoring the patching the sound loaded from last time can be played immediately by clicking play button.
πŸ‘ Mixer - speaker
πŸ‘ Delay - speaker
πŸ‘ Transposer - speaker
πŸ‘ Pan - speaker
πŸ‘Ώ Oscilloscope - signalgen: patching is restored but it seems like the oscilloscope doesn't start immediately. You'll have to reselect a signal type and the oscilloscope will show.
πŸ‘ Spectroscope - signalgen: different from above, spectroscope shows immediately.
πŸ‘ Signalgen - speaker
πŸ”΄ Gransynth - signalgen: gransynth is broken and thus not available to test.
πŸ‘Ώ Directinput - speaker: Directinput doesn't start immediately (can't see sounds in meter bar). After some editing on the project it becomes active.

Test 2: multi connections like Mixer

πŸ‘ Connected 4 signalgens, 3 players and 1 sampleplayer to 8 ports of the mixer module. All connections are restored.

Test 3: Long connection, 5+ modules in sequence

Player -> Transposer -> Pan -> Delay -> Speaker
............................................................. -> Oscilloscope

πŸ‘Ώ Each of the functionality in the middle are restored. However, the 2 fan-outs from the delay doesn't gets restored, only the oscilloscope is connected to delay. Maybe we forgot about the multi fan-out case.

Test 4: Iterations: save - load - edit - save - load - edit

-> save a simple player - speaker patching -> load -> edit, remove the original connection and add a signalgen to be connected with speaker -> save -> load

πŸ”΄ This doesn't work. The new connection doesn't appear.

Test 5: Saving while playing, saving while recording

-> For sound-generating modules (Signalgen, Player, Sampleplayer), save the project when the sound is streaming out.
πŸ‘ Signalgen - speaker: Sound comes out immediately and streams like before upon loading.
πŸ‘ Player - speaker: After loading player is automatically in stopped state, so no sound unless you click start again, which is reasonable.
πŸ‘Ώ Sampleplayer - speaker: No sound comes out and you also have to reselect the file.