Kinda of beginner here, still trying to get a handle on real time safe design method’s.
I can currently making a euclidean step sequencer, and I am having some difficulty finding a real time safe method of having the audio thread read from the array, when changes to the array may be made through gui thread.
Would it be best to create a vector of type atomic int, or is there a design practice where I wouldn’t have to worry about a data race between the gui and audio thread?
Any help would be so greatly appreciated. Thanks!