Onyx logo

Previous topic

onyx.signalprocessing.spectrum – Module for spectrum generation.

Next topic

onyx.signalprocessing.window – Windowing functionality.

This Page

onyx.signalprocessing.vocalsource – Use of coincident one-pole filters to generate reasonable, reversed,

glotal pulse waveforms.

onyx.signalprocessing.vocalsource.chain(seq)
onyx.signalprocessing.vocalsource.make_one_pole(alpha)
onyx.signalprocessing.vocalsource.test()
>>> op = chain(make_one_pole(0.8) for i in xrange(2))
>>> for x in (1,) + 30 * (0,): print ' ', ' ' * int(1000 * op(x)), '*'
                                          *
                                                                  *
                                                                               *
                                                                                    *
                                                                                    *
                                                                                 *
                                                                            *
                                                                      *
                                                               *
                                                        *
                                                  *
                                            *
                                      *
                                 *
                             *
                         *
                      *
                   *
                *
              *
            *
           *
         *
        *
       *
      *
      *
     *
     *
    *
    *
>>> for x in (1,) + 25 * (0,) + (.25,) + 30 * (0,): print ' ', ' ' * int(1000 * op(x)), '*'
                                            *
                                                                    *
                                                                                *
                                                                                     *
                                                                                     *
                                                                                  *
                                                                            *
                                                                      *
                                                               *
                                                        *
                                                  *
                                            *
                                      *
                                 *
                             *
                         *
                      *
                   *
                *
              *
            *
           *
         *
        *
       *
      *
                *
                     *
                        *
                         *
                         *
                       *
                      *
                    *
                  *
                 *
               *
             *
            *
          *
         *
        *
       *
       *
      *
     *
     *
     *
    *
    *
    *
    *
   *
   *
   *
   *
   *
>>> op = chain(make_one_pole(0.6) for i in xrange(3))
>>> for x in (1,) + 20 * (0,): print ' ', ' ' * int(1000 * op(x)), '*'
                                                                   *
                                                                                                                      *
                                                                                                                                             *
                                                                                                                                             *
                                                                                                                               *
                                                                                                           *
                                                                                      *
                                                                   *
                                                   *
                                      *
                            *
                     *
               *
           *
         *
       *
     *
    *
    *
   *
   *