Group Admins

  • Profile picture of Norbert Schnell

Group Mods

  • Profile picture of Frederic Bevilacqua
  • Profile picture of schwarz
  • Profile picture of borghesi

MuBu for Max

Public Group active 1 day, 22 hours ago

MuBu for Max user group.

Track append message "not working"

Author 3 Subscribed Users |
Profile photo of HDubois


I’m trying to make a patch with a dynamic number of inputs, that processes the data and send it to a mubu container. I’m creating the message this way :

function bang(){
	var s = ""
	for(var i = 0; i < values.length; i++){
		s += "" + values[i] + " ";

The outlet is connected to this message : (track inputs append $1). When i do a print of this message, i get something like this : “track inputs append 76 54 23 45 103″. But when i look in my iMubu matrix, it’s full of 0. What am i doing wrong ?

June 10, 2016 at 11:27 #18203
Profile photo of borghesi

could you send your patch?


June 10, 2016 at 12:10 #18204
Profile photo of HDubois

Enc. the patch.

June 10, 2016 at 13:07 #18205
Profile photo of borghesi

hi, thanks for the patch.
I can’t test it directly (it is just a subpatch without input_creation.js content) but the only problem I can see
is in the message addtrack. Here you create a time tagged track using a gui interface multiwave (possible only with sampled tracks).
But if I create a track with the same message as in your patch (with @matrixcols 4 for example and without “interface multiwave”) and I send the message “track inputs append 76 54 23 45 103″ this works well: note that the first argument 76 is the time tag and the others the matrix values.
Maybe the problems is in the “@matrixcols $1″, check if the track has the right dimensions.


June 10, 2016 at 17:13 #18208
Profile photo of HDubois

Still doesn’t work, and I don’t understand why, every print looks good, but the mubu container is still full of 0.

Enc an archive of the project.

June 10, 2016 at 17:23 #18209
Profile photo of borghesi

the output of your js object is a singol symbol, not a list of numbers
So imubu is receiving wrong arguments with append message.

June 10, 2016 at 22:08 #18212
Profile photo of HDubois

I’m now trying to add the data using the messnamed function this way :

messnamed("mubu_container","track inputs append",values);

Values is an array containing int values.

I’ve a mubu object which scripting name is “mubu_container”.

But when i “send” this message, nothing happens. Is it more of a Max problem, and should i go ask in the Cycling forums, or is it Mubu related ?


Enc. the files.

June 13, 2016 at 16:05 #18222
Profile photo of Emmanuel Jourdan
Emmanuel Jourdan

messnamed is likely to work only with Max’s receive objects. You will probably need to send the message directly.

Sending the values array is definitely going to be a better solution than the a big symbol with all the numbers that MuBu doesn’t know how to interpret. What’s actually the message that you want to send to the MuBu object?

June 13, 2016 at 16:55 #18227
Profile photo of borghesi

Emmanuel gave you the answer. I add just that the message is not “track inputs append” but just “track” and “inputs” and “append” are
the first two arguments.

June 13, 2016 at 17:01 #18228

You must be logged in to reply to this topic.

Log in now