diff options
author | mescalinum <mescalinum@users.sourceforge.net> | 2011-11-15 14:17:58 +0000 |
---|---|---|
committer | mescalinum <mescalinum@users.sourceforge.net> | 2011-11-15 14:17:58 +0000 |
commit | 519a19844437310ecce7a9295df7f1bcfe534282 (patch) | |
tree | 38a76905321ae0c28f236c684f0718676b05dba9 /tclpd.tcl | |
parent | a5595a6447547e62b58ccf74edafee4fbb21602d (diff) |
fixed binbuf support
svn path=/trunk/externals/loaders/tclpd/; revision=15751
Diffstat (limited to 'tclpd.tcl')
-rw-r--r-- | tclpd.tcl | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -261,24 +261,14 @@ namespace eval ::pd { proc get_binbuf {self} { set ob [CAST_t_object $self] - post "get_binbuf: ob = $ob" - if 0 { set binbuf [$ob cget -te_binbuf] set len [binbuf_getnatom $binbuf] set result {} for {set i 0} {$i < $len} {incr i} { - set atom [tclpd_binbuf_get_atom $binbuf $i] - set selector [atom_type_string $atom] - set value {?} - if {$selector eq "float"} { - set value [atom_float_value $atom] - } elseif {$selector eq "symbol"} { - set value [atom_symbol_value $atom] - } - lappend result [list $selector $value] + set atom [binbuf_getatom $binbuf $i] + lappend result $atom } return $result - } else {return {}} } } |