示例#1
0
'''
Created on 15 Feb 2015

@author: Ronny Andersson ([email protected])
@copyright: (c) 2015 Ronny Andersson
@license: MIT
'''

# standard library
import logging

# custom libraries
from zignal.audio import Audio

if __name__ == '__main__':
    logging.basicConfig(
        format='%(levelname)-7s: %(module)s.%(funcName)-15s %(message)s',
        level='DEBUG')
    x = Audio()
    print(x)

    x.comment(comment="We can add comments\nthat spans multiple lines.")

    print(x.comment())
    print(x)
示例#2
0
'''
Created on 15 Feb 2015

@author: Ronny Andersson ([email protected])
@copyright: (c) 2015 Ronny Andersson
@license: MIT
'''

# standard library
from __future__ import print_function
import logging

# custom libraries
from zignal.audio import Audio

if __name__ == '__main__':
    logging.basicConfig(format='%(levelname)-7s: %(module)s.%(funcName)-15s %(message)s',
                        level='DEBUG')
    x = Audio()
    print(x)
    
    x.comment(comment="We can add comments\nthat spans multiple lines.")
    
    print(x.comment())
    print(x)