mlverse / torchaudio

R interface to torchaudio
https://mlverse.github.io/torchaudio/
Other
27 stars 6 forks source link

add generic for WaveMC #41

Closed skeydan closed 2 years ago

skeydan commented 2 years ago

tuneR will now in some cases return a WaveMC where it was returning a Wave:

Class WaveMC
Description
Class "WaveMC".

Details
This class has been added in tuneR version 1.0-0 for representation and construction of multi channel Wave files. Objects of class Wave can be transformed to the new class definition by calls of the form as(..., "WaveMC"). Coercion from the WaveMC class to the Wave-class works via as(..., "Wave") if there are no more than 2 channels. Coercing back to the Wave-class can be useful since some (very few) functions cannot yet deal with multi channel Wave objects.

Note that also the Wave-class definition has been extended in tuneR version 1.0-0. For more details see Wave-class.