Currently, a caller of the MyoEMG class acquires EMG samples by instantiating an instance, and then repeatedly calling the instance's getSample() method. A more elegant interface would provide the caller with a reference to a stream of Sample objects where they could simply read data from.
Currently, a caller of the
MyoEMGclass acquires EMG samples by instantiating an instance, and then repeatedly calling the instance'sgetSample()method. A more elegant interface would provide the caller with a reference to a stream ofSampleobjects where they could simply read data from.