Instrument Maker Reference

im.player

Description:

Retrigger a sound file using an "on" signal (ignores "off"). Save the file you want to trigger in a folder. Add the folder to your pd search path from the preferences menu.

Expects audio in the left hand side. Outputs audio.
Args:

file name, number of voices (mono by default \, max 4),

Inlets:

on trigger (e.g. im.sensor or im.keypress), off trigger

Outlets:

pulsewave signal

Example:

im.sensor 1 im.keypress Space im.speaker im.player sounds/sn.wav im.speaker im.sensor 2 im.keypress m im.keypress n im.player sounds/string.aif 4
If this image does not display properly, try this alternative file.

Back to main reference page


im.player was created by Charles Matthews, 2019/2020