Closed j9ac9k closed 4 years ago
We can either change this so that all channels are loaded simultaneously, or have an additional GUI interaction that clarifies which channel(s) should be loaded. The latter will certainly be required for EDF and XDF support in the future.
I would say we should load both channels simultaneously, if we already used all the disk in to access the file to begin with... Also I think the code to exclude a channel may be more complicated as well.
Since this is signal works and not a GUI, how about by default we read everything, but optionally the user can specify a channel.
Do we return a Wave with a N-D array, or a MultiTrack with N Waves?
I would think a multitrack with a wave object for each channel would be preferred, having a 2D wave object may introduce unnecessary complexity
my preference as well
I'm having a circular import problem :) Wave imports MultiTrack and MultiTrack imports Wave. We want Wave.read_wav() return MultiTrack. The MultiTrack need Wave in reading read_xdf(), read_edf(). Which is the best way to handle it?
@tuanad121 and I discussed this, we should likely incorporate a signalworks.read()
method that can return either a Track or MultiTrack.
I am closing this issue because more recent conversations of this are in #24
Description
On opening of a two channel audio file,
wave.py
'sread_wav
method generates aMultiChannelError
. Per earlier offline discussion, multi-channel audio files should create aMultiTrack
object, consisting of separate tracks for each channel.What I Did
Load a two channel audio file.