changing the velocity of one midinote

IcyBlues's icon

Hi everyone. Can i ask how do i change the velocity value of a midinote? for example in the makenote object, i could not output a series of velocity numbers from the middle inlet. Does anyone know?
Thank you for the help given.

Gregory Taylor's icon

In cases like this, it's generally considered
important to tell us what version of Max you're
using, what platform you're using it on, and
what the OS version is. Otherwise, we're all
kind of guessing.

This Max 5 patch works perfectly well on a
MacBook Pro running 5.0.6 OSX version 10.5.6.
What are you running?

Max Patch
Copy patch and select New From Clipboard in Max.

IcyBlues's icon

hi! thanks for your reply. i am using max 5 on macbook pro. ur patch given i can open too.

what i have attached the patch below :

Upon bang, inside the patcher playnotes,
i have a problem of sending the list of velocity numbers out of the makenote object. As you can notice, it can only send one velocity number out of makenote at one time with a bang. i need to send numbers range from 0-127 for example out of the makenote with only a bang. Thank You!

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 571.0, 44.0, 640.0, 506.0 ],
"bglocked" : 0,
"defrect" : [ 571.0, 44.0, 640.0, 506.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "button",
"numinlets" : 1,
"patching_rect" : [ 96.0, 65.0, 20.0, 20.0 ],
"numoutlets" : 1,
"id" : "obj-8",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "patcher playnotes_note v1",
"numinlets" : 1,
"fontsize" : 9.0,
"patching_rect" : [ 95.0, 104.0, 116.0, 17.0 ],
"numoutlets" : 1,
"id" : "obj-6",
"outlettype" : [ "" ],
"fontname" : "Arial",
"patcher" : {
"fileversion" : 1,
"rect" : [ 200.0, 97.0, 824.0, 541.0 ],
"bglocked" : 0,
"defrect" : [ 200.0, 97.0, 824.0, 541.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Comic Sans MS",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"metadata" : [ ],
"boxes" : [ {
"box" : {
"maxclass" : "number",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 307.0, 622.0, 50.0, 23.0 ],
"numoutlets" : 2,
"id" : "obj-36",
"outlettype" : [ "int", "bang" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t 0",
"numinlets" : 1,
"fontsize" : 9.0,
"patching_rect" : [ 172.0, 485.0, 21.0, 17.0 ],
"numoutlets" : 1,
"id" : "obj-5",
"outlettype" : [ "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "sel 1",
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 172.0, 464.0, 32.0, 17.0 ],
"numoutlets" : 2,
"id" : "obj-8",
"outlettype" : [ "bang", "" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t b i",
"numinlets" : 1,
"fontsize" : 9.0,
"patching_rect" : [ 136.0, 498.0, 27.0, 17.0 ],
"numoutlets" : 2,
"id" : "obj-20",
"outlettype" : [ "bang", "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "metro 200",
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 136.0, 411.0, 51.0, 17.0 ],
"numoutlets" : 1,
"id" : "obj-22",
"outlettype" : [ "bang" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 12",
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 136.0, 465.0, 32.5, 17.0 ],
"numoutlets" : 1,
"id" : "obj-24",
"outlettype" : [ "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "counter 1 10",
"numinlets" : 5,
"fontsize" : 9.0,
"patching_rect" : [ 136.0, 442.0, 68.0, 17.0 ],
"numoutlets" : 4,
"id" : "obj-25",
"outlettype" : [ "int", "", "", "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "t 1 i",
"numinlets" : 1,
"fontsize" : 9.0,
"patching_rect" : [ 109.0, 388.0, 29.0, 17.0 ],
"numoutlets" : 2,
"id" : "obj-26",
"outlettype" : [ "int", "int" ],
"fontname" : "Arial"
}

}
, {
"box" : {
"maxclass" : "slider",
"numinlets" : 1,
"knobcolor" : [ 1.0, 0.439216, 0.439216, 1.0 ],
"bgcolor" : [ 0.984314, 1.0, 0.682353, 1.0 ],
"patching_rect" : [ 107.5, 224.0, 27.0, 68.0 ],
"numoutlets" : 1,
"bordercolor" : [ 1.0, 0.8, 0.0, 1.0 ],
"id" : "obj-19",
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "button",
"numinlets" : 1,
"patching_rect" : [ 180.0, 221.0, 20.0, 20.0 ],
"numoutlets" : 1,
"id" : "obj-14",
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "number",
"numinlets" : 1,
"fontsize" : 12.0,
"patching_rect" : [ 108.0, 313.0, 50.0, 23.0 ],
"numoutlets" : 2,
"id" : "obj-30",
"outlettype" : [ "int", "bang" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0, 127 3000",
"numinlets" : 2,
"fontsize" : 12.0,
"patching_rect" : [ 110.0, 124.0, 78.0, 21.0 ],
"numoutlets" : 1,
"id" : "obj-29",
"outlettype" : [ "" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line 1 20",
"numinlets" : 3,
"color" : [ 0.94902, 1.0, 0.0, 1.0 ],
"fontsize" : 12.0,
"patching_rect" : [ 109.0, 188.0, 161.0, 23.0 ],
"numoutlets" : 3,
"id" : "obj-28",
"outlettype" : [ "", "", "" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "outlet",
"numinlets" : 1,
"patching_rect" : [ 38.0, 743.0, 15.0, 15.0 ],
"numoutlets" : 0,
"id" : "obj-2",
"comment" : ""
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "midi 0 0 144 $1 $2",
"linecount" : 2,
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 38.0, 704.0, 85.0, 30.0 ],
"numoutlets" : 1,
"id" : "obj-3",
"outlettype" : [ "" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "pack 0 0",
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 39.0, 668.0, 286.0, 19.0 ],
"numoutlets" : 1,
"id" : "obj-4",
"outlettype" : [ "" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "3000",
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 307.0, 109.0, 32.5, 17.0 ],
"numoutlets" : 1,
"id" : "obj-6",
"outlettype" : [ "" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "67",
"numinlets" : 2,
"fontsize" : 9.0,
"patching_rect" : [ 39.0, 106.0, 32.5, 17.0 ],
"numoutlets" : 1,
"id" : "obj-7",
"outlettype" : [ "" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "makenote 64 800",
"numinlets" : 3,
"fontsize" : 9.0,
"patching_rect" : [ 40.0, 584.0, 286.0, 19.0 ],
"numoutlets" : 2,
"id" : "obj-9",
"outlettype" : [ "int", "int" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "loadbang",
"numinlets" : 1,
"fontsize" : 9.0,
"patching_rect" : [ 40.0, 64.0, 45.0, 19.0 ],
"numoutlets" : 1,
"id" : "obj-10",
"outlettype" : [ "bang" ],
"fontname" : "Comic Sans MS"
}

}
, {
"box" : {
"maxclass" : "inlet",
"numinlets" : 0,
"patching_rect" : [ 40.0, 37.0, 15.0, 15.0 ],
"numoutlets" : 1,
"id" : "obj-11",
"outlettype" : [ "bang" ],
"comment" : ""
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-26", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-26", 0 ],
"destination" : [ "obj-22", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-22", 0 ],
"destination" : [ "obj-25", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-22", 0 ],
"hidden" : 0,
"midpoints" : [ 181.5, 510.0, 215.0, 510.0, 215.0, 396.0, 145.5, 396.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-25", 0 ],
"destination" : [ "obj-24", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-24", 0 ],
"destination" : [ "obj-20", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-36", 0 ],
"destination" : [ "obj-4", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 1 ],
"destination" : [ "obj-36", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-20", 1 ],
"destination" : [ "obj-9", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-25", 2 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-29", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-30", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-19", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 1 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-9", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ 49.5, 95.0, 316.5, 95.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}
,
"saved_object_attributes" : {
"fontface" : 0,
"default_fontface" : 0,
"fontsize" : 12.0,
"default_fontname" : "Comic Sans MS",
"default_fontsize" : 12.0,
"globalpatchername" : "",
"fontname" : "Comic Sans MS"
}

}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}

jko's icon

In Order to make 127 Notes all with the same pitch but with rising velocities from 0 to 127 you could use an uzi. But that does not make to much sense I guess...

Max Patch
Copy patch and select New From Clipboard in Max.

But any way, uzi is always a good idea for getting a series of numbers from one bang....