File: special.html

package info (click to toggle)
cecilia 2.0.5-2.2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 4,452 kB
  • ctags: 833
  • sloc: tcl: 9,786; sh: 1,097; makefile: 69; csh: 13
file content (79 lines) | stat: -rw-r--r-- 2,415 bytes parent folder | download | duplicates (7)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; IRIX 6.3 IP32) [Netscape]">
   <TITLE>SPECIAL SOUND INFO FUNCTIONS</TITLE>
</HEAD>
<BODY>
&nbsp;
<CENTER><TABLE COLS=3 WIDTH="100%" NOSAVE >
<TR ALIGN=CENTER VALIGN=CENTER NOSAVE>
<TD ALIGN=LEFT VALIGN=TOP NOSAVE><B><A HREF="score.html">&lt;--</A></B></TD>

<TD ALIGN=CENTER VALIGN=CENTER NOSAVE><A HREF="index.html"><IMG SRC="help.gif" ></A></TD>

<TD ALIGN=RIGHT VALIGN=TOP NOSAVE><B><FONT COLOR="#000000"><A HREF="cybil.html">--></A></FONT></B></TD>
</TR>
</TABLE></CENTER>

<CENTER>&nbsp;</CENTER>

<CENTER>
<H2>
Special functions for sound information</H2></CENTER>

<CENTER><A HREF="#sinfo">sinfo</A></CENTER>

<CENTER><A HREF="#findgenSize">findgenSize</A><BR>
<BR></CENTER>

<CENTER>
<HR></CENTER>


<P>CECILIA offers some special sound information functions that are very
useful for the development of modules that require to know beforehand the
duration or size of a sound to be processed.
<UL>
<LI>
<A NAME="sinfo"></A><B>sinfo</B></LI>

<UL>
<PRE><B>[sinfo</B> &lt;name of sound> info<B>]</B></PRE>
where &lt;name of sound> is the name given for the <B>cfilein</B> object

<P>where info can be:

<P><B>frames</B> : the number of sample frames in the sound
<BR><B>dur</B> : the duration of the sound in samples
<BR><B>sr</B> : the sampling rate of the sound
<BR><B>chn</B> : the number of channels in the sound

<P><B>sinfo</B> would be typically used in an orchestra to obtain information
about the selected sound without having to "type" in the values specifically.
The following statement encountered in the orchestra::

<P>gilen = [sinfo source frames]

<P>would be substituted at compile time by the number of frames in the
sound chosen with the <B>cfilein</B> object named <I>source</I>.
<BR>&nbsp;</UL>

<LI>
<A NAME="findgenSize"></A><B>findgenSize</B></LI>

<UL>
<PRE><B>[findgenSize</B> number<B>]</B></PRE>
<B>findgenSize</B> is useful in the score for finding the power-of-2 size
greater than the frame number of a given sound. If the <B>cfilein</B> object
named <I>source</I> was used to select a sound of 456818 sample frames,
the following statement encountered in the score:
<PRE>f12 0 [findgenSize [sinfo source frames]] -1 "[source]" 0 0 0</PRE>
would return:
<PRE>f12 0 524288 -1 "[source]" 0 0 0</PRE>
</UL>
</UL>

</BODY>
</HTML>