info~ Reference

Report information about a sample

info~

Description

Use the info~ object to report the information in a file read into a buffer~ object in response to a bang. If the information is not present, it will be 0. info~ does not require that the audio be turned on in order to work. Looping and tuning information is found in AIFF files.

Examples

Check sample rate of a sample use other information contained in a sample

Arguments

buffer-name [symbol]

Optional

Names the buffer~ object for which info~ will report information.

Attributes

Common Box Attributes

Messages

bang

In left inlet: Causes a report of information about a sample contained in the associated buffer~ object.

(mouse)

Double-clicking on info~ opens an editing window where you can view the contents of its associated buffer~ object.

set

Arguments

buffer-name [symbol]
The word set followed by the name of a buffer~ object, sets which buffer~ to which info~ will refer.

Output

Sample Information

Most of the information reported by info~ is taken from the audio file most recently read into the associated buffer~. If this information is not present, only the sampling rate is sent out the left outlet. No output occurs for any item that's missing from the sound file.

float

Out left outlet: The sampling rate of the sample.

Out 3rd outlet: Sustain loop start, in milliseconds.

Out 4th outlet: Sustain loop end, in milliseconds.

Out 5th outlet: Release loop start, in milliseconds.

Out 6th outlet: Release loop end, in milliseconds.

Out 7th outlet: Total time of the associated buffer~ object, in milliseconds.

Out 8th outlet: Name of the most recently read audio file.

Out 9th outlet: Number of channels for the most recently read audio file.

list

Out 2nd outlet: Instrument information about the sample, as follows:

1. The MIDI pitch of the sample.

2. The detuning from the original MIDI note number of the sample, in pitch bend units.

3. The lowest MIDI note number to use when playing this sample.

4. The highest MIDI note number to use when playing this sample.

5. The lowest MIDI velocity to use when playing this sample.

6. The highest MIDI velocity to use when playing this sample.

7. The gain of the sample (0-127).

See Also

Name Description
Spectral Processing Spectral Processing
Sound Processing Techniques Sound Processing Techniques
buffer~
mstosamps~
sfinfo~
MSP Sampling Tutorial 3: Playback with Loops MSP Sampling Tutorial 3: Playback with Loops
MSP MIDI Tutorial 3: MIDI Sampler MSP MIDI Tutorial 3: MIDI Sampler