Forums > MaxMSP

Midi notes+slider HELP

May 16, 2006 | 11:13 am

hello, ones again…
i would like to create a slider that when its value is more than 0 to send a midi note bang for example C3 to midiout and then be able to change the velocity by changing the slider value…

what i’ve done is create a slider and a message box with the value 60 and then something like this ( i put an image) but the problem is that every time i change the slider value it bangs an new note..
any ideas

PLEASE if you would like to answer "check the help files" just like that in general PLEASE dont anwser at all
thnx


May 16, 2006 | 11:22 am

I guess have a look at the object ‘>’, ‘select’, ‘change’ and use 2 separate sliders then play and take it from there …

And … no, do not look at the helpfiles, but looking at the manual could be a good idea … :)?
S


May 16, 2006 | 11:23 am

slider -> sel 0

the right out of sel -> t 60 $1

should be what you need

kasper


Kasper T. Toeplitz
noise, composition, bass, computer

http://www.sleazeArt.com


May 16, 2006 | 1:02 pm

On 16 May 2006, at 12:13, dimitris_salvador wrote:

> what i’ve done is create a slider and a message box with the value
> 60 and then something like this ( i put an image) but the problem
> is that every time i change the slider value it bangs an new note..
> any ideas

Your image didn’t come through, so I’m not sure I understand what
you’re asking.

It’s not possible to change the velocity of a note once it’s
sounding: the velocity value is the velocity of the key used to
trigger the note, so the only way to impose a change of velocity is
with a new note (while presumably terminating the old one). Are you
trying to get volume control?

– N.

nick rothwell — composition, systems, performance — http://
http://www.cassiel.com


May 16, 2006 | 9:28 pm

ok tha was a little tricky…i will try some of your advice Thank you all of you..
but lets change the idea to be possibly after many of you told me that is hard or not able to change the velocity of the note…
lets say i want every time the fader gets a value play the C1 note as long as my slider has value greater than 0…
but the different part who to make my slider dont send any other bangs when i move it from (for example) 1 to 127….(i dont want to change the velocity here..if its not able)…
you are great guys…thnx


May 17, 2006 | 9:59 am

dimitris_salvador wrote:
> after many of you told me that is hard or not able to change the
> velocity of the note…

It might be hard, but never believe that its not possible (see patch
below) The faster you start, the higher the velocity…

> lets say i want every time the fader gets a value play the C1 note as
> long as my slider has value greater than 0… but the different part
> who to make my slider dont send any other bangs when i move it from
> (for example) 1 to 127

There is a change object…

The patch is all you wanted for this thread I guess… ;-)

Stefan

#P window setfont "Sans Serif" 9.;
#P number 253 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 124 266 50 196617 60 $1;
#P newex 124 293 50 196617 noteout;
#P newex 179 204 55 196617 delay 100;
#P toggle 161 158 15 0;
#P number 253 135 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 179 265 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 179 179 40 196617 sel 1;
#P newex 179 225 67 196617 int;
#P newex 179 157 40 196617 change;
#P newex 179 134 40 196617 > 0;
#P newex 236 96 50 196617 ctlin 7;
#P window linecount 4;
#P comment 292 170 100 196617 changeable initiasation time for
determining the velocity;
#P connect 12 0 9 1;
#P fasten 4 0 11 0 184 243;
#P connect 4 0 6 0;
#P connect 11 0 10 0;
#P fasten 5 1 11 0 214 200 129 200;
#P connect 1 0 2 0;
#P connect 1 0 4 1;
#P connect 1 0 7 0;
#P connect 5 0 9 0;
#P connect 9 0 4 0;
#P connect 2 0 8 0;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P window clipboard copycount 13;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


Viewing 6 posts - 1 through 6 (of 6 total)