Modformat is a program which allows the modification of files of
sinusoidal partials. The possible modifications are : time stretching/compression,
amplitude modification, frequency transposition (maintaining or not the original
envelope) and imposing a spectral envelope from an envelope file.
Modformat is available on Unix platforms at Ircam and is called from a
command line using the options below :
data type of the input file
Three types of input data file can be used in modformat :
- fmt extension file (binary file of sinusoidal partials ;
see additive )
- format extension file (ascii file of sinusoidal partials ;
see additive )
- sdif extension file ((SDIF file of
file of sinusoidal partials ;see additive
)
The input data type is guessed from the input file extension. If the file extension is
neither fmt nor format, the file is considered as a format file.
If the input is the standard input then, the input type will be considered as fmt.
The input type is considered as a format type if the option -a is specified :
-a : standard input in ascii format (format)
(default : standard input in binary format (fmt))
Remark : No standard input in sdif. An sdif file MUST have sdif extension.
data stored in the output file
Four types of output data file can be generated by modformat :
- fmt extension file (file of sinusoidal partials ;
see additive )
- format extension file (file of sinusoidal partials ;
see additive )
- sdif extension file ( SDIF file of
sinusoidal partials ; see additive )
- raw format file (file containing only the samples, see option -Z)
If the option -Z is not used, the output data type is guessed from the
output file extension. If the file extension is neither fmt nor format,
the data are stored in a format file.
If the output is the standard output, the output type will be fmt. The standard
output type is format if the option -a is specified :
-a : standard output in ascii format (format)
(default: standard output in binary format (fmt))
-Z : generate a synthesized signal output file (raw format). Note that the output data are in float. See example below.
Remark : No standard output in sdif. An sdif file MUST have sdif extension.
possible modifications
-t factor : time dilatation factor
-G gain : changes amplitudes by gain dB
-T factor : transposes frequencies by linear factor
-e sdif-file : impose spectral envelope from sdif-file
general parameters
Examples