aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/eg-amp.lv2/amp.c2
-rw-r--r--plugins/eg-amp.lv2/wscript3
-rw-r--r--plugins/eg-fifths.lv2/fifths.c6
-rw-r--r--plugins/eg-fifths.lv2/wscript2
-rw-r--r--plugins/eg-metro.lv2/metro.c2
-rw-r--r--plugins/eg-metro.lv2/wscript3
-rw-r--r--plugins/eg-midigate.lv2/wscript3
-rw-r--r--plugins/eg-sampler.lv2/wscript2
-rw-r--r--plugins/eg-scope.lv2/examploscope_ui.c12
-rw-r--r--plugins/wscript3
10 files changed, 17 insertions, 21 deletions
diff --git a/plugins/eg-amp.lv2/amp.c b/plugins/eg-amp.lv2/amp.c
index eea9861..2aa39c4 100644
--- a/plugins/eg-amp.lv2/amp.c
+++ b/plugins/eg-amp.lv2/amp.c
@@ -214,7 +214,7 @@ static const LV2_Descriptor descriptor = {
indices to find all the plugins defined in the library. The index is not an
indentifier, the URI of the returned descriptor is used to determine the
identify of the plugin.
-
+
This method is in the ``discovery'' threading class, so no other functions
or methods in this plugin library will be called concurrently with it.
*/
diff --git a/plugins/eg-amp.lv2/wscript b/plugins/eg-amp.lv2/wscript
index e068a60..96152c1 100644
--- a/plugins/eg-amp.lv2/wscript
+++ b/plugins/eg-amp.lv2/wscript
@@ -22,7 +22,7 @@ def configure(conf):
if not autowaf.is_child():
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2')
-
+
conf.check(features='c cshlib', lib='m', uselib_store='M', mandatory=False)
autowaf.display_msg(conf, 'LV2 bundle directory', conf.env.LV2DIR)
@@ -64,4 +64,3 @@ def build(bld):
uselib = 'M LV2',
includes = includes)
obj.env.cshlib_PATTERN = module_pat
-
diff --git a/plugins/eg-fifths.lv2/fifths.c b/plugins/eg-fifths.lv2/fifths.c
index c7d12e1..25d7fee 100644
--- a/plugins/eg-fifths.lv2/fifths.c
+++ b/plugins/eg-fifths.lv2/fifths.c
@@ -95,7 +95,7 @@ instantiate(const LV2_Descriptor* descriptor,
// Map URIs and initialise forge/logger
map_fifths_uris(self->map, &self->uris);
-
+
return (LV2_Handle)self;
}
@@ -142,12 +142,12 @@ run(LV2_Handle instance,
if (note <= 127 - 7) {
// Make a note one 5th (7 semitones) higher than input
MIDINoteEvent fifth;
-
+
// Could simply do fifth.event = *ev here instead...
fifth.event.time.frames = ev->time.frames; // Same time
fifth.event.body.type = ev->body.type; // Same type
fifth.event.body.size = ev->body.size; // Same size
-
+
fifth.msg[0] = msg[0]; // Same status
fifth.msg[1] = msg[1] + 7; // Pitch up 7 semitones
fifth.msg[2] = msg[2]; // Same velocity
diff --git a/plugins/eg-fifths.lv2/wscript b/plugins/eg-fifths.lv2/wscript
index c45dd64..811634e 100644
--- a/plugins/eg-fifths.lv2/wscript
+++ b/plugins/eg-fifths.lv2/wscript
@@ -39,7 +39,7 @@ def build(bld):
target = '%s/%s' % (bundle, 'manifest.ttl'),
install_path = '${LV2DIR}/%s' % bundle,
LIB_EXT = module_ext)
-
+
# Copy other data files to build bundle (build/eg-fifths.lv2)
for i in ['fifths.ttl']:
bld(features = 'subst',
diff --git a/plugins/eg-metro.lv2/metro.c b/plugins/eg-metro.lv2/metro.c
index 5e484b7..84d042d 100644
--- a/plugins/eg-metro.lv2/metro.c
+++ b/plugins/eg-metro.lv2/metro.c
@@ -69,7 +69,7 @@ typedef enum {
wave which is conceptually played continuously. The 'tick' is generated by
enveloping the amplitude so there is a short attack/decay peak around a
tick, and silence the rest of the time.
-
+
This example uses a simple AD envelope with fixed parameters. A more
sophisticated implementation might use a more advanced envelope and allow
the user to modify these parameters, the frequency of the wave, and so on.
diff --git a/plugins/eg-metro.lv2/wscript b/plugins/eg-metro.lv2/wscript
index 2a3731c..515dd6c 100644
--- a/plugins/eg-metro.lv2/wscript
+++ b/plugins/eg-metro.lv2/wscript
@@ -41,7 +41,7 @@ def build(bld):
target = '%s/%s' % (bundle, 'manifest.ttl'),
install_path = '${LV2DIR}/%s' % bundle,
LIB_EXT = module_ext)
-
+
# Copy other data files to build bundle (build/eg-metro.lv2)
bld(features = 'subst',
is_copy = True,
@@ -63,4 +63,3 @@ def build(bld):
use = ['M', 'LV2'],
includes = includes)
obj.env.cshlib_PATTERN = module_pat
-
diff --git a/plugins/eg-midigate.lv2/wscript b/plugins/eg-midigate.lv2/wscript
index 44336af..16c8e5e 100644
--- a/plugins/eg-midigate.lv2/wscript
+++ b/plugins/eg-midigate.lv2/wscript
@@ -22,7 +22,7 @@ def configure(conf):
if not autowaf.is_child():
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2')
-
+
autowaf.display_msg(conf, 'LV2 bundle directory', conf.env.LV2DIR)
print('')
@@ -62,4 +62,3 @@ def build(bld):
uselib = 'LV2',
includes = includes)
obj.env.cshlib_PATTERN = module_pat
-
diff --git a/plugins/eg-sampler.lv2/wscript b/plugins/eg-sampler.lv2/wscript
index 554a75c..3a6f472 100644
--- a/plugins/eg-sampler.lv2/wscript
+++ b/plugins/eg-sampler.lv2/wscript
@@ -45,7 +45,7 @@ def build(bld):
target = '%s/%s' % (bundle, 'manifest.ttl'),
install_path = '${LV2DIR}/%s' % bundle,
LIB_EXT = module_ext)
-
+
# Copy other data files to build bundle (build/eg-sampler.lv2)
for i in ['sampler.ttl', 'click.wav']:
bld(features = 'subst',
diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c
index a8c1e2c..04f6292 100644
--- a/plugins/eg-scope.lv2/examploscope_ui.c
+++ b/plugins/eg-scope.lv2/examploscope_ui.c
@@ -296,17 +296,17 @@ on_expose_event(GtkWidget* widget, GdkEventExpose* ev, gpointer data)
/**
Parse raw audio data and prepare for later drawing.
-
+
Note this is a toy example, which is really a waveform display, not an
oscilloscope. A serious scope would not display samples as is.
-
+
Signals above ~ 1/10 of the sampling-rate will not yield a useful visual
display and result in a rather unintuitive representation of the actual
waveform.
-
+
Ideally the audio-data would be buffered and upsampled here and after that
written in a display buffer for later use.
-
+
For more information, see
https://wiki.xiph.org/Videos/Digital_Show_and_Tell
http://lac.linuxaudio.org/2013/papers/36.pdf
@@ -587,7 +587,7 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj)
fprintf(stderr, "eg-scope.lv2 UI error: Corrupt state message\n");
return 1;
}
-
+
// Get the values we need from the body of the property value atoms
const int32_t spp = ((const LV2_Atom_Int*)spp_val)->body;
const float amp = ((const LV2_Atom_Float*)amp_val)->body;
@@ -603,7 +603,7 @@ recv_ui_state(EgScopeUI* ui, const LV2_Atom_Object* obj)
/**
Receive data from the DSP-backend.
-
+
This is called by the host, typically at a rate of around 25 FPS.
Ideally this happens regularly and with relatively low latency, but there
diff --git a/plugins/wscript b/plugins/wscript
index f099183..db641b4 100644
--- a/plugins/wscript
+++ b/plugins/wscript
@@ -15,7 +15,7 @@ def bld_book_src(task):
filenames += [i.abspath()]
literasc.gen(open(task.outputs[0].abspath(), 'w'), filenames)
-
+
def build(bld):
files = [bld.path.find_node('README.txt')]
for i in ['eg-amp.lv2',
@@ -41,4 +41,3 @@ def build(bld):
stylesdir, pygments_style),
source = 'book.txt',
target = 'book.html')
-