fbpx
Skip to main content

MIDI Forum

What is the best wa...
 
Notifications
Clear all

What is the best way to control the volume when playing MIDI?

3 Posts
2 Users
0 Reactions
3,576 Views
Carlos
Posts: 86
Estimable Member
Topic starter
 

In my program I control the velocity, but I saw on https://midi.org/forum/18396-velocity-vs-volume that changing the velocity affects how it sounds, should I use "MIDI Master Volume message" instead? problem with this is that a file can contain it and change the volume

[code type=markup]
velocity = velocity * volumen
[/code]

 
Posted : 06/05/2023 6:57 am
Clemens Ladisch
Posts: 323
Reputable Member
 

The velocity affect's a single note's volume (and maybe other parameters).
The expression (CC 11) affects the entire channel, and should be used by the file for temporary changes.
The volume (CC 7) affects the entire channel, and should be set once at the beginning of the file so that the player can adjust it later.
The master volume (universal SysEx 04 01) affects all channels and should not be set by the file.

There is no guarantee that files do what they should do.

 
Posted : 06/05/2023 12:02 pm
Carlos
Posts: 86
Estimable Member
Topic starter
 

Thanks it has worked for me.

 
Posted : 06/05/2023 1:32 pm
Share: