Ignore:
Timestamp:
Jul 10, 2015, 2:26:27 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
9c8c8a6
Parents:
665b711
Message:

ext/py-musicutils.c: add silence_detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-musicutils.h

    r665b711 r31a09d2  
    4646PyObject * Py_aubio_db_spl(PyObject *self, PyObject *args);
    4747
     48static char Py_aubio_silence_detection_doc[] = ""
     49"Check if buffer level in dB SPL is under a given threshold\n"
     50"\n"
     51"Return 0 if level is under the given threshold, 1 otherwise.\n"
     52"\n"
     53"Example\n"
     54"-------\n"
     55"\n"
     56">>> import numpy\n"""
     57">>> silence_detection(numpy.ones(1024, dtype=\"float32\"), -80)\n"
     58"0";
     59
     60PyObject * Py_aubio_silence_detection(PyObject *self, PyObject *args);
     61
    4862#endif /* _PY_AUBIO_MUSICUTILS_H_ */
Note: See TracChangeset for help on using the changeset viewer.