Welcome to %s forums

BrainModular Users Forum

Login Register

combine 2 ARRAY

I need help on a Patch
Post Reply
gercha1
Member
Posts: 89
Contact:

Unread post by gercha1 » 31 Mar 2015, 10:47

hi
i want to combine 2 array like this
1st A1A2A3A4
2nd B1B2B3B4

In this array A1B1A2B2A3B3A4B4

I saw the module CombineX3 but not the CombineX2

if some one can help
thanks in advance

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 31 Mar 2015, 10:53

there's a module named array concat
it's what you're looking for

gercha1
Member
Posts: 89
Contact:

Unread post by gercha1 » 31 Mar 2015, 11:12

but the concat array do
A1A2A3A4B1B2B3B4
not A1B1A2B2A3B3A4B4
how could you do this ?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 31 Mar 2015, 12:42

right, i read your post too fast

i suppose Match guru can do better, but you still have the manual solution ?

Download

gercha1
Member
Posts: 89
Contact:

Unread post by gercha1 » 31 Mar 2015, 12:53

thanks nay
not other simple solution ? to change array size easely
i will think about this

drakh
Member
Posts: 198
Location: Bratislava, SK
Contact:

Unread post by drakh » 31 Mar 2015, 13:54

http://www.sensomusic.com/forums/upload ... arrays.pat

here is a concept how to achieve what you want

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 31 Mar 2015, 23:27

Interesting that 'Array Combine x3' seems to do what you want, but for 3 arrays.

Why no 'Array Combine'?

I wrote some code which should do what you want, but I ran into issues with the debug mode.

gercha1
Member
Posts: 89
Contact:

Unread post by gercha1 » 01 Apr 2015, 12:31

you're right ceasless
i try to do it manuelly like nay seven ,but it's not simple
and i don't know scripting ,
an 'array combine' could be great !

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Apr 2015, 16:08

Hey gercha1,

I have finished a two-array version of 'array combine'. I didn't realize the other module existed when I named mine, so it has a different name. If you are on OS X, you should be able to start using it immediately. The module binary file is in the bin/os-x folder on this github page: https://github.com/ab5tract/hollyhock-grove

Otherwise we will have to wait for someone on Windows to compile it.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 19 Apr 2015, 17:25

gg ceasless.
here i tried to re-compile for Windows. i could sucessfly test x64, didn't test win32 if someone can test:

https://drive.google.com/folderview?id= ... sp=sharing

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Apr 2015, 18:45

Wow, 23fx23 that was fast! I have added those binaries to the github repo. Did you make any vcproject files? I could add those as well.

Thanks man!

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 19 Apr 2015, 18:56

yup sry i had them in separate folder i didn't check, normally there is a new archive with all files in the folder now

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 19 Apr 2015, 20:17

Hi,
I have a few modules I'll be happy to share (source and Windows builds)
Can I put them on the 'Grove ?
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Apr 2015, 20:43

Sure thing oli_lab. If you are on github, easiest thing is to fork the project and then send a pull request with your changes.

Or you can upload and send a link and I van add them.

Probably best for you to post those in the grove thread, so things don't get too confused.

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 19 Apr 2015, 21:52

I've test the the module on my side : on Windows, it has no name and I've this message:

Can't start the program , cause MSVCP120D.dll is missing on this computer ?
test on a 64 win seven, usine 32 and usine 64

On Mac 10.8.5, no message but the module has no name and it's invalid

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 19 Apr 2015, 21:56

i've download the missing dll , so no more messages, but module is still invalid here

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 19 Apr 2015, 23:11

I rebuilt the modules, there was a trouble with link1561 on the projet

looks ok on HH2 64bits

I'l try to upload on github...I'm confused...

it's all there on wetransfer

https://www.wetransfer.com/downloads/7a ... 215/84c1c0

cheers

olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Apr 2015, 23:43

nay-seven, the OS X version is working just fine here. I am on 10.10. It is weird.. On mine, the name is listed properly in the browser and in the patch window.

Make sure you are downloading the 'raw' version of the file from github. Or download the zip and get the files from there.

Anyway these will be available more easily through Usine's great add-ons system.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 20 Apr 2015, 00:32

yup same he for w64 strange mmmmm

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 20 Apr 2015, 09:05

23fx23, same here meaning they do work? Or don't?

To make sure you are downloading the actual binary, you need to click on the file, and then click 'View raw'. This will download the binary. If you right-click "save as" anything that does not say "raw", you will not be doanloading the binary.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 20 Apr 2015, 14:07

i could only test the win64, but it loads ok here, i can drag & see the module with name and info, all in outs and the process does combine as espected the two arrays without errors.
yup maybe it's the raw thing, shouldn't need a dll once compiled normally nope?

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 22 Apr 2015, 10:07

Hi nay, were you able to get then working?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 22 Apr 2015, 10:23

no, no new test
could be cool is someone else test, cause you and 23fx have development tools on your machine, so this can false the results..?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 22 Apr 2015, 12:48

yes that's true, and maybe cause from start i use the 'debug" copile, not relase, that maybe introduce more stuff im not aware of

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 01 May 2015, 16:34

nay, I do not think the SDK installed will have an effect, as the test is loading the module in Usine, which has no idea about the SDK.

It would be cool if gercha1 could confirm whether this is doing what he needs though ;)

gercha1
Member
Posts: 89
Contact:

Unread post by gercha1 » 01 May 2015, 16:57

hi
i've just download and test the module (user module) "weave array" from oli lab
it's work perfectly,
I don't understand scripting
but a great thanks to all,

bmartin
Member
Posts: 22
Contact:

Unread post by bmartin » 03 Feb 2018, 10:31

Any news on this? A Combine Inverse x5 would be very useful for untangling the midi event streams out of the Piano Roll.

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 03 Feb 2018, 13:37

There is a user module that parse the array out of the piano roll : it is called "play midi note"
you'll find it with the addons
Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

bmartin
Member
Posts: 22
Contact:

Unread post by bmartin » 03 Feb 2018, 14:01

thanks, that looks like it could be useful for other things but it's not quite what I'm looking for.
I mean something that will split the event array into a set of other arrays like 'note array', 'velocity array' etc so that those could be manipulated as groups, swapped around etc and then put back into an event array for the piano roll.
(I'm trying to recreate some of the tricks that could be performed with the old 'KeyKit' software)

oli_lab wrote:There is a user module that parse the array out of the piano roll : it is called "play midi note"
you'll find it with the addons
Olivar

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 03 Feb 2018, 21:20

I've just finished the deserializer 1 to 5...
I'll do the serializer 5 to 1 asap


bmartin wrote:thanks, that looks like it could be useful for other things but it's not quite what I'm looking for.
I mean something that will split the event array into a set of other arrays like 'note array', 'velocity array' etc so that those could be manipulated as groups, swapped around etc and then put back into an event array for the piano roll.
(I'm trying to recreate some of the tricks that could be performed with the old 'KeyKit' software)

oli_lab wrote:There is a user module that parse the array out of the piano roll : it is called "play midi note"
you'll find it with the addons
Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

bmartin
Member
Posts: 22
Contact:

Unread post by bmartin » 03 Feb 2018, 23:14

great, that sounds like just the thing!
oli_lab wrote:I've just finished the deserializer 1 to 5...
I'll do the serializer 5 to 1 asap


bmartin wrote:thanks, that looks like it could be useful for other things but it's not quite what I'm looking for.
I mean something that will split the event array into a set of other arrays like 'note array', 'velocity array' etc so that those could be manipulated as groups, swapped around etc and then put back into an event array for the piano roll.
(I'm trying to recreate some of the tricks that could be performed with the old 'KeyKit' software)

oli_lab wrote:There is a user module that parse the array out of the piano roll : it is called "play midi note"
you'll find it with the addons
Olivar

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 04 Feb 2018, 02:33

hope you're a windows person

I will make a proper release with osx build asap

File uploaded: http://www.sensomusic.com/forums/upload ... _Array.zip
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

bmartin
Member
Posts: 22
Contact:

Unread post by bmartin » 04 Feb 2018, 10:29

no, sorry, i'm on a mac!

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 04 Feb 2018, 13:57

bmartin wrote:no, sorry, i'm on a mac!
too bad, you'll have to wait few more days, I only start the mac mini when building user modules !
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

bmartin
Member
Posts: 22
Contact:

Unread post by bmartin » 06 Feb 2018, 22:33

Just to add to the confusion - I'm just having a play around with the regular Array Combine and Invert Combine modules to see how they work and for some reason the Combine Inverse x3 can only handle values between 0 and 1 - anybody else get this?

bmartin
Member
Posts: 22
Contact:

Unread post by bmartin » 21 Feb 2018, 22:46

I've managed to work out how to manipulate the event arrays that come out of the midi piano roll using some elaborate combinations of get and set arrays to achieve some of what i wanted - a steep learning curve!

one main problem with it - the event arrays lose the midi channel information so everything in a midi file gets mixed together - melody, drums, etc

plus the whole thing is quite clunky. i was wondering how the array 'rows' and 'lines' worked - there is no explanation at all in the manual. could this be a way of splitting up the midi data?

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests