From f0fbe1c10866cc421ea46c62f717c2c7dfba3952 Mon Sep 17 00:00:00 2001 From: Dominic Thibault Date: Sat, 7 Sep 2024 13:31:58 -0400 Subject: [PATCH] Basic Player - Simpler GUI + minor fix in the MIDI implementation --- __MosaiquePlayer_Basic_v0.01.amxd | Bin 24612 -> 26239 bytes _mosaique.midiNotes.maxpat | 59 ++++++++--- _mosaique.miniCorpusOnOff.maxpat | 28 +++--- _mosaique.serverSelect.maxpat | 156 ++++++++++-------------------- 4 files changed, 106 insertions(+), 137 deletions(-) diff --git a/__MosaiquePlayer_Basic_v0.01.amxd b/__MosaiquePlayer_Basic_v0.01.amxd index f303e1f783aa806abae2cd7fbac133f14097d236..a2ff9e731257cc1e7dbcee3a0487033170c2414e 100644 GIT binary patch delta 2179 zcmb7FUuYaf9L`=su89=MPxNU|ESLO7rL4PNxi0?1qvF%i z-!qVjx!mbq#2oSM$+3PYzo9RR635}glU`;wMI++FQ+EzgM=8LLq}pOhw~mtNS$)>F zBXLA%bU6H8-^z?fSP-ouViGkVj|aul7U3oke~%1@;@Kek6praTZ;_K!bL8nMabaS- z1#^P~(J+c$!!z_reL;^G2HxMP3=9~n{)Q?Uu3uaCYkEGPH`+W|UH3{&Kc*T{NrySz zI8&)rn{^!;vTyQFX)u7vI3e=Eb^uaSi#kw;CXhqo?1W}_(zp$~gkwcR3_kKPn$Tzm%>)jm3eKr=h7o<_V=Q5@PS)dH9BOOS7u&o2!JxP~ z@pHJ9`?z02Awjc!MS>}C7_*UMa}4D!NxcVJl1baiiLqR%75$n@Njq{zP>e!VS-zHs zTxdhX;{N0kW;p(VJn2J9! zx!g9)C}x}jfTUzdsQBvn=R|}5S~!^aJx~YtBVIl<65E0BaXU~R?le2Yh{P9CWC!uc zT4Lbb9?}lBw6_5cF&3L`m*BY`Iow&hTPXv5cBTmDb;QFi`43z_~EVT6vXZMx5eW88>xsd zQ>xa5TPao5gL@Ybi&Gb;x}s*gAZ|aI6=yGX>*X((&USfE;c{BHx7}C6zb=2IwPZeY zX3ctqRd2ghX`!Koo0dR~?PVT!?#vJ@3HS)IAui<66liHtB2dyGu6%T3 z)IX*tgt;_D2B&xd*X?(YRh-S*)7FONIGcP~%aco%;~9POB(5 zAQ6nmyI`cR)qN0u9QfPUpipokaH)Iaq{F>DHi4Enfo8M6P20kQ1nUxP3AGauw`9H! zoV7iYA(}I#T%39sI^+8}K6V6r4UIv|`JOJ64xiGJEEU!YNprx=nP%Q+cf(NYXoF&A z&ucsUyKQW{-!nTw1G~@d@rL`1VCD#iaGN11(k8O(BMVVUh=;r*&p32dL$;8aKg^vh zR;s0P)k|*wiRLRy70q)h262uH_rek>dXI%=9;29Y!fc7KbP!hs=~TLtV0Jy0VN_2@ zRiX#z50_A;raKtYFQ3715R0{8jxDt?N75I;w}*O~s+HR-rE*DE3-O^EY&3PlD=|3u z@B03~ym~>C+tCOlvU4`kKT+r(NEotID^v(h5TcARsy-i~mLP&~!kLuVrc%IGXdvY` zpe`Vxo`FirC2_EwHXZ4I0gmBEw)c1!$c+yrqR<}=!{>8R*vVnIF?j`cuV2>s+QcZl zpLnA7o6tV>Ota2pBXmz+J=}L3-SPO-+_2^{nmXb#+Ps|~(fDQF4?8t8rtPNLQKc_H lb}s0?oxNv3|71J7D@=o#Pr-h%4>l(waHn|D-7mhV{{>@I{%-&P diff --git a/_mosaique.midiNotes.maxpat b/_mosaique.midiNotes.maxpat index 7c20614..6ef6d70 100644 --- a/_mosaique.midiNotes.maxpat +++ b/_mosaique.midiNotes.maxpat @@ -39,6 +39,29 @@ "subpatcher_template" : "", "assistshowspatchername" : 0, "boxes" : [ { + "box" : { + "id" : "obj-10", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 285.0, 353.0, 50.0, 22.0 ], + "text" : "size 0" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 545.0, 271.0, 127.0, 22.0 ], + "text" : "s #1MIDI_note_min" + } + + } +, { "box" : { "id" : "obj-94", "maxclass" : "newobj", @@ -226,7 +249,7 @@ } , "text" : "MIDI map", - "textcolor" : [ 0.811764705882353, 0.811764705882353, 0.811764705882353, 1.0 ], + "textcolor" : [ 0.807843, 0.807843, 0.807843, 1.0 ], "textjustification" : 1 } @@ -395,7 +418,7 @@ "parameter_initial" : [ 60 ], "parameter_invisible" : 1, "parameter_linknames" : 1, - "parameter_longname" : "---MIDI_note_min[2]", + "parameter_longname" : "MIDI lowest note", "parameter_modmode" : 0, "parameter_shortname" : "lowest note", "parameter_type" : 0, @@ -425,7 +448,7 @@ "valueof" : { "parameter_invisible" : 2, "parameter_linknames" : 1, - "parameter_longname" : "---MIDI_note_max[2]", + "parameter_longname" : "MIDI highest note", "parameter_modmode" : 0, "parameter_shortname" : "Highest Note", "parameter_type" : 0, @@ -629,7 +652,7 @@ "valueof" : { "parameter_invisible" : 2, "parameter_linknames" : 1, - "parameter_longname" : "---MIDI_velo_layers", + "parameter_longname" : "MIDI velocity layers", "parameter_modmode" : 0, "parameter_shortname" : "Velocity Layers", "parameter_type" : 0, @@ -805,6 +828,14 @@ "patchline" : { "destination" : [ "obj-54", 1 ], "midpoints" : [ 690.5, 730.473680853843689, 434.5, 730.473680853843689 ], + "order" : 1, + "source" : [ "obj-45", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], "order" : 0, "source" : [ "obj-45", 1 ] } @@ -814,7 +845,7 @@ "patchline" : { "destination" : [ "obj-86", 1 ], "midpoints" : [ 690.5, 865.763149738311768, 173.763156592845917, 865.763149738311768 ], - "order" : 1, + "order" : 2, "source" : [ "obj-45", 1 ] } @@ -832,10 +863,19 @@ "source" : [ "obj-51", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-10", 1 ], + "order" : 1, + "source" : [ "obj-52", 0 ] + } + } , { "patchline" : { "destination" : [ "obj-55", 0 ], + "order" : 0, "source" : [ "obj-52", 0 ] } @@ -1016,14 +1056,7 @@ } } - ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } - - } - + ] } } diff --git a/_mosaique.miniCorpusOnOff.maxpat b/_mosaique.miniCorpusOnOff.maxpat index b8065eb..76eb4e0 100644 --- a/_mosaique.miniCorpusOnOff.maxpat +++ b/_mosaique.miniCorpusOnOff.maxpat @@ -162,6 +162,7 @@ , { "box" : { "id" : "obj-1", + "ignoreclick" : 1, "maxclass" : "live.toggle", "numinlets" : 1, "numoutlets" : 1, @@ -192,32 +193,32 @@ } , { "box" : { - "fontname" : "Avenir", + "fontname" : "Ableton Sans Light", "fontsize" : 9.5, "id" : "obj-29", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 398.0, 228.0, 52.0, 19.0 ], + "patching_rect" : [ 398.0, 228.0, 51.0, 18.0 ], "presentation" : 1, - "presentation_rect" : [ 22.0, -2.875, 74.0, 19.0 ], - "text" : "Corpus 8", + "presentation_rect" : [ 22.0, -2.0, 73.0, 18.0 ], + "text" : "Corpus 1", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } } , { "box" : { - "fontname" : "Avenir", + "fontname" : "Ableton Sans Light", "fontsize" : 9.5, "id" : "obj-28", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 276.0, 237.0, 24.0, 19.0 ], + "patching_rect" : [ 276.0, 237.0, 25.0, 18.0 ], "presentation" : 1, - "presentation_rect" : [ 12.0, -2.875, 17.0, 19.0 ], - "text" : "8", + "presentation_rect" : [ 12.0, -2.0, 17.0, 18.0 ], + "text" : "1", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } @@ -285,7 +286,7 @@ , { "box" : { "angle" : 270.0, - "bgcolor" : [ 0.1542, 0.2187, 0.2995, 1.0 ], + "bgcolor" : [ 0.8966, 0.2503, 0.2751, 1.0 ], "id" : "obj-31", "maxclass" : "panel", "mode" : 0, @@ -533,14 +534,7 @@ } } - ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } - - } - + ] } } diff --git a/_mosaique.serverSelect.maxpat b/_mosaique.serverSelect.maxpat index ad521d2..54dbb58 100644 --- a/_mosaique.serverSelect.maxpat +++ b/_mosaique.serverSelect.maxpat @@ -10,7 +10,7 @@ } , "classnamespace" : "box", - "rect" : [ 34.0, 112.0, 1601.0, 1183.0 ], + "rect" : [ 148.0, 106.0, 840.0, 316.0 ], "bglocked" : 0, "openinpresentation" : 1, "default_fontsize" : 12.0, @@ -238,16 +238,16 @@ } , { "box" : { - "fontname" : "Avenir", + "fontname" : "Ableton Sans Light", "fontsize" : 8.0, "id" : "obj-23", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 931.5, 646.0, 152.0, 17.0 ], + "patching_rect" : [ 931.5, 646.0, 145.0, 16.0 ], "presentation" : 1, "presentation_linecount" : 2, - "presentation_rect" : [ 121.0, 0.0, 76.0, 28.0 ], + "presentation_rect" : [ 121.0, 0.0, 71.0, 26.0 ], "text" : "No audio loaded in selected server!", "textcolor" : [ 0.796078431372549, 0.796078431372549, 0.796078431372549, 1.0 ] } @@ -313,7 +313,7 @@ "parameter_mappable" : 0, "patching_rect" : [ 195.0, 59.0, 15.0, 15.0 ], "presentation" : 1, - "presentation_rect" : [ 108.0, 6.0, 15.0, 15.0 ], + "presentation_rect" : [ 107.0, 6.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_enum" : [ "off", "on" ], @@ -2441,40 +2441,10 @@ } ], "bgcolor" : [ 0.56078431372549, 0.56078431372549, 0.56078431372549, 1.0 ], - "editing_bgcolor" : [ 0.56078431372549, 0.56078431372549, 0.56078431372549, 1.0 ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } -, - "editing_bgcolor" : { - "expression" : "" - } -, - "locked_bgcolor" : { - "expression" : "" - } - - } - + "editing_bgcolor" : [ 0.56078431372549, 0.56078431372549, 0.56078431372549, 1.0 ] } , "patching_rect" : [ 262.0, 1162.0, 484.0, 22.0 ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } -, - "editing_bgcolor" : { - "expression" : "" - } -, - "locked_bgcolor" : { - "expression" : "" - } - - } -, "saved_object_attributes" : { "description" : "", "digest" : "", @@ -2935,8 +2905,12 @@ , { "box" : { "coll_data" : { - "count" : 0, - "data" : [ ] + "count" : 1, + "data" : [ { + "key" : "Server ---", + "value" : [ "---", 1, "Corpus 1", 0, 0.0, "0.8966 0.2503 0.2751 1.0000", 2, "Corpus 2", 0, 0.0, "0.9204 0.2776 0.4492 1.0000", 3, "Corpus 3", 0, 0.0, "0.9441 0.4532 0.2496 1.0000", 4, "Corpus 4", 0, 0.0, "0.9789 0.6358 0.0808 1.0000", 5, "Corpus 5", 0, 0.0, "0.8383 0.8033 0.2494 1.0000", 6, "Corpus 6", 0, 0.0, "0.2616 0.6943 0.3818 1.0000", 7, "Corpus 7", 0, 0.0, "0.0577 0.3972 0.4374 1.0000", 8, "Corpus 8", 0, 0.0, "0.9204 0.2776 0.4492 1.0000" ] + } + ] } , "id" : "obj-10", @@ -3121,40 +3095,10 @@ } ], "bgcolor" : [ 0.56078431372549, 0.56078431372549, 0.56078431372549, 1.0 ], - "editing_bgcolor" : [ 0.56078431372549, 0.56078431372549, 0.56078431372549, 1.0 ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } -, - "editing_bgcolor" : { - "expression" : "" - } -, - "locked_bgcolor" : { - "expression" : "" - } - - } - + "editing_bgcolor" : [ 0.56078431372549, 0.56078431372549, 0.56078431372549, 1.0 ] } , "patching_rect" : [ 823.5, 548.0, 127.0, 22.0 ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } -, - "editing_bgcolor" : { - "expression" : "" - } -, - "locked_bgcolor" : { - "expression" : "" - } - - } -, "saved_object_attributes" : { "description" : "", "digest" : "", @@ -3170,27 +3114,36 @@ } , { "box" : { - "bgcolor" : [ 1.0, 1.0, 1.0, 0.01 ], + "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "bgfillcolor_angle" : 270.0, "bgfillcolor_autogradient" : 0.0, - "bgfillcolor_color" : [ 1.0, 1.0, 1.0, 0.01 ], + "bgfillcolor_color" : [ 1.0, 1.0, 1.0, 0.0 ], "bgfillcolor_color1" : [ 0.517647058823529, 0.517647058823529, 0.517647058823529, 1.0 ], "bgfillcolor_color2" : [ 0.728545315984307, 0.72854514435665, 0.728545189205699, 1.0 ], "bgfillcolor_proportion" : 0.39, "bgfillcolor_type" : "color", - "fontname" : "Avenir Heavy", + "color" : [ 0.427450980392157, 0.843137254901961, 1.0, 1.0 ], + "fontname" : "Ableton Sans Bold", "id" : "obj-5", - "items" : "", + "items" : "Server ---", "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 1, "parameter_mappable" : 0, - "patching_rect" : [ 221.0, 387.0, 100.0, 25.0 ], + "patching_rect" : [ 221.0, 387.0, 100.0, 23.0 ], "presentation" : 1, - "presentation_rect" : [ 7.5, 0.75, 96.0, 25.0 ], + "presentation_rect" : [ 7.5, 0.75, 96.0, 23.0 ], "saved_attribute_attributes" : { + "color" : { + "expression" : "themecolor.live_lcd_control_fg_alt" + } +, + "textcolor" : { + "expression" : "themecolor.live_lcd_title" + } +, "valueof" : { "parameter_enum" : [ "ServerA", "Server ---" ], "parameter_invisible" : 1, @@ -3203,7 +3156,7 @@ } , - "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], + "textcolor" : [ 0.807843, 0.807843, 0.807843, 1.0 ], "varname" : "umenu" } @@ -3211,7 +3164,8 @@ , { "box" : { "angle" : 270.0, - "bgcolor" : [ 0.676960706710815, 0.653935611248016, 0.670039713382721, 1.0 ], + "bgcolor" : [ 0.352941176470588, 0.352941176470588, 0.352941176470588, 1.0 ], + "bordercolor" : [ 0.313725490196078, 0.313725490196078, 0.313725490196078, 1.0 ], "id" : "obj-9", "maxclass" : "panel", "mode" : 0, @@ -3224,7 +3178,11 @@ "rounded" : 4, "saved_attribute_attributes" : { "bgfillcolor" : { - "expression" : "" + "expression" : "themecolor.live_led_bg" + } +, + "bordercolor" : { + "expression" : "themecolor.live_contrast_frame" } } @@ -3294,8 +3252,12 @@ , { "box" : { "coll_data" : { - "count" : 0, - "data" : [ ] + "count" : 1, + "data" : [ { + "key" : "Server ---", + "value" : [ "---", 1, "Corpus 1", 0, 0.0, "0.8966 0.2503 0.2751 1.0000", 2, "Corpus 2", 0, 0.0, "0.9204 0.2776 0.4492 1.0000", 3, "Corpus 3", 0, 0.0, "0.9441 0.4532 0.2496 1.0000", 4, "Corpus 4", 0, 0.0, "0.9789 0.6358 0.0808 1.0000", 5, "Corpus 5", 0, 0.0, "0.8383 0.8033 0.2494 1.0000", 6, "Corpus 6", 0, 0.0, "0.2616 0.6943 0.3818 1.0000", 7, "Corpus 7", 0, 0.0, "0.0577 0.3972 0.4374 1.0000", 8, "Corpus 8", 0, 0.0, "0.9204 0.2776 0.4492 1.0000" ] + } + ] } , "id" : "obj-44", @@ -3336,23 +3298,6 @@ "text" : "r #1Mosaique_ServerID_request" } - } -, { - "box" : { - "fontname" : "Avenir Black", - "fontsize" : 12.0, - "id" : "obj-37", - "maxclass" : "comment", - "numinlets" : 1, - "numoutlets" : 0, - "patching_rect" : [ 692.0, 37.0, 57.0, 23.0 ], - "presentation" : 1, - "presentation_rect" : [ 305.0, 28.5, 149.0, 23.0 ], - "text" : "SERVER", - "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], - "textjustification" : 1 - } - } , { "box" : { @@ -3441,8 +3386,12 @@ , { "box" : { "coll_data" : { - "count" : 0, - "data" : [ ] + "count" : 1, + "data" : [ { + "key" : "Server ---", + "value" : [ "---", 1, "Corpus 1", 0, 0.0, "0.8966 0.2503 0.2751 1.0000", 2, "Corpus 2", 0, 0.0, "0.9204 0.2776 0.4492 1.0000", 3, "Corpus 3", 0, 0.0, "0.9441 0.4532 0.2496 1.0000", 4, "Corpus 4", 0, 0.0, "0.9789 0.6358 0.0808 1.0000", 5, "Corpus 5", 0, 0.0, "0.8383 0.8033 0.2494 1.0000", 6, "Corpus 6", 0, 0.0, "0.2616 0.6943 0.3818 1.0000", 7, "Corpus 7", 0, 0.0, "0.0577 0.3972 0.4374 1.0000", 8, "Corpus 8", 0, 0.0, "0.9204 0.2776 0.4492 1.0000" ] + } + ] } , "id" : "obj-48", @@ -3989,14 +3938,7 @@ } } - ], - "saved_attribute_attributes" : { - "default_plcolor" : { - "expression" : "" - } - - } - + ] } }