ArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2015-05-05T14:18:25+02:00 https://brainmodular.org/forums/app.php/feed/topic/4893 2015-05-05T14:18:25+02:00 2015-05-05T14:18:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32639#p32639 <![CDATA[MX Midi Scale (user module)]]>
edit: check back right, re oops display works fine in poly but out is mono. damned i need to check better^^ will correct this..

..but i can't understand what is wrong with the code, should work poly to me :/
anybody knows if this can work with callback, no need to use process right?

CODE:

if &#40;sizeMidiIn > 0&#41;&#123;sdkCopyEvt&#40;midiIn, midiOut&#41;;for &#40;int i = 0; i < sizeMidiIn; i++&#41;&#123;UsineMidiCode code = sdkGetEvtArrayMidi&#40;midiOut, i&#41;;if &#40;code.Msg == MIDI_NOTEON || code.Msg == MIDI_NOTEOFF&#41;&#123;int actualnote = code.Data1;int idnote12 = floor&#40;fmodf&#40;actualnote, 12&#41;&#41;;int transpose = sdkGetEvtArrayData&#40;pTranspose, idnote12&#41;;bool play_note = sdkGetEvtArrayData&#40;pONOFFs, idnote12&#41; == 1;if &#40;code.Msg == MIDI_NOTEON&#41;&#123;FLASH&#91;idnote12 + &#40;&#40;12 - idnote12&#41; * 12&#41;&#93; = 1;&#125;else&#123;FLASH&#91;idnote12 + &#40;&#40;12 - idnote12&#41; * 12&#41;&#93; = 0;&#125;if &#40;play_note&#41;&#123;code.Data1 = std&#58;&#58;min&#40;127, std&#58;&#58;max&#40;0, &#40;int&#41;code.Data1 + transpose&#41;&#41;;&#125;else&#123;code.Msg = MIDI_NOTEOFF;&#125;sdkSetEvtArrayMidi&#40;midiOut, i, code&#41;;
Re edit. Im really stupid, i was testing with a monophonic vst :rolleyes: , tested to rec in pianoroll i do see chords on output everuthing is fine in fact :P

Statistics: Posted by 23fx23 — 05 May 2015, 14:18


]]>
2015-05-05T13:39:06+02:00 2015-05-05T13:39:06+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32638#p32638 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by nay-seven — 05 May 2015, 13:39


]]>
2015-05-05T13:06:55+02:00 2015-05-05T13:06:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32636#p32636 <![CDATA[MX Midi Scale (user module)]]> https://drive.google.com/folderview?id= ... sp=sharing

Statistics: Posted by 23fx23 — 05 May 2015, 13:06


]]>
2015-05-05T12:42:18+02:00 2015-05-05T12:42:18+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32634#p32634 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by 23fx23 — 05 May 2015, 12:42


]]>
2015-05-05T11:55:36+02:00 2015-05-05T11:55:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32631#p32631 <![CDATA[MX Midi Scale (user module)]]>
https://drive.google.com/file/d/0B0VUyz ... sp=sharing

Statistics: Posted by 23fx23 — 05 May 2015, 11:55


]]>
2015-05-05T10:11:10+02:00 2015-05-05T10:11:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32630#p32630 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by ceasless — 05 May 2015, 10:11


]]>
2015-05-04T22:24:05+02:00 2015-05-04T22:24:05+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32626#p32626 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by gurulogic — 04 May 2015, 22:24


]]>
2015-05-04T18:22:36+02:00 2015-05-04T18:22:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32624#p32624 <![CDATA[MX Midi Scale (user module)]]>
Ive uploded a little user module that allows to make custom scales and save/recall them via Pm for midi flows.
basically user set up a transpose grid matrix and the input midi will be transposed according the matrix on output.
ie: if linear = no change, if note 2 is 3 instead of 2 on receive it will play 3 on output.
also possibility to mute a note via toggeling cell off.
a little border flash indicate wich note is received.
hope can be useful, let me know if bugz.

Image

( compiled for x32 X64 only for now, but if it goes well for others ill upload the code if someone want to compile for osx.)

/add-ons/midi tools

wiki
http://www.sensomusic.org/wiki3/doku.ph ... s:mx_scale

Statistics: Posted by 23fx23 — 04 May 2015, 18:22


]]>
BrainModular BrainModular Users Forum 2015-05-05T14:18:25+02:00 https://brainmodular.org/forums/app.php/feed/topic/4893 2015-05-05T14:18:25+02:00 2015-05-05T14:18:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32639#p32639 <![CDATA[MX Midi Scale (user module)]]>
edit: check back right, re oops display works fine in poly but out is mono. damned i need to check better^^ will correct this..

..but i can't understand what is wrong with the code, should work poly to me :/
anybody knows if this can work with callback, no need to use process right?

CODE:

if &#40;sizeMidiIn > 0&#41;&#123;sdkCopyEvt&#40;midiIn, midiOut&#41;;for &#40;int i = 0; i < sizeMidiIn; i++&#41;&#123;UsineMidiCode code = sdkGetEvtArrayMidi&#40;midiOut, i&#41;;if &#40;code.Msg == MIDI_NOTEON || code.Msg == MIDI_NOTEOFF&#41;&#123;int actualnote = code.Data1;int idnote12 = floor&#40;fmodf&#40;actualnote, 12&#41;&#41;;int transpose = sdkGetEvtArrayData&#40;pTranspose, idnote12&#41;;bool play_note = sdkGetEvtArrayData&#40;pONOFFs, idnote12&#41; == 1;if &#40;code.Msg == MIDI_NOTEON&#41;&#123;FLASH&#91;idnote12 + &#40;&#40;12 - idnote12&#41; * 12&#41;&#93; = 1;&#125;else&#123;FLASH&#91;idnote12 + &#40;&#40;12 - idnote12&#41; * 12&#41;&#93; = 0;&#125;if &#40;play_note&#41;&#123;code.Data1 = std&#58;&#58;min&#40;127, std&#58;&#58;max&#40;0, &#40;int&#41;code.Data1 + transpose&#41;&#41;;&#125;else&#123;code.Msg = MIDI_NOTEOFF;&#125;sdkSetEvtArrayMidi&#40;midiOut, i, code&#41;;
Re edit. Im really stupid, i was testing with a monophonic vst :rolleyes: , tested to rec in pianoroll i do see chords on output everuthing is fine in fact :P

Statistics: Posted by 23fx23 — 05 May 2015, 14:18


]]>
2015-05-05T13:39:06+02:00 2015-05-05T13:39:06+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32638#p32638 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by nay-seven — 05 May 2015, 13:39


]]>
2015-05-05T13:06:55+02:00 2015-05-05T13:06:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32636#p32636 <![CDATA[MX Midi Scale (user module)]]> https://drive.google.com/folderview?id= ... sp=sharing

Statistics: Posted by 23fx23 — 05 May 2015, 13:06


]]>
2015-05-05T12:42:18+02:00 2015-05-05T12:42:18+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32634#p32634 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by 23fx23 — 05 May 2015, 12:42


]]>
2015-05-05T11:55:36+02:00 2015-05-05T11:55:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32631#p32631 <![CDATA[MX Midi Scale (user module)]]>
https://drive.google.com/file/d/0B0VUyz ... sp=sharing

Statistics: Posted by 23fx23 — 05 May 2015, 11:55


]]>
2015-05-05T10:11:10+02:00 2015-05-05T10:11:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32630#p32630 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by ceasless — 05 May 2015, 10:11


]]>
2015-05-04T22:24:05+02:00 2015-05-04T22:24:05+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32626#p32626 <![CDATA[MX Midi Scale (user module)]]> Statistics: Posted by gurulogic — 04 May 2015, 22:24


]]>
2015-05-04T18:22:36+02:00 2015-05-04T18:22:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4893&p=32624#p32624 <![CDATA[MX Midi Scale (user module)]]>
Ive uploded a little user module that allows to make custom scales and save/recall them via Pm for midi flows.
basically user set up a transpose grid matrix and the input midi will be transposed according the matrix on output.
ie: if linear = no change, if note 2 is 3 instead of 2 on receive it will play 3 on output.
also possibility to mute a note via toggeling cell off.
a little border flash indicate wich note is received.
hope can be useful, let me know if bugz.

Image

( compiled for x32 X64 only for now, but if it goes well for others ill upload the code if someone want to compile for osx.)

/add-ons/midi tools

wiki
http://www.sensomusic.org/wiki3/doku.ph ... s:mx_scale

Statistics: Posted by 23fx23 — 04 May 2015, 18:22


]]>