aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-02-26 21:55:55 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-02-26 21:55:55 +0100
commit83320603f4314388eb60740eb43e0fda674cf651 (patch)
tree7afa72a7440629d1dc711dd62ad8b6c34ebd26fc
parent525b02521f851f347fa8c1cf50b69848f9d9e93d (diff)
downloadmoony.lv2-83320603f4314388eb60740eb43e0fda674cf651.tar.xz
send patch:Get after receiving patch:Patch.
-rw-r--r--api/api_state.c2
-rw-r--r--web_ui/moony.js6
2 files changed, 8 insertions, 0 deletions
diff --git a/api/api_state.c b/api/api_state.c
index e08a6b1..41f2731 100644
--- a/api/api_state.c
+++ b/api/api_state.c
@@ -189,6 +189,8 @@ _lstateresponder_register_access(lua_State *L, moony_t *moony, int64_t frames,
}
lv2_atom_forge_pop(lforge->forge, &obj_frame); // patch:patch
+ //FIXME also send patch:set ?
+
// removes 'value'; keeps 'key' for next iteration
lua_pop(L, 1);
}
diff --git a/web_ui/moony.js b/web_ui/moony.js
index bfdd3cf..a87e7f9 100644
--- a/web_ui/moony.js
+++ b/web_ui/moony.js
@@ -415,15 +415,21 @@ function lv2_read_event(idx, obj) {
if(key == LV2.PATCH.writable) {
var id = prop[RDF.value].replace(trim, '');
var props = $('#properties');
+
props.append('<tr class="writable" data-id="'+id+'"><td class="label"></td><td><input id="'+id+'" name="'+prop[RDF.value]+'" /></td><td class="unit"></td></tr>');
sort_properties();
$('#' + id).bind('wheel', property_wheel).change(property_change);
+
+ lv2_get(lv2_dsp, prop[RDF.value]);
} else if(key == LV2.PATCH.readable) {
var id = prop[RDF.value].replace(trim, '');
var props = $('#properties');
+
props.append('<tr class="readable" data-id="'+id+'"><td class="label"></td><td><input id="'+id+'" name="'+prop[RDF.value]+'" disabled /></td><td class="unit"></td></tr>');
sort_properties();
+
+ lv2_get(lv2_dsp, prop[RDF.value]);
} else {
var id = subject[RDF.value].replace(trim, '');
var item = $('#' + id);