Period provides a reference to a section of a SPLSourceFile. It provides an interface to perform Transformations on this.
It is possible to create Periods with a sine as waveset. this is a special case, normaly Periods get created by SPLSourceFile.
| size |
The pitch or length of the waveset. |
| aamp |
The volume of the waveset. |
| posi |
A number for the position of the waveset. |
| ot |
Overton, a multiplication factor for the pitch of the waveset. |
| par |
The parent SPList of this Period. |
a Period
Maximal Amplitude of a Period.
RMS of a Period.
Number of local min and maxima.
Sum of the difference between samples / size.
Duration of a Period in seconds.
Duration of a Period in Hz.
Duration of a Period in samples.
Duration of a Period in samples. equivalent to size in samples
writes this period to a Buffer and plots it. the arguments are the same as Buffer.plot.
removes a period from its parent.
sets the length of a period to a specific time in Hz.
| newfreq |
new length in Hz |
(describe returnvalue here)
sets the length of a period to a specific time in samples.
| newsize |
new length in samples |
sets the length of a period to a specific time in seconds.
| newSec |
new length in seconds |
Applies a SPEnv Envelope on a SPList. a envelope applied on a Period is a special case of amplitude modulation.
| envelope |
Needs a SPEnv object. |
(describe method here)
| n |
(describe argument here) |
(describe returnvalue here)
Position in the original sound file.
merges two periods like a mix pitchshifted so that the period lenght is merged.
| aPeriod | |
| pan |
volume factor for the added period. |
| sizeBlend |
0 length/freq of the original period 1 length/freq of the added period |
Reference to parent SPList
Mulitiplication of the lenth of a Period.
(describe returnvalue here)
Mulitiplication of the amplitude of a Period.
(describe returnvalue here)
removes all transformations applied on a Period
add a sine to a existing Period.
| ot |
Overtone. |
| sinamp |
volume of the sine. |
| inamp |
volume of the original Period. |
No time right now to document.
(describe method here)
| name |
(describe argument here) |
| ... args |
(describe argument here) |
(describe returnvalue here)
(describe method here)
| p1 |
(describe argument here) |
| p2 |
(describe argument here) |
| p3 |
(describe argument here) |
(describe returnvalue here)