Commit b5e94ddd authored by Hanspeter Portner's avatar Hanspeter Portner

prototype inline display.

parent 2c5dd19f
Pipeline #4510543 failed with stages
in 14 minutes and 8 seconds
......@@ -5,6 +5,7 @@ project(moony.lv2)
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/tlsf-3.0)
include_directories(${PROJECT_SOURCE_DIR}/kx.lv2)
include_directories(${PROJECT_SOURCE_DIR}/ardour.lv2)
include_directories(${PROJECT_SOURCE_DIR}/osc.lv2)
include_directories(${PROJECT_SOURCE_DIR}/timely.lv2)
include_directories(${PROJECT_SOURCE_DIR}/xpress.lv2)
......@@ -31,6 +32,8 @@ set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wredundant-decls -W
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,defs ${CMAKE_MODULE_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,nodelete ${CMAKE_MODULE_LINKER_FLAGS}")
elseif(WIN32)
set(CMAKE_C_FLAGS "-mstackrealign -mpreferred-stack-boundary=2 ${CMAKE_C_FLAGS}")
endif()
add_definitions("-D_GNU_SOURCE=1") # asprintf
......@@ -49,9 +52,11 @@ endif()
find_package(PkgConfig) # ${PKG_CONFIG_FOUND}
set(LIBS m)
pkg_search_module(LV2 REQUIRED lv2>=1.10)
include_directories(${LV2_INCLUDE_DIRS})
set(LIBS ${LIBS} ${LV2_LDFLAGS} m)
set(LIBS ${LIBS} ${LV2_LDFLAGS})
# options
include(CMakeDependentOption)
......
......@@ -477,6 +477,49 @@ _ldecrypt(lua_State *L)
return 1;
}
static int
_lqueue_draw(lua_State *L)
{
moony_t *moony = lua_touserdata(L, lua_upvalueindex(1));
lua_settop(L, 1); // ignore superfluous arguments
if(moony->queue_draw && lua_isfunction(L, 1) && _try_lock(&moony->lock.render) )
{
lforge_t *lframe = moony_newuserdata(L, moony, MOONY_UDATA_FORGE, true);
lframe->depth = 0;
lframe->last.frames = 0;
lframe->forge = &moony->render.forge;
atom_ser_t ser = {
.moony = moony,
.size = 1024,
.offset = 0
};
ser.buf = moony_alloc(moony, ser.size);
if(ser.buf)
{
memset(ser.buf, 0x0, sizeof(LV2_Atom));
lv2_atom_forge_set_sink(lframe->forge, _sink, _deref, &ser);
lua_call(L, 1, 0);
if(moony->render.atom)
moony_free(moony, moony->render.atom, moony->render.size);
LV2_Atom *atom = (LV2_Atom *)ser.buf;
moony->render.atom = atom;
moony->render.size = ser.size;
moony->queue_draw->queue_draw(moony->queue_draw->handle);
}
_unlock(&moony->lock.render);
}
return 0;
}
LV2_Atom_Forge_Ref
_sink(LV2_Atom_Forge_Sink_Handle handle, const void *buf, uint32_t size)
{
......@@ -917,6 +960,198 @@ static const LV2_Worker_Interface work_iface = {
.end_run = _end_run
};
// Xiaolin Wu's line algorithm
static inline void
_wu_plot(uint32_t *surf, uint32_t stride, int x, int y, float c, uint32_t col)
{
const uint32_t a = ( 0xff ); //TODO
const uint32_t r = ( (col >> 16) & 0xff ) * c;
const uint32_t g = ( (col >> 8) & 0xff ) * c;
const uint32_t b = ( (col >> 0) & 0xff ) * c;
surf[y*stride + x] = (a << 24) | (r << 16) | (g << 8) | (b << 0);
}
static inline int
_wu_ipart(float x)
{
return (int)x;
}
static inline int
_wu_round(float x)
{
return _wu_ipart(x + 0.5);
}
static inline float
_wu_fpart(float x)
{
if(x < 0.f)
return 1.f - (x - floor(x));
return x - floor(x);
}
static inline float
_wu_rfpart(float x)
{
return 1.f - _wu_fpart(x);
}
static inline void
_wu_swap(float *a, float *b)
{
const float c = *a;
*a = *b;
*b = c;
}
static inline void
_wu_line(uint32_t *surf, uint32_t stride, float x0, float y0, float x1, float y1, uint32_t col)
{
const bool steep = fabs(y1 - y0) > fabs(x1 - x0);
if(steep)
{
_wu_swap(&x0, &y0);
_wu_swap(&x1, &y1);
}
if(x0 > x1)
{
_wu_swap(&x0, &x1);
_wu_swap(&y0, &y1);
}
const float dx = x1 - x0;
const float dy = y1 - y0;
const float gradient = dy / dx;
// handle first endpoint
float xend = round(x0);
float yend = y0 + gradient * (xend - x0);
float xgap = _wu_rfpart(x0 + 0.5);
const int xpxl1 = xend;
const int ypxl1 = _wu_ipart(yend);
if(steep)
{
_wu_plot(surf, stride, ypxl1, xpxl1, _wu_rfpart(yend) * xgap, col);
_wu_plot(surf, stride, ypxl1+1, xpxl1, _wu_fpart(yend) * xgap, col);
}
else
{
_wu_plot(surf, stride, xpxl1, ypxl1, _wu_rfpart(yend) * xgap, col);
_wu_plot(surf, stride, xpxl1, ypxl1+1, _wu_fpart(yend) * xgap, col);
}
float intery = yend + gradient;
// handle second point
xend = round(x1);
yend = y1 + gradient * (xend - x1);
xgap = _wu_fpart(x1 + 0.5);
const int xpxl2 = xend;
const int ypxl2 = _wu_ipart(yend);
if(steep)
{
_wu_plot(surf, stride, ypxl2, xpxl2, _wu_rfpart(yend) * xgap, col);
_wu_plot(surf, stride, ypxl2+1, xpxl2, _wu_fpart(yend) * xgap, col);
}
else
{
_wu_plot(surf, stride, xpxl2, ypxl2, _wu_rfpart(yend) * xgap, col);
_wu_plot(surf, stride, xpxl2, ypxl2+1, _wu_fpart(yend) * xgap, col);
}
// main loop
if(steep)
{
for(int x=xpxl1+1; x<=xpxl2-1; x++, intery+=gradient)
{
_wu_plot(surf, stride, _wu_ipart(intery), x, _wu_rfpart(intery), col);
_wu_plot(surf, stride, _wu_ipart(intery)+1, x, _wu_fpart(intery), col);
}
}
else
{
for(int x=xpxl1+1; x<=xpxl2-1; x++, intery+=gradient)
{
_wu_plot(surf, stride, x, _wu_ipart(intery), _wu_rfpart(intery), col);
_wu_plot(surf, stride, x, _wu_ipart(intery)+1, _wu_fpart(intery), col);
}
}
}
// non-rt
static LV2_Inline_Display_Image_Surface *
_render(LV2_Handle instance, uint32_t w, uint32_t h)
{
moony_t *moony = instance;
// prepare pixel surface in all cases
LV2_Inline_Display_Image_Surface *surf = &moony->image_surface;
if( (surf->width != (int)w) || (surf->height > (int)h) || !surf->data)
{
surf->width = w;
surf->height = w > h ? h : w; // use ratio 1:1
surf->stride = surf->width * sizeof(uint32_t);
surf->data = realloc(surf->data, surf->stride * surf->height);
if(!surf->data)
return NULL;
}
memset(surf->data, 0x0, surf->stride * surf->height);
const float y2 = surf->height - 1;
bool first = true;
float x0 = 0.f;
float y0 = 0.f;
_spin_lock(&moony->lock.render)
if(moony->render.atom && (moony->render.atom->type == moony->render.forge.Tuple))
{
LV2_ATOM_TUPLE_FOREACH((const LV2_Atom_Tuple *)moony->render.atom, point)
{
if(point->type == moony->render.forge.Tuple)
{
const LV2_Atom_Tuple *tup = (const LV2_Atom_Tuple*)point;
const LV2_Atom *X = lv2_atom_tuple_begin(tup);
const LV2_Atom *Y = lv2_atom_tuple_is_end(LV2_ATOM_BODY_CONST(tup), tup->atom.size, X)
? NULL
: lv2_atom_tuple_next(X);
const LV2_Atom *C = lv2_atom_tuple_is_end(LV2_ATOM_BODY_CONST(tup), tup->atom.size, Y)
? NULL
: lv2_atom_tuple_next(Y);
if( X && (X->type == moony->render.forge.Float)
&& Y && (Y->type == moony->render.forge.Float) )
{
const float x1 = ((const LV2_Atom_Float *)X)->body * (surf->width-1);
const float y1 = ((const LV2_Atom_Float *)Y)->body * (surf->height-1);
const int64_t c = C && (C->type == moony->render.forge.Long)
? ((const LV2_Atom_Long *)C)->body
: 0xffffff;
if(first)
first = false;
else
_wu_line((uint32_t *)surf->data, surf->width, x0, y2-y0, x1, y2-y1, c);
x0 = x1;
y0 = y1;
}
}
}
}
else
surf = NULL;
_unlock(&moony->lock.render);
return surf;
}
static const LV2_Inline_Display_Interface inlinedisplay_iface = {
.render = _render
};
const void*
extension_data(const char* uri)
{
......@@ -924,6 +1159,8 @@ extension_data(const char* uri)
return &work_iface;
else if(!strcmp(uri, LV2_STATE__interface))
return &state_iface;
else if(!strcmp(uri, LV2_INLINEDISPLAY__interface))
return &inlinedisplay_iface;
else
return NULL;
}
......@@ -959,6 +1196,8 @@ moony_init(moony_t *moony, const char *subject, double sample_rate,
load_default_state = true;
else if(!strcmp(features[i]->URI, XPRESS_VOICE_MAP))
moony->voice_map = features[i]->data;
else if(!strcmp(features[i]->URI, LV2_INLINEDISPLAY__queue_draw))
moony->queue_draw = features[i]->data;
}
if(!moony->map)
......@@ -1042,6 +1281,7 @@ moony_init(moony_t *moony, const char *subject, double sample_rate,
lv2_atom_forge_init(&moony->forge, moony->map);
lv2_atom_forge_init(&moony->state_forge, moony->map);
lv2_atom_forge_init(&moony->stash_forge, moony->map);
lv2_atom_forge_init(&moony->render.forge, moony->map);
lv2_atom_forge_init(&moony->notify_forge, moony->map);
if(moony->log)
lv2_log_logger_init(&moony->logger, moony->map, moony->log);
......@@ -1117,6 +1357,7 @@ moony_init(moony_t *moony, const char *subject, double sample_rate,
moony->props_out = 1; // trigger update of UI
atomic_flag_clear_explicit(&moony->lock.state, memory_order_relaxed);
atomic_flag_clear_explicit(&moony->lock.render, memory_order_relaxed);
moony_freeuserdata(moony);
......@@ -1135,6 +1376,15 @@ moony_deinit(moony_t *moony)
moony->stash_atom = NULL;
moony->stash_size = 0;
if(moony->render.atom)
moony_free(moony, moony->render.atom, moony->render.size);
moony->render.atom = NULL;
moony->render.size = 0;
if(moony->image_surface.data)
free(moony->image_surface.data);
moony->image_surface.data = NULL;
moony_vm_deinit(&moony->vm);
}
......@@ -1611,6 +1861,10 @@ moony_open(moony_t *moony, lua_State *L, bool use_assert)
lua_pushcclosure(L, _ldecrypt, 0);
lua_setglobal(L, "decrypt");
lua_pushlightuserdata(L, moony); // @ upvalueindex 1
lua_pushcclosure(L, _lqueue_draw, 1);
lua_setglobal(L, "draw");
#undef SET_MAP
}
......
/*
Copyright 2016 Robin Gareus <robin@gareus.org>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _ardour_lv2_extensions_h_
#define _ardour_lv2_extensions_h_
#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
/**
@defgroup inlinedisplay Inline-Display
Support for displaying a miniaturized generic view
directly in the host's Mixer Window.
@{
*/
#define LV2_INLINEDISPLAY_URI "http://harrisonconsoles.com/lv2/inlinedisplay"
#define LV2_INLINEDISPLAY_PREFIX LV2_INLINEDISPLAY_URI "#"
#define LV2_INLINEDISPLAY__interface LV2_INLINEDISPLAY_PREFIX "interface"
#define LV2_INLINEDISPLAY__queue_draw LV2_INLINEDISPLAY_PREFIX "queue_draw"
/** Opaque handle for LV2_Inline_Display::queue_draw() */
typedef void* LV2_Inline_Display_Handle;
/** raw image pixmap format is ARGB32,
* the data pointer is owned by the plugin and must be valid
* from the first call to render until cleanup.
*/
typedef struct {
unsigned char *data;
int width;
int height;
int stride;
} LV2_Inline_Display_Image_Surface;
/** a LV2 Feature provided by the Host to the plugin */
typedef struct {
/** Opaque host data */
LV2_Inline_Display_Handle handle;
/** Request from run() that the host should call render() at a later time
* to update the inline display */
void (*queue_draw)(LV2_Inline_Display_Handle handle);
} LV2_Inline_Display;
/**
* Plugin Inline-Display Interface.
*/
typedef struct {
/**
* The render method. This is called by the host in a non-realtime context,
* usually the main GUI thread.
* The data pointer is owned by the plugin and must be valid
* from the first call to render until cleanup.
*
* @param instance The LV2 instance
* @param w the max available width
* @param h the max available height
* @return pointer to a LV2_Inline_Display_Image_Surface or NULL
*/
LV2_Inline_Display_Image_Surface* (*render)(LV2_Handle instance, uint32_t w, uint32_t h);
} LV2_Inline_Display_Interface;
/**
@}
*/
/**
@defgroup automate Self-Automation
Support for plugins to write automation data via Atom Events
@{
*/
#define LV2_AUTOMATE_URI "http://ardour.org/lv2/automate"
#define LV2_AUTOMATE_URI_PREFIX LV2_AUTOMATE_URI "#"
/** an lv2:optionalFeature */
#define LV2_AUTOMATE_URI__can_write LV2_AUTOMATE_URI_PREFIX "canWriteAutomatation"
/** atom:supports */
#define LV2_AUTOMATE_URI__control LV2_AUTOMATE_URI_PREFIX "automationControl"
/** lv2:portProperty */
#define LV2_AUTOMATE_URI__controlled LV2_AUTOMATE_URI_PREFIX "automationControlled"
#define LV2_AUTOMATE_URI__controller LV2_AUTOMATE_URI_PREFIX "automationController"
/** atom messages */
#define LV2_AUTOMATE_URI__event LV2_AUTOMATE_URI_PREFIX "event"
#define LV2_AUTOMATE_URI__setup LV2_AUTOMATE_URI_PREFIX "setup"
#define LV2_AUTOMATE_URI__finalize LV2_AUTOMATE_URI_PREFIX "finalize"
#define LV2_AUTOMATE_URI__start LV2_AUTOMATE_URI_PREFIX "start"
#define LV2_AUTOMATE_URI__end LV2_AUTOMATE_URI_PREFIX "end"
#define LV2_AUTOMATE_URI__parameter LV2_AUTOMATE_URI_PREFIX "parameter"
#define LV2_AUTOMATE_URI__value LV2_AUTOMATE_URI_PREFIX "value"
/**
@}
*/
/**
@defgroup license License-Report
Allow for commercial LV2 to report their
licensing status.
@{
*/
#define LV2_PLUGINLICENSE_URI "http://harrisonconsoles.com/lv2/license"
#define LV2_PLUGINLICENSE_PREFIX LV2_PLUGINLICENSE_URI "#"
#define LV2_PLUGINLICENSE__interface LV2_PLUGINLICENSE_PREFIX "interface"
typedef struct _LV2_License_Interface {
/* @return -1 if no license is needed; 0 if unlicensed, 1 if licensed */
int (*is_licensed)(LV2_Handle instance);
/* @return a string copy of the licensee name if licensed, or NULL, the caller needs to free this */
char* (*licensee)(LV2_Handle instance);
/* @return a URI identifying the plugin-bundle or plugin for which a given license is valid */
const char* (*product_uri)(LV2_Handle instance);
/* @return human readable product name for the URI */
const char* (*product_name)(LV2_Handle instance);
/* @return link to website or webstore */
const char* (*store_url)(LV2_Handle instance);
} LV2_License_Interface;
/**
@}
*/
/**
@defgroup plugin provided bypass
A port with the designation "processing#enable" must
control a plugin's internal bypass mode.
If the port value is larger than zero the plugin processes
normally.
If the port value is zero, the plugin is expected to bypass
all signals unmodified.
The plugin is responsible for providing a click-free transition
between the states.
(values less than zero are reserved for future use:
e.g click-free insert/removal of latent plugins.
Generally values <= 0 are to be treated as bypassed.)
lv2:designation <http://ardour.org/lv2/processing#enable> ;
@{
*/
#define LV2_PROCESSING_URI "http://ardour.org/lv2/processing"
#define LV2_PROCESSING_URI_PREFIX LV2_PROCESSING_URI "#"
#define LV2_PROCESSING_URI__enable LV2_PROCESSING_URI_PREFIX "enable"
/**
@}
*/
#endif
......@@ -47,6 +47,8 @@
#include <lv2/lv2plug.in/ns/extensions/ui/ui.h>
#include <lv2/lv2plug.in/ns/extensions/units/units.h>
#include <lv2_extensions.h>
#include <api_vm.h>
#include <osc.lv2/osc.h>
#include <xpress.h>
......@@ -271,6 +273,9 @@ struct _moony_t {
xpress_map_t *voice_map;
LV2_Inline_Display *queue_draw;
LV2_Inline_Display_Image_Surface image_surface;
moony_vm_t vm;
volatile int props_out;
......@@ -284,12 +289,19 @@ struct _moony_t {
struct {
atomic_flag state;
atomic_flag render;
} lock;
LV2_Atom *state_atom;
LV2_Atom *stash_atom;
uint32_t stash_size;
struct {
LV2_Atom_Forge forge;
LV2_Atom *atom;
uint32_t size;
} render;
latom_driver_hash_t atom_driver_hash [DRIVER_HASH_MAX];
char error [MOONY_MAX_ERROR_LEN];
......
......@@ -27,6 +27,7 @@
@prefix bufsz: <http://lv2plug.in/ns/ext/buf-size#> .
@prefix urid: <http://lv2plug.in/ns/ext/urid#> .
@prefix kx: <http://kxstudio.sf.net/ns/lv2ext/external-ui#> .
@prefix idisp: <http://harrisonconsoles.com/lv2/inlinedisplay#> .
@prefix xpress: <http://open-music-kontrollers.ch/lv2/xpress#> .
@prefix osc: <http://open-music-kontrollers.ch/lv2/osc#> .
......@@ -46,6 +47,12 @@ osc:Event
rdfs:subClassOf atom:Object ;
rdfs:label "OSC Event (Bundle or Message)" .
idisp:interface
a lv2:ExtensionData .
idisp:queue_draw
a lv2:Feature .
# Maintainer
omk:me
a foaf:Person ;
......@@ -68,8 +75,8 @@ moony:c1xc1
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -127,8 +134,8 @@ moony:c2xc2
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -201,8 +208,8 @@ moony:c4xc4
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -305,8 +312,8 @@ moony:a1xa1
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -373,8 +380,8 @@ moony:a2xa2
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -465,8 +472,8 @@ moony:a4xa4
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -605,8 +612,8 @@ moony:c1a1xc1a1
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -692,8 +699,8 @@ moony:c2a1xc2a1
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......@@ -794,8 +801,8 @@ moony:c4a1xc4a1
doap:license lic:Artistic-2.0 ;
rdfs:comment "Realtime Lua as programmable glue in LV2";
lv2:project proj:moony ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap ;
lv2:extensionData work:interface, state:interface ;
lv2:optionalFeature lv2:isLive, lv2:hardRTCapable, bufsz:boundedBlockLength, osc:schedule, state:loadDefaultState, xpress:voiceMap, idisp:queue_draw ;
lv2:extensionData work:interface, state:interface, idisp:interface ;
lv2:requiredFeature work:schedule, urid:map, urid:unmap ;
lv2:port [
......
......@@ -24,7 +24,7 @@ var LuaHighlightRules = function() {
"__concat|__len|__eq|__lt|__le|__index|__newindex|__call|"+
"__gc|__mode|__name|__tostring|__metatable|__pairs|"+
// moony basic
"run|once|save|restore|stash|apply|register|midi2cps|cps2midi|encrypt|decrypt");
"run|once|save|restore|stash|apply|register|midi2cps|cps2midi|encrypt|decrypt|draw");
var field_functions = (
// Lua coroutine
......
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