use qol methods in sources
-
self.num_samples
andself.shape
are still used inFakeSeriesSrc
, so I defined them inTSSource
. They can probably be reworked so they are not explicitly needed, but I'm not sure if that's worth the work. - I made the
prepare_frame
data initialization optional, and default toNone
. Seems like in most cases we are reassigningself.data
to a new array, I am not sure what existing examples there are where initializing data to a zero array is better? One example that would use a zero array most of the time is the impulse source, but that can be done in the source element itself(?)
Edited by Yun-Jing Huang