ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2021-05-24T22:17:33+02:00 https://brainmodular.com/forums/app.php/feed/topic/6830 2021-05-24T22:17:33+02:00 2021-05-24T22:17:33+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43378#p43378 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Statistics: Posted by joffo78 — 24 May 2021, 22:17


]]>
2021-05-24T21:17:34+02:00 2021-05-24T21:17:34+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43376#p43376 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Thank you very much. It now works as expected.
creal.

Statistics: Posted by creal — 24 May 2021, 21:17


]]>
2021-05-24T17:46:19+02:00 2021-05-24T17:46:19+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43373#p43373 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
test cadenas V2 works with double notes.rack

Statistics: Posted by joffo78 — 24 May 2021, 17:46


]]>
2021-05-24T16:46:29+02:00 2021-05-24T16:46:29+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43372#p43372 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Statistics: Posted by joffo78 — 24 May 2021, 16:46


]]>
2021-05-24T15:20:42+02:00 2021-05-24T15:20:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43371#p43371 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
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?

Thanks,

creal.
test cadenas.rack

Statistics: Posted by creal — 24 May 2021, 15:20


]]>
2021-05-24T15:17:58+02:00 2021-05-24T15:17:58+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43370#p43370 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
the = module works also with arrays
Thanks for your message.

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.

Statistics: Posted by creal — 24 May 2021, 15:17


]]>
2021-05-22T18:13:48+02:00 2021-05-22T18:13:48+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43365#p43365 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Statistics: Posted by senso — 22 May 2021, 18:13


]]>
2021-05-22T13:59:37+02:00 2021-05-22T13:59:37+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43363#p43363 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> You should try this ;-)

Statistics: Posted by joffo78 — 22 May 2021, 13:59


]]>
2021-05-22T08:54:34+02:00 2021-05-22T08:54:34+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43362#p43362 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
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?

I attached the new patch.

Thanks,

creal.
test cadenas.pat

Statistics: Posted by creal — 22 May 2021, 08:54


]]>
2021-05-21T21:54:13+02:00 2021-05-21T21:54:13+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43361#p43361 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> much more simple.

Statistics: Posted by senso — 21 May 2021, 21:54


]]>
2021-05-21T13:16:13+02:00 2021-05-21T13:16:13+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43360#p43360 <![CDATA[How to make an interactive riddle from a piano melody]]>
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.

Thanks,

creal.
énigme piano.pat

Statistics: Posted by creal — 21 May 2021, 13:16


]]>
BrainModular BrainModular Users Forum 2021-05-24T22:17:33+02:00 https://brainmodular.com/forums/app.php/feed/topic/6830 2021-05-24T22:17:33+02:00 2021-05-24T22:17:33+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43378#p43378 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Statistics: Posted by joffo78 — 24 May 2021, 22:17


]]>
2021-05-24T21:17:34+02:00 2021-05-24T21:17:34+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43376#p43376 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Thank you very much. It now works as expected.
creal.

Statistics: Posted by creal — 24 May 2021, 21:17


]]>
2021-05-24T17:46:19+02:00 2021-05-24T17:46:19+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43373#p43373 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
test cadenas V2 works with double notes.rack

Statistics: Posted by joffo78 — 24 May 2021, 17:46


]]>
2021-05-24T16:46:29+02:00 2021-05-24T16:46:29+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43372#p43372 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Statistics: Posted by joffo78 — 24 May 2021, 16:46


]]>
2021-05-24T15:20:42+02:00 2021-05-24T15:20:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43371#p43371 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
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?

Thanks,

creal.
test cadenas.rack

Statistics: Posted by creal — 24 May 2021, 15:20


]]>
2021-05-24T15:17:58+02:00 2021-05-24T15:17:58+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43370#p43370 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
the = module works also with arrays
Thanks for your message.

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.

Statistics: Posted by creal — 24 May 2021, 15:17


]]>
2021-05-22T18:13:48+02:00 2021-05-22T18:13:48+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43365#p43365 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> Statistics: Posted by senso — 22 May 2021, 18:13


]]>
2021-05-22T13:59:37+02:00 2021-05-22T13:59:37+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43363#p43363 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> You should try this ;-)

Statistics: Posted by joffo78 — 22 May 2021, 13:59


]]>
2021-05-22T08:54:34+02:00 2021-05-22T08:54:34+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43362#p43362 <![CDATA[Re: How to make an interactive riddle from a piano melody]]>
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?

I attached the new patch.

Thanks,

creal.
test cadenas.pat

Statistics: Posted by creal — 22 May 2021, 08:54


]]>
2021-05-21T21:54:13+02:00 2021-05-21T21:54:13+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43361#p43361 <![CDATA[Re: How to make an interactive riddle from a piano melody]]> much more simple.

Statistics: Posted by senso — 21 May 2021, 21:54


]]>
2021-05-21T13:16:13+02:00 2021-05-21T13:16:13+02:00 https://brainmodular.com/forums/viewtopic.php?t=6830&p=43360#p43360 <![CDATA[How to make an interactive riddle from a piano melody]]>
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.

Thanks,

creal.
énigme piano.pat

Statistics: Posted by creal — 21 May 2021, 13:16


]]>