Commit ad91ff4d authored by IASpace's avatar IASpace
Browse files

added help patchers, tutorial and extensive help

fixed some little bugs
parent 09c89a14
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 2,
"revision" : 2,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 59.0, 107.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 133.0, 178.0, 35.0, 22.0 ],
"text" : "clear"
}
}
, {
"box" : {
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-14",
"items" : "<empty>",
"maxclass" : "chooser",
"multiselect" : 0,
"numinlets" : 1,
"numoutlets" : 6,
"outlettype" : [ "", "", "", "", "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 23.0, 226.0, 456.0, 233.0 ]
}
}
, {
"box" : {
"id" : "obj-17",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 23.0, 138.0, 47.0, 22.0 ],
"text" : "dict.iter"
}
}
, {
"box" : {
"id" : "obj-16",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "clear" ],
"patching_rect" : [ 23.0, 108.0, 113.0, 22.0 ],
"text" : "t l clear"
}
}
, {
"box" : {
"id" : "obj-10",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 23.0, 178.0, 95.0, 22.0 ],
"text" : "prepend insert 0"
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 23.0, 25.0, 65.0, 22.0 ],
"text" : "r iBusChat"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "textbutton",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "int" ],
"parameter_enable" : 0,
"patching_rect" : [ 213.0, 68.0, 100.0, 20.0 ],
"text" : "clearchat"
}
}
, {
"box" : {
"id" : "obj-20",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 101.0, 25.0, 35.0, 22.0 ],
"text" : "clear"
}
}
, {
"box" : {
"id" : "obj-19",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 143.5, 103.0, 79.0, 22.0 ],
"text" : "prepend chat"
}
}
, {
"box" : {
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 143.5, 68.0, 59.0, 22.0 ],
"text" : "route text"
}
}
, {
"box" : {
"bgcolor" : [ 0.592156862745098, 0.592156862745098, 0.592156862745098, 1.0 ],
"id" : "obj-6",
"keymode" : 1,
"lines" : 1,
"maxclass" : "textedit",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "int", "", "" ],
"outputmode" : 1,
"parameter_enable" : 0,
"patching_rect" : [ 143.5, 25.0, 329.0, 23.0 ],
"textcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"wordwrap" : 0
}
}
, {
"box" : {
"id" : "obj-5",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "dictionary" ],
"patching_rect" : [ 23.0, 68.0, 88.0, 22.0 ],
"text" : "dict.deserialize"
}
}
, {
"box" : {
"id" : "obj-28",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 143.5, 132.0, 68.0, 22.0 ],
"text" : "s iBusInput"
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-14", 0 ],
"source" : [ "obj-10", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-14", 0 ],
"source" : [ "obj-16", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"source" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-10", 0 ],
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-28", 0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-5", 0 ],
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-14", 0 ],
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-16", 0 ],
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-7", 0 ],
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"order" : 0,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-20", 0 ],
"order" : 1,
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-19", 0 ],
"source" : [ "obj-9", 1 ]
}
}
],
"dependency_cache" : [ ],
"autosave" : 0,
"styles" : [ {
"name" : "AudioStatus_Menu",
"default" : {
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.294118, 0.313726, 0.337255, 1 ],
"color1" : [ 0.454902, 0.462745, 0.482353, 0.0 ],
"color2" : [ 0.290196, 0.309804, 0.301961, 1.0 ],
"angle" : 270.0,
"proportion" : 0.39,
"autogradient" : 0
}
}
,
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "Jamoma_highlighted_orange",
"default" : {
"accentcolor" : [ 1.0, 0.5, 0.0, 1.0 ]
}
,
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "STYLE1",
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "jpatcher001",
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "rnbodefault",
"default" : {
"accentcolor" : [ 0.343034118413925, 0.506230533123016, 0.86220508813858, 1.0 ],
"bgcolor" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color1" : [ 0.031372549019608, 0.125490196078431, 0.211764705882353, 1.0 ],
"color2" : [ 0.263682, 0.004541, 0.038797, 1.0 ],
"angle" : 270.0,
"proportion" : 0.39,
"autogradient" : 0.0
}
,
"color" : [ 0.929412, 0.929412, 0.352941, 1.0 ],
"elementcolor" : [ 0.357540726661682, 0.515565991401672, 0.861786782741547, 1.0 ],
"fontname" : [ "Lato" ],
"fontsize" : [ 12.0 ],
"stripecolor" : [ 0.258338063955307, 0.352425158023834, 0.511919498443604, 1.0 ]
}
,
"parentstyle" : "",
"multi" : 0
}
, {
"name" : "rnbohighcontrast",
"default" : {
"accentcolor" : [ 0.666666666666667, 0.666666666666667, 0.666666666666667, 1.0 ],
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"bgfillcolor" : {
"type" : "color",
"color" : [ 0.0, 0.0, 0.0, 1.0 ],
"color1" : [ 0.090196078431373, 0.090196078431373, 0.090196078431373, 1.0 ],
"color2" : [ 0.156862745098039, 0.168627450980392, 0.164705882352941, 1.0 ],
"angle" : 270.0,
"proportion" : 0.5,
"autogradient" : 0.0
}
,
"clearcolor" : [ 1.0, 1.0, 1.0, 0.0 ],
"color" : [ 1.0, 0.874509803921569, 0.141176470588235, 1.0 ],
"editing_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"elementcolor" : [ 0.223386004567146, 0.254748553037643, 0.998085916042328, 1.0 ],
"fontsize" : [ 13.0 ],
"locked_bgcolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"selectioncolor" : [ 0.301960784313725, 0.694117647058824, 0.949019607843137, 1.0 ],
"stripecolor" : [ 0.258823529411765, 0.258823529411765, 0.258823529411765, 1.0 ],
"textcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"textcolor_inverse" : [ 1.0, 1.0, 1.0, 1.0 ]
}
,
"parentstyle" : "",
"multi" : 0
}
]
}
}
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 2,
"revision" : 2,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 59.0, 107.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 23.0, 72.5, 73.0, 22.0 ],
"text" : "r iBusMQTT"
}
}
, {
"box" : {
"format" : 6,
"id" : "obj-20",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 189.5, 383.0, 50.0, 22.0 ]
}
}
, {
"box" : {
"id" : "obj-16",
"linecount" : 4,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 521.0, 200.5, 115.0, 62.0 ],
"text" : "use wildcards to subscribe to a whole range of topics"
}
}
, {
"box" : {
"id" : "obj-15",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 241.5, 385.0, 75.0, 20.0 ],
"text" : "publish a list"
}
}
, {
"box" : {
"id" : "obj-11",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 533.0, 305.0, 115.0, 22.0 ],
"text" : "unsubscribe /topic/#"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 189.5, 445.0, 154.0, 22.0 ],
"text" : "prepend publish 0 /topic/list"
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 521.0, 278.0, 102.0, 22.0 ],
"text" : "subscribe /topic/#"
}
}
, {
"box" : {
"id" : "obj-42",
"linecount" : 5,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 356.0, 200.5, 147.0, 75.0 ],
"text" : "an exception are retained messages. you can test this by first send the retain message first and then subscribe."
}
}
, {
"box" : {
"id" : "obj-41",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 363.0, 469.0, 218.0, 34.0 ],
"text" : "clears the retained message under the specified topic"
}
}
, {
"box" : {
"id" : "obj-40",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.0, 504.0, 119.0, 22.0 ],
"text" : "publish 1 /topic/store"
}
}
, {
"box" : {
"id" : "obj-38",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 371.0, 305.0, 135.0, 22.0 ],
"text" : "unsubscribe /topic/store"
}
}
, {
"box" : {
"id" : "obj-37",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 356.0, 278.0, 122.0, 22.0 ],
"text" : "subscribe /topic/store"
}
}
, {
"box" : {
"id" : "obj-36",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 356.0, 171.0, 91.0, 22.0 ],
"text" : "print @popup 1"
}
}
, {
"box" : {
"id" : "obj-32",
"linecount" : 9,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 124.0, 5.0, 485.0, 131.0 ],
"text" : "telemersiveBus also gives the classical MQTT functionality, where you can subscribe and publish to specific topics. There are some specialites to keep in mind:\n\n1. topics are required to start with '/' in order to work.\n2. only Peers that have joined the room can receive messages from subscribed topics.\n\npublish <retained (int)> <topic (symbol)> <payload (list)>\nsubscribe <topic (symbol)> \nunsubscribe <topic (symbol)> "
}
}
, {
"box" : {
"id" : "obj-31",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 189.5, 171.0, 91.0, 22.0 ],
"text" : "print @popup 1"
}
}
, {
"box" : {
"id" : "obj-30",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 23.0, 171.0, 91.0, 22.0 ],
"text" : "print @popup 1"
}
}
, {
"box" : {
"id" : "obj-24",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 23.0, 416.0, 94.0, 22.0 ],
"text" : "\"immersive bus\""
}
}
, {
"box" : {
"id" : "obj-21",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 189.5, 416.0, 133.0, 22.0 ],
"text" : "add $1 and $1 together"
}
}
, {
"box" : {
"id" : "obj-14",
"maxclass" : "message",
"numinlets" : 2,