-
flextUser
@oid Not too hard, but I would rather stay away from TCL
-
flextUser
@oid Cool, thanks. I am not a fan of TCL/TK, but I am curious as to how difficult it would be to add a menu to load my own settings. Is this something that can be done with plugins alone ?
-
flextUser
In pd_bindings.tcl, I replaced this :
# and the Pd window is in a class to itself bind all <KeyPress> {::pd_bindings::sendkey %W 1 %K %A 0 %k} bind all <KeyRelease> {::pd_bindings::sendkey %W 0 %K %A 0 %k} bind all <Shift-KeyPress> {::pd_bindings::sendkey %W 1 %K %A 1 %k} bind all <Shift-KeyRelease> {::pd_bindings::sendkey %W 0 %K %A 1 %k}``` with:
Max style bindings
bind all <KeyPress> { set w [winfo toplevel %W] if {[winfo class $w] eq "PatchWindow" && $::editmode($w) && !$::editingtext($w)} { switch -- %K { "n" {menu_send_float %W obj 0} "m" {menu_send_float %W msg 0} "i" {menu_send_float %W floatatom 0} "l" {menu_send_float %W listbox 0} "c" {menu_send_float %W text 0} "b" {menu_send %W bng} "f" {menu_send %W numbox} "v" {menu_send %W vslider} "h" {menu_send %W hslider} "r" {menu_send %W hradio} "d" {menu_send %W vradio} "g" {menu_send %W graph} "a" {menu_send %W menuarray} "u" {menu_send %W vumeter} default {::pd_bindings::sendkey %W 1 %K %A 0 %k} } } else { ::pd_bindings::sendkey %W 1 %K %A 0 %k } } bind all <KeyRelease> {::pd_bindings::sendkey %W 0 %K %A 0 %k} bind all <Shift-KeyPress> {::pd_bindings::sendkey %W 1 %K %A 1 %k} bind all <Shift-KeyRelease> {::pd_bindings::sendkey %W 0 %K %A 1 %k}```
Are there any implications? Why isn't this (or similar) a default setting?
-
-
-
flextUser
@jameslo Very useful ! Thanks. I didn't know about this protocol. That does it.
I'm trying to compare time values from a transport to stored values from a text sequence so I can change parameters at specific times.
I could use [text sequence] alone but my transport behaves like a real performer with IOI variations.
-
flextUser
@whale-av Thanks David! I will take a look at list-abs. There is no way to unpack inside makefilename right? [makefilename %d %d %d]
Martin. -
flextUser
Is there a way to do it preserving the zero ? I want to compare two lists that include zeros left and right.
Cheers