Midi in MAX/MSP

craigam2005's icon

Hello.

I have just started using Midi within MAX/MSP.
I have a step sequencer that I built in MAX/MSP.

I use audio mainly but I am wanting to put a few sequences over the audio (with MIDI)

I can adjust volume with audio.

How can I adjust the volume of the midi sequence?

thanks

Craig

kr0's icon

Maybe use velocity? )

pdelges's icon

The MIDI controller 7 controls the volume of a MIDI synth.

p

seejayjames's icon

yep, velocity 0-127 for each note, then overall, ctlout 7 1 will set the volume of MIDI channel 1, in a range from 0-127. So it will scale the volume of all the notes, which can have their own velocities... and it will change the volume of sustained notes, which velocity can't do until a re-trigger of the note.

BTW, panning would be ctlout 10 1, where 64 is center (technically 63.5).

Eddy's icon

You don't say which MIDI destination you are using, but most modern synthesizers have a SysEx string which controls the overall output gain of the entire instrument. If you check the MIDI documentation for the synth in question you may find this.

If you want to control the output of the entire machine, this is preferable to using channel volume messages as each channel will (could) be on a different level at any given time.

Eddy