annotate arrows/@asignal/asignal.m @ 42:ae596261e75f
Various fixes and development to audio handling
author |
samer |
date |
Tue, 02 Dec 2014 14:51:13 +0000 |
parents |
672052bd81f8 |
children |
|
rev |
line source |
samer@0
|
1 % asignal - Arrow which produces frames from a signal
|
samer@0
|
2 %
|
samer@0
|
3 % asignal ::
|
samer@0
|
4 % signal(C,R),
|
samer@0
|
5 % N:natural ~'block size',
|
samer@0
|
6 % M:natural ~'hop size'
|
samer@0
|
7 % -> arrow({},{[[C,N]]]}).
|
samer@0
|
8 %
|
samer@0
|
9 % asignal ::
|
samer@0
|
10 % signal(C,R),
|
samer@0
|
11 % N:natural ~'block size',
|
samer@0
|
12 % -> arrow({},{[[C,N]]]}).
|
samer@0
|
13 %
|
samer@0
|
14 % If hop size is omitted, it defaults to the block size
|
samer@0
|
15
|
samer@0
|
16 function o=asignal(source,block,hop)
|
samer@0
|
17 if nargin<3, hop=block; end
|
samer@0
|
18 s.source=source;
|
samer@0
|
19 s.block=block;
|
samer@0
|
20 s.hop=hop;
|
samer@0
|
21 o=class(s,'asignal',arrow(0,1));
|
samer@0
|
22 end
|
samer@0
|
23
|