Commit 35a3e2fe authored by Hanspeter Portner's avatar Hanspeter Portner

properly update moony:param*/log*/editor* params.

parent de56484c
Pipeline #6675258 passed with stages
in 36 minutes and 52 seconds
* doc: Parameter
=== Low priority
* doc: Canvas
* api: xpress
* dsp: send updates of moony:editorHidden et al. together with moony:code
* api: Canvas input
* gui: clipboard support
* gui: external editor
=== High priority
* doc: Parameter
......@@ -2330,8 +2330,6 @@ moony_in(moony_t *moony, const LV2_Atom_Sequence *control, LV2_Atom_Sequence *no
if(ref)
ref = _moony_patch(&moony->uris.patch, forge, moony->uris.moony_code, moony->chunk, len);
//FIXME also send moony:editorHidden et al.
moony->dirty_out = 0; // reset flag
}
......
......@@ -87,10 +87,10 @@
#define MOONY_EDITOR_HIDDEN_URI MOONY_URI"#editorHidden"
#define MOONY_LOG_HIDDEN_URI MOONY_URI"#logHidden"
#define MOONY_PARAM_HIDDEN_URI MOONY_URI"#parameterHidden"
#define MOONY_PARAM_HIDDEN_URI MOONY_URI"#paramHidden"
#define MOONY_PARAM_COLS_URI MOONY_URI"#parameterCols"
#define MOONY_PARAM_ROWS_URI MOONY_URI"#parameterRows"
#define MOONY_PARAM_COLS_URI MOONY_URI"#paramCols"
#define MOONY_PARAM_ROWS_URI MOONY_URI"#paramRows"
#define MOONY_SIMPLE_UI_URI MOONY_URI"#ui_2_simple_1_ui"
#define MOONY_SIMPLE_KX_URI MOONY_URI"#ui_2_simple_2_kx"
......
......@@ -124,6 +124,7 @@ moony:c1xc1
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -204,6 +205,7 @@ moony:c2xc2
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -314,6 +316,7 @@ moony:c4xc4
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -384,6 +387,7 @@ moony:a1xa1
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -476,6 +480,7 @@ moony:a2xa2
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -612,6 +617,7 @@ moony:a4xa4
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -713,6 +719,7 @@ moony:c1a1xc1a1
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -819,6 +826,7 @@ moony:c2a1xc2a1
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -955,6 +963,7 @@ moony:c4a1xc4a1
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......
......@@ -29,22 +29,32 @@
# to please sord_validate
moony:code
a rdf:Property ;
a lv2:Parameter ;
rdfs:range atom:String ;
rdfs:label "Lua code chunk" .
moony:state
a rdf:Property ;
a lv2:Parameter ;
rdfs:range atom:Atom ;
rdfs:label "Lua code state" .
moony:editorHidden
a rdf:Property ;
a lv2:Parameter ;
rdfs:range atom:Bool ;
rdfs:label "Editor tab hidden state" .
moony:logHidden
a lv2:Parameter ;
rdfs:range atom:Bool ;
rdfs:label "Log tab hidden state" .
moony:paramHidden
a rdf:Property ;
a lv2:Parameter ;
rdfs:range atom:Bool ;
rdfs:label "Parameter tab hidden state" .
moony:paramCols
a rdf:Property ;
a lv2:Parameter ;
rdfs:range atom:Int ;
rdfs:label "Parameter tab columns" .
moony:paramRows
a rdf:Property ;
a lv2:Parameter ;
rdfs:range atom:Int ;
rdfs:label "Parameter tab rows" .
stateR:pBool
......@@ -85,6 +95,7 @@ moony:bank-through_control-through
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -98,6 +109,7 @@ moony:bank-through_atom-through
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -115,6 +127,7 @@ moony:bank-through_atom-through2
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -134,6 +147,7 @@ moony:bank-through_atom-through4
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -161,6 +175,7 @@ moony:bank-multiplex_atom-multiplex2
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -177,6 +192,7 @@ moony:bank-multiplex_atom-multiplex4
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -195,6 +211,7 @@ moony:bank-midi_midi-responder
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -219,6 +236,7 @@ moony:bank-time_midi-sequencer
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -267,6 +285,7 @@ moony:bank-osc_osc-responder
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -291,7 +310,8 @@ moony:bank-state_state-responder
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:paramHidden true ;
moony:logHidden true ;
moony:paramHidden false ;
moony:paramCols 3 ;
moony:paramRows 4 ;
moony:code """local urid = HashMap('urn:moony:stateR#')
......@@ -477,6 +497,7 @@ moony:bank-tutorial_part-1
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -517,6 +538,7 @@ moony:bank-tutorial_part-2
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -557,6 +579,7 @@ moony:bank-tutorial_part-3
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -648,6 +671,7 @@ moony:bank-tutorial_part-4
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -734,6 +758,7 @@ moony:bank-tutorial_part-5
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -791,6 +816,7 @@ moony:bank-tutorial_part-6
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -800,13 +826,13 @@ local urn = HashMap('urn:moony:tutorial-6#')
-- table with MIDI notes for 8 beats
local notes = {
Note['C-5'], -- beat 1
Note['D#-5'], -- beat 2
Note['C+4'], -- beat 1
Note['D#+4'], -- beat 2
false, -- beat 3
Note['C-5'], -- beat 4
Note['G-5'], -- beat 5
Note['C+4'], -- beat 4
Note['G+4'], -- beat 5
false, -- beat 6
Note['G-4'], -- beat 7
Note['G+3'], -- beat 7
false -- beat 8
}
......@@ -888,6 +914,7 @@ moony:bank-template_part-1
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -968,6 +995,7 @@ moony:bank-template_part-2
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -1029,6 +1057,7 @@ moony:bank-template_part-3
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:logHidden true ;
moony:paramHidden true ;
moony:paramCols 3 ;
moony:paramRows 4 ;
......@@ -1056,7 +1085,8 @@ moony:bank-template_part-4
doap:license lic:Artistic-2.0 ;
state:state [
moony:editorHidden false ;
moony:paramHidden true ;
moony:logHidden true ;
moony:paramHidden false ;
moony:paramCols 3 ;
moony:paramRows 4 ;
moony:code """-- Template 4: State Responder
......
......@@ -3117,6 +3117,13 @@ _patch_set_self(plughandle_t *handle, LV2_URID property, const LV2_Atom *value)
if(property == handle->moony_code)
{
_patch_set_code(handle, value->size, body, false);
// new state may have these differently, so request them
_patch_get(handle, handle->moony_editorHidden);
_patch_get(handle, handle->moony_logHidden);
_patch_get(handle, handle->moony_paramHidden);
_patch_get(handle, handle->moony_paramCols);
_patch_get(handle, handle->moony_paramRows);
}
else if(property == handle->moony_trace)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment