Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drum Engines causing freeze #28

Closed
MidiSlave opened this issue Jan 23, 2023 · 8 comments
Closed

Drum Engines causing freeze #28

MidiSlave opened this issue Jan 23, 2023 · 8 comments

Comments

@MidiSlave
Copy link

I've had a couple gigs recently and have had to abort my plans to use Squares and Circles for drum voices because it freezes. I can have it on M-OSC for hours with out it freezing but almost with out fail will freeze if using the drum voices and perhaps especially the vintage hats/rom machines. I've been sequencing/controlling it via midi. Still love the hell out of it using as polyphonic M-OSC!

@eh2k
Copy link
Owner

eh2k commented Jan 23, 2023

@MidiSlave

Thanks for reporting.

I assume you are using UsbMidi?
If possible, can you provide me with a midi file so I can try to reproduce the freeze?

I suspect this has something to do with memory fragmentation. As I saw in your video, there is extreme fast engine changes. With an unfortunate sequence, the memory could theoretically run out.

I would have to think through the memory allocation, but I don't know if it's a different Issue.

See also #23

@MidiSlave
Copy link
Author

MidiSlave commented Jan 23, 2023 via email

@eh2k
Copy link
Owner

eh2k commented Mar 19, 2023

@MidiSlave

I have a new version here https://eh2k.github.io/□●/flash/?ver=@28_0.79 - there I have optimized some things regarding midi - can you please give me some feedback if you can reproduce the problem in this version.

@MidiSlave
Copy link
Author

MidiSlave commented Mar 26, 2023 via email

@MidiSlave
Copy link
Author

MidiSlave commented Mar 26, 2023 via email

@MidiSlave
Copy link
Author

MidiSlave commented Mar 26, 2023 via email

@eh2k
Copy link
Owner

eh2k commented Mar 26, 2023

HI @MidiSlave,

thanks for the response - I have opened a new issue regarding the program numbers.

I have now tested this a bit more intensively. If I simply set random program numbers (0-44) in a loop, I can reproduce the freeze now.

However, if I avoid the program numbers 33,39,40,41 ( FX engines that allocate a lot of memory ) - it actually works without freezing. For completeness - here is my test-script: https://github.com/eh2k/squares-and-circles/blob/main/test/test_midi.sh

I'll have to take a look, maybe I'll come up with something else.

Can you please give me more info about what exactly you do - especially which parameters and which engines you use.

PS: As far as I know, the recently published plaits update is not open source - but there are some old engines like Swarm, Noise, Particle that I could add at some point.

@MidiSlave
Copy link
Author

I have a midi track on digitakt sequencing the first channel of
squares-and-circles - Alternating between (p-locked) 808ish-BD (PC#7) and Clap engine (PC#32) on midi channel 9. on the next midi track hihat (PC#32) on midi channel 10 and another on channel 12 for VA6 engine. The only other parameter other than the PC messages being sent is CC7 for volume. I'll try removing the volume automation and see if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants