ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
BrainModularBrainModular Users Forum2021-05-24T22:17:33+02:00https://brainmodular.com/forums/app.php/feed/topic/68302021-05-24T22:17:33+02:002021-05-24T22:17:33+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43378#p43378Statistics: Posted by joffo78 — 24 May 2021, 22:17
]]>
2021-05-24T21:17:34+02:002021-05-24T21:17:34+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43376#p43376Thank you very much. It now works as expected. creal.
Statistics: Posted by joffo78 — 24 May 2021, 17:46
]]>2021-05-24T16:46:29+02:002021-05-24T16:46:29+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43372#p43372Statistics: Posted by joffo78 — 24 May 2021, 16:46
]]>2021-05-24T15:20:42+02:002021-05-24T15:20:42+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43371#p43371
Hi creal You should try this test cadenas.rack
Hi Joffo. It's goot to hear news from you
I just tried the rack. It works (the array sum next to the "=" module was the key!) but not with repetition of notes. For example, if in my melody I want "do, ré, ré, mi, fa fa", it does not take into account the repetition of ré and fa. I tested with a "math var" module between the MIDI input and the "array queue" but it does not work (modified rack is enclosed).
Do you have an idea to store repetitions as well in the array queue, please?
Yes, you are right. I noticed that thanks to Joffo patch. I should have put an array sum at the outlet of the "=" module and compute how many "1" appear. I thought the "=" would send 1 if and only if ALL the values of an array were equal to the other one, but it is not the case.
]]>2021-05-22T18:13:48+02:002021-05-22T18:13:48+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43365#p43365Statistics: Posted by senso — 22 May 2021, 18:13
]]>2021-05-22T13:59:37+02:002021-05-22T13:59:37+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43363#p43363You should try this
Statistics: Posted by joffo78 — 22 May 2021, 13:59
]]>2021-05-22T08:54:34+02:002021-05-22T08:54:34+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43362#p43362 thanks for your reply. I didn't know this module. It sounds perfect for what I'm looking for! However, I can't compare arrays with the "=" logical module. Is there a specific module to compare all values of an array to another one?
]]>2021-05-21T13:16:13+02:002021-05-21T13:16:13+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43360#p43360 In the scope of an Escape Game, I need to program a riddle which involves a MIDI keyboard. The concept is simple: the gamers have to play a specific melody. If they make a mistake at any moment, they need to start again.
I made a patch to show you what I've done. An array contains all the notes of the melody, in MIDI format (for the enclosed patch I just tried a diatonic octave C -C). I use a selector and a counter. If it is the right note, the counter increments as well as the array index thanks to the selector, otherwise the counter resets to its min value as well as the array.
Could you tell me what's wrong with my patch, please? It seems like there is a loop.
]]>BrainModularBrainModular Users Forum2021-05-24T22:17:33+02:00https://brainmodular.com/forums/app.php/feed/topic/68302021-05-24T22:17:33+02:002021-05-24T22:17:33+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43378#p43378Statistics: Posted by joffo78 — 24 May 2021, 22:17
]]>2021-05-24T21:17:34+02:002021-05-24T21:17:34+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43376#p43376Thank you very much. It now works as expected. creal.
Statistics: Posted by joffo78 — 24 May 2021, 17:46
]]>2021-05-24T16:46:29+02:002021-05-24T16:46:29+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43372#p43372Statistics: Posted by joffo78 — 24 May 2021, 16:46
]]>2021-05-24T15:20:42+02:002021-05-24T15:20:42+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43371#p43371
Hi creal You should try this test cadenas.rack
Hi Joffo. It's goot to hear news from you
I just tried the rack. It works (the array sum next to the "=" module was the key!) but not with repetition of notes. For example, if in my melody I want "do, ré, ré, mi, fa fa", it does not take into account the repetition of ré and fa. I tested with a "math var" module between the MIDI input and the "array queue" but it does not work (modified rack is enclosed).
Do you have an idea to store repetitions as well in the array queue, please?
Yes, you are right. I noticed that thanks to Joffo patch. I should have put an array sum at the outlet of the "=" module and compute how many "1" appear. I thought the "=" would send 1 if and only if ALL the values of an array were equal to the other one, but it is not the case.
]]>2021-05-22T18:13:48+02:002021-05-22T18:13:48+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43365#p43365Statistics: Posted by senso — 22 May 2021, 18:13
]]>2021-05-22T13:59:37+02:002021-05-22T13:59:37+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43363#p43363You should try this
Statistics: Posted by joffo78 — 22 May 2021, 13:59
]]>2021-05-22T08:54:34+02:002021-05-22T08:54:34+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43362#p43362 thanks for your reply. I didn't know this module. It sounds perfect for what I'm looking for! However, I can't compare arrays with the "=" logical module. Is there a specific module to compare all values of an array to another one?
]]>2021-05-21T13:16:13+02:002021-05-21T13:16:13+02:00https://brainmodular.com/forums/viewtopic.php?t=6830&p=43360#p43360 In the scope of an Escape Game, I need to program a riddle which involves a MIDI keyboard. The concept is simple: the gamers have to play a specific melody. If they make a mistake at any moment, they need to start again.
I made a patch to show you what I've done. An array contains all the notes of the melody, in MIDI format (for the enclosed patch I just tried a diatonic octave C -C). I use a selector and a counter. If it is the right note, the counter increments as well as the array index thanks to the selector, otherwise the counter resets to its min value as well as the array.
Could you tell me what's wrong with my patch, please? It seems like there is a loop.