Statistics: Posted by woodslanding — 14 May 2009, 10:00
Statistics: Posted by woodslanding — 14 May 2009, 09:51
CODE:
//////////////////////////// send out 24 notes/////////////////////////// parameters declarationvar output : Tparameter;var trigger : Tparameter;var start : integer;// initialisation : create parametersprocedure init;begin Output := CreateParam('Out',ptMidi); SetIsInput(Output,false); trigger := CreateParam('trig',ptButton); SetIsOutput(Trigger,false); end;// Global variablesvar i : integer;var noteOn : TMidi;var noteOff : TMidi;var vol : TMidi;//////////////////////////////// main proc//////////////////////////////begin start := trunc(getValue(Trigger)); if start = 1 then begin writeln('in loop'); SetLength(outPut,50); // set the number of output codes vol.data1 := 7; vol.data2 := 0; vol.msg := 176; vol.channel := 1; SetMidiArrayValue(output,0,vol); for i := 1 to 24 // loop for all input codes, for polyphonic data (chords) do begin noteOn.data1 := i + 12; noteOn.data2 := 1; noteOn.msg := 144; noteOn.channel := 1; SetMidiArrayValue(output,i,noteOn); // set output value end for i := 25 to 48 do begin noteOff.data1 := i - 12; noteOff.data2 := 0; noteOff.msg := 128; noteOff.channel := 1; SetMidiArrayValue(output,i,noteOff); // set output value end; vol.data1 := 7; vol.data2 := 127; vol.msg := 176; vol.channel := 1; SetMidiArrayValue(output,49,vol); end else begin SetLength(output, 0); end; SetValue(Trigger, 0);end.Statistics: Posted by woodslanding — 14 May 2009, 09:00
Statistics: Posted by woodslanding — 11 May 2009, 06:51
Statistics: Posted by bmoussay — 09 May 2009, 09:42
CODE:
//////////////////////////// send out 24 notes/////////////////////////// parameters declarationvar output : Tparameter;var trigger : Tparameter;var start : integer;// initialisation : create parametersprocedure init;begin Output := CreateParam('Out',ptMidi); SetIsInput(Output,false); trigger := CreateParam('trig',ptButton); SetIsOutput(Trigger,false); end;// Global variablesvar i : integer;var noteOn : TMidi;var noteOff : TMidi;//////////////////////////////// main proc//////////////////////////////begin start := trunc(getValue(Trigger)); if start = 1 then begin writeln('in loop'); SetLength(outPut,48); // set the number of output codes for i := 0 to 23 // loop for all input codes, for polyphonic data (chords) do begin noteOn.data1 := i + 12; noteOn.data2 := 1; noteOn.msg := 128; SetMidiArrayValue(output,i,noteOn); // set output value end for i := 24 to 47 do begin noteOff.data1 := i - 12; noteOff.data2 := 0; noteOff.msg := 128; SetMidiArrayValue(output,i,noteOff); // set output value end; end else begin end;end.Statistics: Posted by woodslanding — 09 May 2009, 07:40
Statistics: Posted by woodslanding — 14 May 2009, 10:00
Statistics: Posted by woodslanding — 14 May 2009, 09:51
CODE:
//////////////////////////// send out 24 notes/////////////////////////// parameters declarationvar output : Tparameter;var trigger : Tparameter;var start : integer;// initialisation : create parametersprocedure init;begin Output := CreateParam('Out',ptMidi); SetIsInput(Output,false); trigger := CreateParam('trig',ptButton); SetIsOutput(Trigger,false); end;// Global variablesvar i : integer;var noteOn : TMidi;var noteOff : TMidi;var vol : TMidi;//////////////////////////////// main proc//////////////////////////////begin start := trunc(getValue(Trigger)); if start = 1 then begin writeln('in loop'); SetLength(outPut,50); // set the number of output codes vol.data1 := 7; vol.data2 := 0; vol.msg := 176; vol.channel := 1; SetMidiArrayValue(output,0,vol); for i := 1 to 24 // loop for all input codes, for polyphonic data (chords) do begin noteOn.data1 := i + 12; noteOn.data2 := 1; noteOn.msg := 144; noteOn.channel := 1; SetMidiArrayValue(output,i,noteOn); // set output value end for i := 25 to 48 do begin noteOff.data1 := i - 12; noteOff.data2 := 0; noteOff.msg := 128; noteOff.channel := 1; SetMidiArrayValue(output,i,noteOff); // set output value end; vol.data1 := 7; vol.data2 := 127; vol.msg := 176; vol.channel := 1; SetMidiArrayValue(output,49,vol); end else begin SetLength(output, 0); end; SetValue(Trigger, 0);end.Statistics: Posted by woodslanding — 14 May 2009, 09:00
Statistics: Posted by woodslanding — 11 May 2009, 06:51
Statistics: Posted by bmoussay — 09 May 2009, 09:42
CODE:
//////////////////////////// send out 24 notes/////////////////////////// parameters declarationvar output : Tparameter;var trigger : Tparameter;var start : integer;// initialisation : create parametersprocedure init;begin Output := CreateParam('Out',ptMidi); SetIsInput(Output,false); trigger := CreateParam('trig',ptButton); SetIsOutput(Trigger,false); end;// Global variablesvar i : integer;var noteOn : TMidi;var noteOff : TMidi;//////////////////////////////// main proc//////////////////////////////begin start := trunc(getValue(Trigger)); if start = 1 then begin writeln('in loop'); SetLength(outPut,48); // set the number of output codes for i := 0 to 23 // loop for all input codes, for polyphonic data (chords) do begin noteOn.data1 := i + 12; noteOn.data2 := 1; noteOn.msg := 128; SetMidiArrayValue(output,i,noteOn); // set output value end for i := 24 to 47 do begin noteOff.data1 := i - 12; noteOff.data2 := 0; noteOff.msg := 128; SetMidiArrayValue(output,i,noteOff); // set output value end; end else begin end;end.Statistics: Posted by woodslanding — 09 May 2009, 07:40