ArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2007-11-15T19:21:42+02:00 https://brainmodular.com/forums/app.php/feed/topic/620 2007-11-15T19:21:42+02:00 2007-11-15T19:21:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3142#p3142 <![CDATA[I need to filter all notes off message]]>
I have found a midi filter plugin that is able to do exactly what I want - filtering out (kill) a specific midi msg! easier for me than do deal with scripts...

If interested it can be found here
http://www.kvraudio.com/forum/viewtopic.php?t=192282
-> midi notch filter

Statistics: Posted by nofish — 15 Nov 2007, 18:21


]]>
2007-11-15T13:01:31+02:00 2007-11-15T13:01:31+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3140#p3140 <![CDATA[I need to filter all notes off message]]>

CODE:

VAR j &#58; integer;...if nbOfMidi > 0 then begin    j &#58;= 0;    for i &#58;= 0 to nbOfMidi-1     do begin      GetMidiArrayValue&#40;input, i, ReceivedMidi&#41;;       if ReceivedMidi.Msg <> 128 then begin         SetMidiArrayValue&#40;output, j, ReceivedMidi&#41;;         j &#58;= j + 1;      end;    end;    SetLength&#40;outPut, j&#41;;end else SetLength&#40;outPut,0&#41;;
I don't remember whether you have to set the required length before you fill the array with data, and I'm at work so I haven't got the time to check either, but you might have to keep the SetLength(outPut,nbOfMidi) part before the loop.

Statistics: Posted by bsork — 15 Nov 2007, 12:01


]]>
2007-11-15T12:12:47+02:00 2007-11-15T12:12:47+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3139#p3139 <![CDATA[I need to filter all notes off message]]> //////////////////////////
// Filter midi out message
/////////////////////////
// parameters declaration
var input : Tparameter;
var output : Tparameter;

// initialisation : create parameters
procedure init;
begin
Input := CreateParam('In',ptMidi);
Output := CreateParam('Out',ptMidi);

SetIsInput(Output,false);
SetIsOutPut(Input,false);

end;

// Global variables
var i : integer;
var nbOfMidi : integer;
var ReceivedMidi : TMidi;

//////////////////////////////
// main proc
//////////////////////////////
begin
nbOfMidi := GetLength(input); // get the number of incoming midi codes
if nbOfMidi > 0
then begin
SetLength(outPut,nbOfMidi); // set the number of output codes
for i := 0 to nbOfMidi-1 // loop for all input codes, for polyphonic data (chords)
do begin
GetMidiArrayValue(input,i,ReceivedMidi); // get each code
if ReceivedMidi.Msg <> 128 then SetMidiArrayValue(output,i,ReceivedMidi); // set output value
end;
end
else SetLength(outPut,0); // nothing received, set out length to 0

end.

I didn't test this, since I'm at work, but it should work....
It filters out on midi channel 1, if you need other channels just change the value 128

k

Statistics: Posted by kara — 15 Nov 2007, 11:12


]]>
2007-11-05T22:24:12+02:00 2007-11-05T22:24:12+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3082#p3082 <![CDATA[I need to filter all notes off message]]>
Annoying, isn't it? I used to have a synth once which did the same - a Roland JX3p I think. If the DX7 or TX7 got the all notes off message while sounding, they would emit louds klooiings or something.

Statistics: Posted by bsork — 05 Nov 2007, 21:24


]]>
2007-11-05T18:07:32+02:00 2007-11-05T18:07:32+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3079#p3079 <![CDATA[I need to filter all notes off message]]>
Haven't found anything in the keyboard's manual to turn it off...
Any idea how I can filter out this all notes off message without affecting the normal notes off message? Have tried Usine's Midi filter module but this also filters the normal note off msg which isn't usefull for organ etc.

Statistics: Posted by nofish — 05 Nov 2007, 17:07


]]>
BrainModular BrainModular Users Forum 2007-11-15T19:21:42+02:00 https://brainmodular.com/forums/app.php/feed/topic/620 2007-11-15T19:21:42+02:00 2007-11-15T19:21:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3142#p3142 <![CDATA[I need to filter all notes off message]]>
I have found a midi filter plugin that is able to do exactly what I want - filtering out (kill) a specific midi msg! easier for me than do deal with scripts...

If interested it can be found here
http://www.kvraudio.com/forum/viewtopic.php?t=192282
-> midi notch filter

Statistics: Posted by nofish — 15 Nov 2007, 18:21


]]>
2007-11-15T13:01:31+02:00 2007-11-15T13:01:31+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3140#p3140 <![CDATA[I need to filter all notes off message]]>

CODE:

VAR j &#58; integer;...if nbOfMidi > 0 then begin    j &#58;= 0;    for i &#58;= 0 to nbOfMidi-1     do begin      GetMidiArrayValue&#40;input, i, ReceivedMidi&#41;;       if ReceivedMidi.Msg <> 128 then begin         SetMidiArrayValue&#40;output, j, ReceivedMidi&#41;;         j &#58;= j + 1;      end;    end;    SetLength&#40;outPut, j&#41;;end else SetLength&#40;outPut,0&#41;;
I don't remember whether you have to set the required length before you fill the array with data, and I'm at work so I haven't got the time to check either, but you might have to keep the SetLength(outPut,nbOfMidi) part before the loop.

Statistics: Posted by bsork — 15 Nov 2007, 12:01


]]>
2007-11-15T12:12:47+02:00 2007-11-15T12:12:47+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3139#p3139 <![CDATA[I need to filter all notes off message]]> //////////////////////////
// Filter midi out message
/////////////////////////
// parameters declaration
var input : Tparameter;
var output : Tparameter;

// initialisation : create parameters
procedure init;
begin
Input := CreateParam('In',ptMidi);
Output := CreateParam('Out',ptMidi);

SetIsInput(Output,false);
SetIsOutPut(Input,false);

end;

// Global variables
var i : integer;
var nbOfMidi : integer;
var ReceivedMidi : TMidi;

//////////////////////////////
// main proc
//////////////////////////////
begin
nbOfMidi := GetLength(input); // get the number of incoming midi codes
if nbOfMidi > 0
then begin
SetLength(outPut,nbOfMidi); // set the number of output codes
for i := 0 to nbOfMidi-1 // loop for all input codes, for polyphonic data (chords)
do begin
GetMidiArrayValue(input,i,ReceivedMidi); // get each code
if ReceivedMidi.Msg <> 128 then SetMidiArrayValue(output,i,ReceivedMidi); // set output value
end;
end
else SetLength(outPut,0); // nothing received, set out length to 0

end.

I didn't test this, since I'm at work, but it should work....
It filters out on midi channel 1, if you need other channels just change the value 128

k

Statistics: Posted by kara — 15 Nov 2007, 11:12


]]>
2007-11-05T22:24:12+02:00 2007-11-05T22:24:12+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3082#p3082 <![CDATA[I need to filter all notes off message]]>
Annoying, isn't it? I used to have a synth once which did the same - a Roland JX3p I think. If the DX7 or TX7 got the all notes off message while sounding, they would emit louds klooiings or something.

Statistics: Posted by bsork — 05 Nov 2007, 21:24


]]>
2007-11-05T18:07:32+02:00 2007-11-05T18:07:32+02:00 https://brainmodular.com/forums/viewtopic.php?t=620&p=3079#p3079 <![CDATA[I need to filter all notes off message]]>
Haven't found anything in the keyboard's manual to turn it off...
Any idea how I can filter out this all notes off message without affecting the normal notes off message? Have tried Usine's Midi filter module but this also filters the normal note off msg which isn't usefull for organ etc.

Statistics: Posted by nofish — 05 Nov 2007, 17:07


]]>