midi more effeicient

Nov 9, 2008 at 10:10pm

midi more effeicient

Hello,

I encountered a problem today trying to play VST Instruments with my Midi Keyboard. My aim is to include a VSTi of a Juno60, cause my real Juno is almost dead, and i’m used to play with its sounds and max/msp as processing its sound.
But the problem is that, on several times, some note-off events drop-out and those notes keep playing until i press them again.

With a kslider in polyphonic mode just before the vst~ midi event message, i’ve seen that all data are correctly processed downto there. It seems that only teh vst~ object “miss” some messages.

So, 3 questions :
1/ is that a bug of vst~ object ?
2/ is there anything to do in mas options to avoid this ?
3/ is there any other solution ?

Thank you !
Fred CAZAUX

Here is the simple patch i’ve used to try :

max v2;
#N vpatcher 0 0 1280 757;
#P window setfont “Sans Serif” 9.;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P newex 56 475 92 9109513 prepend midievent;
#N comlet midievent;
#P outlet 56 506 15 0;
#P message 551 283 35 9109513 set $1;
#P message 551 254 35 9109513 set $1;
#P newex 588 253 29 9109513 + 16;
#P newex 551 414 64 9109513 prepend 124;
#P newex 452 414 64 9109513 prepend 208;
#P message 551 226 35 9109513 set $1;
#P newex 588 225 29 9109513 + 16;
#P message 551 194 35 9109513 set $1;
#P newex 588 193 29 9109513 + 16;
#P newex 353 415 64 9109513 prepend 192;
#P newex 254 415 64 9109513 prepend 176;
#P newex 155 416 64 9109513 prepend 160;
#P message 551 163 35 9109513 set $1;
#P newex 588 162 29 9109513 + 16;
#P message 551 130 35 9109513 set $1;
#P newex 56 416 64 9109513 prepend 144;
#P newex 588 129 29 9109513 + 16;
#P newex 551 101 37 9109513 + 143;
#N comlet raw midiin;
#P inlet 56 47 15 0;
#P newex 56 74 135 9109513 midiparse;
#P connect 1 0 0 0;
#P connect 5 0 4 0;
#P connect 0 0 4 0;
#P connect 4 0 21 0;
#P connect 8 0 21 0;
#P connect 9 0 21 0;
#P connect 10 0 21 0;
#P connect 15 0 21 0;
#P connect 16 0 21 0;
#P connect 21 0 20 0;
#P connect 7 0 8 0;
#P connect 0 1 8 0;
#P connect 12 0 9 0;
#P connect 0 2 9 0;
#P connect 14 0 10 0;
#P connect 0 3 10 0;
#P connect 18 0 15 0;
#P connect 0 4 15 0;
#P connect 0 6 2 0;
#P connect 2 0 5 0;
#P connect 3 0 7 0;
#P connect 6 0 12 0;
#P connect 11 0 14 0;
#P connect 13 0 18 0;
#P connect 17 0 19 0;
#P connect 0 5 16 0;
#P connect 19 0 16 0;
#P connect 2 0 3 0;
#P connect 3 0 6 0;
#P connect 6 0 11 0;
#P connect 11 0 13 0;
#P connect 13 0 17 0;
#P pop;
#P newobj 34 83 47 9109513 p raw2list;
#P message 231 82 32 9109513 get -7;
#P message 116 74 25 9109513 plug;
#P user ezdac~ 46 213 90 246 0;
#N vst~ loaduniqueid 0;
#P newobj 52 125 79 9109513 vst~;
#P newex 49 47 32 9109513 midiin;
#P connect 0 0 5 0;
#P connect 1 0 2 0;
#P connect 5 0 1 0;
#P connect 3 0 1 0;
#P connect 4 0 1 0;
#P connect 1 0 2 1;
#P pop;

#40753
Nov 11, 2008 at 9:50pm

Nobody has an idea ? Please !???…

I would really not to have to run another software in Rewire just to use my VST instruments… And in that case, i’m not sure i wouldn’t get the same problem !!!

Please help me make those midievent more efficient !!!
Thank you…

#144503
Nov 11, 2008 at 10:25pm

I assume you’re on Windows.

Are you using 4.6.3?

Do you see any errors like “effect doesn’t want midievents” in the max window?

What plug are you using?

Why don’t you just use a [zl group 3] and [prepend midievent] after the midiin?

-A

#144504
Nov 11, 2008 at 10:49pm

Actually your patch is better than my idea, which won’t work for prog changes.

Let us know about the other things though.

-A

#144505
Nov 12, 2008 at 7:05am

Quote: Andrew Pask wrote on Tue, 11 November 2008 23:25
—————————————————-
>
>
> I assume you’re on Windows.
>
> Are you using 4.6.3?
>
> Do you see any errors like “effect doesn’t want midievents” in the max window?
>
> What plug are you using?
>
> Why don’t you just use a [zl group 3] and [prepend midievent] after the midiin?
>
> -A
—————————————————-

Actually i’m on windows with a 4.5.7 version. I don’t have any error in the max window… And my problem occurs with any VSTi i use.
I just have some events errors : wrong notes are played, and others keep playing without understanding the note-off message. In fact, it seems the VSTi receives all messages but the note number is often wrong so that wrong notes are played, and note off occur on unplayed notes and leave de played notes without note-off message then…

Is there anybody else who has that problem ? Any solution found ?
Thanx Andrey for your try !

#144506
Nov 12, 2008 at 7:14am

Andrew Pask schrieb:
> Why don’t you just use a [zl group 3] and [prepend midievent] after the midiin?

Not all midievents have 3 bytes, you’d have to keep up with running
status???

A simple program change would screw it…

I do it like that:

– Pasted Max Patch, click to expand. –


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

#144507
Nov 12, 2008 at 7:22am

Actually, the last version of my patch to test is the one below…

And as i’ve said, the kslider displays correct as the VSTi play wrong… So i assume this is in the vst~ object that the error occurs !

Stefan, could you please give us a max 4 version of your patch. I would like to compare yours and mine, and try yours on those very errors i get.
Thanx…

max v2;
#N vpatcher 0 0 1280 757;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N vpatcher 15 55 615 455;
#P user kslider 203 607 54 0 48 96 31 12 1 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P window setfont “Sans Serif” 9.;
#P message 189 559 31 9109513 $2 $3;
#P newex 177 512 73 9109513 route midievent;
#P newex 56 475 92 9109513 prepend midievent;
#N comlet midievent;
#P outlet 56 506 15 0;
#P message 551 283 35 9109513 set $1;
#P message 551 254 35 9109513 set $1;
#P newex 588 253 29 9109513 + 16;
#P newex 551 414 64 9109513 prepend 124;
#P newex 452 414 64 9109513 prepend 208;
#P message 551 226 35 9109513 set $1;
#P newex 588 225 29 9109513 + 16;
#P message 551 194 35 9109513 set $1;
#P newex 588 193 29 9109513 + 16;
#P newex 353 415 64 9109513 prepend 192;
#P newex 254 415 64 9109513 prepend 176;
#P newex 155 416 64 9109513 prepend 160;
#P message 551 163 35 9109513 set $1;
#P newex 588 162 29 9109513 + 16;
#P message 551 130 35 9109513 set $1;
#P newex 56 416 64 9109513 prepend 144;
#P newex 588 129 29 9109513 + 16;
#P newex 551 101 37 9109513 + 143;
#N comlet raw midiin;
#P inlet 56 47 15 0;
#P newex 56 74 135 9109513 midiparse;
#P connect 1 0 0 0;
#P connect 0 0 4 0;
#P connect 5 0 4 0;
#P connect 16 0 21 0;
#P connect 15 0 21 0;
#P connect 10 0 21 0;
#P connect 9 0 21 0;
#P connect 8 0 21 0;
#P connect 4 0 21 0;
#P connect 21 0 20 0;
#P connect 0 1 8 0;
#P connect 7 0 8 0;
#P connect 21 0 22 0;
#P connect 22 0 23 0;
#P connect 23 0 24 0;
#P connect 0 2 9 0;
#P connect 12 0 9 0;
#P connect 0 3 10 0;
#P connect 14 0 10 0;
#P connect 0 4 15 0;
#P connect 18 0 15 0;
#P connect 0 6 2 0;
#P connect 2 0 5 0;
#P connect 3 0 7 0;
#P connect 6 0 12 0;
#P connect 11 0 14 0;
#P connect 13 0 18 0;
#P connect 17 0 19 0;
#P connect 19 0 16 0;
#P connect 0 5 16 0;
#P connect 2 0 3 0;
#P connect 3 0 6 0;
#P connect 6 0 11 0;
#P connect 11 0 13 0;
#P connect 13 0 17 0;
#P pop;
#P newobj 94 143 47 9109513 p raw2list;
#P message 291 142 32 9109513 get -7;
#P message 176 134 25 9109513 plug;
#P user ezdac~ 106 273 150 306 0;
#N vst~ loaduniqueid 0;
#P newobj 112 185 79 9109513 vst~;
#P newex 109 107 32 9109513 midiin;
#P connect 0 0 5 0;
#P connect 1 0 2 0;
#P connect 4 0 1 0;
#P connect 3 0 1 0;
#P connect 5 0 1 0;
#P connect 1 0 2 1;
#P pop;

#144508
Nov 12, 2008 at 7:42am


Cool patch Stefan.

There were some problems with vst~ synth behaviour which got fixed in Max5. So far it doesn’t sound like this is it though. If your patch works in Max 5 then great.If it doesn’t, then please send all the details of what you are doing and what synth you’re loading into support.

support at cycling 74 dot com

We cannot promise that vst~ versions prior to Max 5 will get updated.

-A

#144509
Nov 12, 2008 at 8:13am

On 12 nov. 08, at 08:22, Fred CAZAUX wrote:
>
> And as i’ve said, the kslider displays correct as the VSTi play
> wrong… So i assume this is in the vst~ object that the error
> occurs !

I had the same type of errors on OSX (I don’t remember if it was with
Max4.5 or 4.6) with MOTU’s MachFive sampler and never found a
solution. The noteoff was received by Max, but sometimes not performed
by the [vst~]… Fortunately, this only happened during rehearsals.

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://www.crfmw.be/max

#144510
Nov 12, 2008 at 12:16pm

Upgrade go 4.6.3 (it’s a free update from Max 4.5) and contact support
if the problem persist.

ej

On 12 nov. 08, at 08:05, Fred CAZAUX wrote:

>
> Quote: Andrew Pask wrote on Tue, 11 November 2008 23:25
> —————————————————-
>>
>>
>> I assume you’re on Windows.
>>
>> Are you using 4.6.3?
>>
>> Do you see any errors like “effect doesn’t want midievents” in the
>> max window?
>>
>> What plug are you using?
>>
>> Why don’t you just use a [zl group 3] and [prepend midievent] after
>> the midiin?
>>
>> -A
> —————————————————-
>
> Actually i’m on windows with a 4.5.7 version. I don’t have any error
> in the max window… And my problem occurs with any VSTi i use.
> I just have some events errors : wrong notes are played, and others
> keep playing without understanding the note-off message. In fact, it
> seems the VSTi receives all messages but the note number is often
> wrong so that wrong notes are played, and note off occur on unplayed
> notes and leave de played notes without note-off message then…
>
> Is there anybody else who has that problem ? Any solution found ?
> Thanx Andrey for your try !
> –
> Fred CAZAUX
> http://www.fredcazaux.com

#144511
Nov 12, 2008 at 5:06pm

Quote: Emmanuel Jourdan wrote on Wed, 12 November 2008 13:16
—————————————————-
> Upgrade go 4.6.3 (it’s a free update from Max 4.5) and contact support
> if the problem persist.
>
> ej
>
>
—————————————————-

I’ve done the upgrade yet, and it still doesnt work…
Beginning thinking of a conflict with anything in my PC.
Doesn’t it occur for anyone else than me ?

#144512
Nov 13, 2008 at 9:41pm

#144513
Nov 13, 2008 at 11:06pm

I think you’re right, my patch should work as well… but in fact, yours actually doesn’t work better…
So, i can now think of 3 possibilities : a conflict on my PC, a problem on my install of Max / MSP, or a bug of version above 5.
I’ll try to download demo of Max5, and open my patch to test it…

I’ll do it tomorow and tell you the results then…
Hope i’ll find another solution, cause i dont have the money to upgrade to Max5 !…

#144514
Nov 14, 2008 at 6:46pm

So,
New tests done !
Installed demo version of Max5.0.5, opened my patch, no error displayed on the max window…
played some notes with different VSTi, and stille the same errors, some notes stay unplayed, and some played notes never shut off until i fire it again…

So, i’m sure now that something is wrong on my computer and makes vst~ component get in trouble ! but what ???
Still asking for any comment, idea, solution, whatever you want that can make me go further in resolving that problem !

Thanx…

#144515
Nov 14, 2008 at 7:37pm

Me again…
I have just installed my Presonus FP10, my Midi Keyboard, MaxMSP 4.5.7 on a friend’s PC… opened my patch, played, and played, and played, and no error occured !

So, something wrong on my computer could make MaxMSP bug ?
I’ll try to shut down all running applications and services one by one and check if it does anything better…

If you have any idea, still looking for…
Thx again…

#144516
Nov 14, 2008 at 8:18pm

I may have found the solution ! How possible nobody, and neither I did think of it !? Overdrive !
I didn’t check Overdrive and Scheduler in Audio Interrupt since the last time i’ve reinstalled Max !
And this is the first time in fact i really notice the use of this !
I have played a while just after checking the options, and no error occured ! Hope this is really the solution and that errors won’t occur anymore that way…

Thx

#144517
Nov 16, 2008 at 3:45am

Fred CAZAUX schrieb:
> I may have found the solution ! How possible nobody, and neither I
> did think of it !? Overdrive !

You might have found a bug.
Even with overdrive off VST should play all events, maybe not in a
timely manner, but all…

Stefan


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

#144518

You must be logged in to reply to this topic.