Help! new to max msp, how to control a audio with keyboard press

    Apr 26 2013 | 1:25 am
    I am very new to this! I have currently got a patch with a working on a loop. I need to be able to turn the audio of the on with a keyboard button. The audio should be off until the key is pressed and only stay on for a minute....
    Any help would be amazing

    • Apr 26 2013 | 4:41 am
      Look in the help file, and you'll see an attribute called "vol" which controls track volume. You want to set it to 0 for silence (with a message like "vol 0") and 1 for full volume. You could trigger those messages with the output of the key object. The delay object might get you your timing.