Statistics: Posted by pansoul — 04 Mar 2009, 19:58
CODE:
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 transpoVal := getValue(transpo); // get the transpo value for i := 0 to nbOfMidi-1 // loop for all input codes, for polyphonic data (chords) do begin GetMidiArrayValue(input,i,ReceivedMidi); // get each code ReceivedMidi.data1 := ReceivedMidi.data1+trunc(transpoVal); // calculate transpo SetMidiArrayValue(output,i,ReceivedMidi); // set output value end; end else SetLength(outPut,0); // nothing received, set out length to 0end.CODE:
begin nbOfMidi := GetLength(input); // get the number of incoming midi codes if nbOfMidi > 0 then begin transpoVal := getValue(transpo); // get the transpo value for i := 0 to nbOfMidi-1 // loop for all input codes, for polyphonic data (chords) do begin GetMidiArrayValue(input,i,ReceivedMidi); // get each code ReceivedMidi.data1 := ReceivedMidi.data1+trunc(transpoVal); // calculate transpo SetMidiArrayValue(output,i,ReceivedMidi); // set output value end; end; SetLength(outPut, nbOfMidi);end.Statistics: Posted by bsork — 04 Mar 2009, 09:18
Statistics: Posted by pansoul — 04 Mar 2009, 00:19
Statistics: Posted by bsork — 04 Mar 2009, 00:01
this script works well it means that when thebeat = GetValue(beat-synchro-externe);
if (beat = 2)
then begin
setvalue(Out-data,88);
end
else begin
setvalue(Out-data,89);
end
is there a problem in my way of generating midi ?beat = GetValue(beat-synchro-externe);
if (beat = 2)
then begin
setvalue(Out-data,88);
end
else begin
Midi-note.Msg := 144;
Midi-note.Data1 := 37;
Midi-note.Data2 := 100;
Midi-note.Channel := 4;
SetMidiArrayValue(out-mid,0,Midi-note);
SetLength(out-mid,1);
end
Statistics: Posted by pansoul — 03 Mar 2009, 22:53
Statistics: Posted by pansoul — 04 Mar 2009, 19:58
CODE:
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 transpoVal := getValue(transpo); // get the transpo value for i := 0 to nbOfMidi-1 // loop for all input codes, for polyphonic data (chords) do begin GetMidiArrayValue(input,i,ReceivedMidi); // get each code ReceivedMidi.data1 := ReceivedMidi.data1+trunc(transpoVal); // calculate transpo SetMidiArrayValue(output,i,ReceivedMidi); // set output value end; end else SetLength(outPut,0); // nothing received, set out length to 0end.CODE:
begin nbOfMidi := GetLength(input); // get the number of incoming midi codes if nbOfMidi > 0 then begin transpoVal := getValue(transpo); // get the transpo value for i := 0 to nbOfMidi-1 // loop for all input codes, for polyphonic data (chords) do begin GetMidiArrayValue(input,i,ReceivedMidi); // get each code ReceivedMidi.data1 := ReceivedMidi.data1+trunc(transpoVal); // calculate transpo SetMidiArrayValue(output,i,ReceivedMidi); // set output value end; end; SetLength(outPut, nbOfMidi);end.Statistics: Posted by bsork — 04 Mar 2009, 09:18
Statistics: Posted by pansoul — 04 Mar 2009, 00:19
Statistics: Posted by bsork — 04 Mar 2009, 00:01
this script works well it means that when thebeat = GetValue(beat-synchro-externe);
if (beat = 2)
then begin
setvalue(Out-data,88);
end
else begin
setvalue(Out-data,89);
end
is there a problem in my way of generating midi ?beat = GetValue(beat-synchro-externe);
if (beat = 2)
then begin
setvalue(Out-data,88);
end
else begin
Midi-note.Msg := 144;
Midi-note.Data1 := 37;
Midi-note.Data2 := 100;
Midi-note.Channel := 4;
SetMidiArrayValue(out-mid,0,Midi-note);
SetLength(out-mid,1);
end
Statistics: Posted by pansoul — 03 Mar 2009, 22:53