File: WaveletDaub.schelp

package info (click to toggle)
supercollider-sc3-plugins 3.13.0~repack-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,104 kB
  • sloc: cpp: 303,352; lisp: 9,589; ansic: 3,547; sh: 96; makefile: 87; haskell: 21
file content (34 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class:: WaveletDaub
summary:: decomposition into Daub4 wavelets, and reconstruction
related:: Classes/WalshHadamard
categories:: UGens>Analysis


Description::

Wavelet transform using the Daub4 basis.

The plug-in demonstrates the transform in the context of a filter; choose how many of the strong::n:: basis elements to use in the reconstruction.


Classmethods::

method::ar

argument::input
Original signal to effect

argument::n
size of wavelet transform. Must be divisible by 64, the standard blocksize.

argument::which
Basis elements whose indices are below this number will be zeroed. The default 0 means the identity transform, all basis elements will be used in the reconstruction.


Examples::

code::
{var n= 1024; WaveletDaub.ar(SoundIn.ar, n, MouseX.kr(0,n))}.play

{var n= 1024; WaveletDaub.ar(Saw.ar(MouseY.kr(50,10000, 'exponential'),0.5), n, MouseX.kr(0,n))}.play
::