Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Im struggling with MIDI volume changes - 10 line code sample attached

  1. #1

    Im struggling with MIDI volume changes - 10 line code sample attached

    I am having trouble sending volume changes over USB Midi.
    I was expecting this example to play a note (midi 68 = Bb I think) then increase it from a volume of 0 to 127 then cut it out for 2 seconds.
    However I can not hear any volume change, just the start and a steady tone for about 5 seconds then a stop.
    I am using a virtual Synth in ableton lite. The same synth seems to work well with pitch bends.
    Am I missing something?
    Thanks

    Code:
    void setup() {
     
    }
    
    void loop() {
      // put your main code here, to run repeatedly
    usbMIDI.sendNoteOn(68,99,1);
    for (int x = 1; x < 127; x++){
      usbMIDI.sendControlChange(7, x, 1);
      delay(50);  
    }
    usbMIDI.sendNoteOff(68,0,1);
    delay(2000);
    
    
    }

  2. #2
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,060
    Almost certainly this sending a ramp of CC=7 data but Ableton isn't set up to control the volume with this message.

    https://www.ableton.com/en/manual/mi...emote-control/

    See 27.2

    It's best to use a MIDI utility to show you raw MIDI values received from your controller rather than testing directly in a DAW.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •