diff -rupN calf-0.90.0.org/src/calf/jackhost.h calf-0.90.0/src/calf/jackhost.h
--- calf-0.90.0.org/src/calf/jackhost.h 2017-11-02 05:33:48.000000000 -0400
+++ calf-0.90.0/src/calf/jackhost.h 2018-05-23 00:10:09.792550736 -0400
@@ -146,8 +146,8 @@ public:
public:
// Port access
- port *get_inputs() { return &inputs[0]; }
- port *get_outputs() { return &outputs[0]; }
+ port *get_inputs() { return inputs.empty() ? NULL : &inputs[0]; }
+ port *get_outputs() { return outputs.empty() ? NULL : &outputs[0]; }
float *get_params() { return param_values; }
port *get_midi_port() { return get_metadata_iface()->get_midi() ? &midi_port : NULL; }
public:
diff -rupN calf-0.90.0.org/src/ctl_knob.cpp calf-0.90.0/src/ctl_knob.cpp
--- calf-0.90.0.org/src/ctl_knob.cpp 2017-07-04 17:41:59.000000000 -0400
+++ calf-0.90.0/src/ctl_knob.cpp 2018-05-23 00:19:47.273635634 -0400
@@ -216,7 +216,7 @@ calf_knob_expose (GtkWidget *widget, Gdk
}
while (deg <= end) {
if (self->debug) printf("tick %d deg %.2f last %.2f end %.2f\n", tick, deg, last, end);
- if (self->ticks.size() and deg == start + range01(self->ticks[tick]) * base) {
+ if (self->ticks.size() and tick < self->ticks.size() and deg == start + range01(self->ticks[tick]) * base) {
// seems we want to draw a tick on this angle.
// so we have to fill the void between the last set angle
// and the point directly before the tick first.