bmcfee / pumpp

practically universal music pre-processor
ISC License
60 stars 11 forks source link

added Scope.__repr__ #115

Closed beasteers closed 5 years ago

beasteers commented 5 years ago

What does this implement/fix? Explain your changes.

I added a string representation of feature extractors so that it's easy to see what they implement.

Example:

# existing
In []: Mel('asdf', 192000, 2**11, 2**13, 128)                                                                                  
Out[]: <pumpp.feature.mel.Mel at 0x125d82278>

# now
In []: Mel('asdf', 192000, 2**11, 2**13, 128)                                                                                  
Out[]: <Mel(asdf) fields={'asdf/mag': Tensor(shape=(None, 128), dtype=dtype('float32'))}>