Commit Graph

14032 Commits

Author SHA1 Message Date
Robin Gareus
98769796d7 Fix VST callback and crash for some plugins
Apparently "MasterUpdateDisplay" is for plugins to notify the host about
state changes -- and not notficy the plugin's own UI.

see also
http://mixbus.harrisonconsoles.com/forum/thread-6229-post-37127.html
2018-07-30 15:42:17 +02:00
Robin Gareus
83ce11e411 Prepare types for new grid 2018-07-27 00:28:42 +02:00
Robin Gareus
43c76ff23b Fix crash when testing invalid MIDI file.
smf_delete() does not handle NULL pointers. This fixes a crash when
checking if a MIDI source is valid.
2018-07-26 16:59:27 +02:00
Robin Gareus
4b55d65eaa Fall back to default Session export dir, if export path does not exist. 2018-07-25 18:21:55 +02:00
Robin Gareus
0dc9c068e7 Don't allow invalid export Locations (when using the GUI) 2018-07-25 18:21:19 +02:00
Robin Gareus
ff5cc4a311 Reset export-config maps before each new export (1/2) 2018-07-25 18:19:55 +02:00
Robin Gareus
506863bf57 Add an API to reset export-handler configs.
config_map.erase() is only called in ExportHandler::finish_timespan().

When an export fails (throw) or is aborted, the export-handler's
config remains as is and the next export will run it again.

The export-handler is global, per session and
ExportHandler::add_export_config() only ever inserts or ignores insert.

This is in preparation to fix:
1) export to invalid path -> fail, error is thrown
2) correct path -> new config is inserted in the map
3) try to export again, first runs the not-completed export from (1)
  -> constant errors.
2018-07-25 18:19:19 +02:00
Robin Gareus
16ef78ade0 Clarify error message when file cannot be created,
The default error is "Not a valid SNDFILE* pointer." which is rather
obscure to end-users.
2018-07-25 17:46:15 +02:00
Robin Gareus
938b2422e3 Distinguish unset MIDI Patch and bank 0 2018-07-24 23:22:21 +02:00
Robin Gareus
9cf9833a93 Fix log-scale rangesteps and log-control numeric spinboxes 2018-07-21 17:19:49 +02:00
Robin Gareus
14517e13ec Fix and tweak LV2:RangeStep
Explicit cast to float (rangestep is unsigned int) when calculating
interface steps.
Also prefer to round to nearest value-point (rather than round-down).
2018-07-18 10:57:57 +02:00
Robin Gareus
bd4571eeae Add LTC Decoder Lua Bindings 2018-07-17 09:44:34 +02:00
Robin Gareus
e5a181c323 Refactor LTC File decoder, prepare for Lua bindings 2018-07-17 09:44:34 +02:00
Ben Loftis
ffc5d1474a auto-backup: libardour part. (from mixbus) 2018-07-14 12:46:49 -05:00
Robin Gareus
1d61a3e17f CC121: cycle track monitoring states 2018-07-12 21:43:49 +02:00
Robin Gareus
da6a6f1366 CC121: watch Track monitoring state 2018-07-12 21:42:57 +02:00
Robin Gareus
6bb8f1e7de MonitorCue = In + Disk (fixes CC121 + push2 display) 2018-07-12 21:41:34 +02:00
John Emmas
0a0dd8de13 Correct a couple of typos 2018-07-11 14:01:46 +01:00
Robin Gareus
333f59a53f Fix lv2-state templates with external files.
This forces liblilv to collect external files in the template-folder
and symlink to the original file instead of re-using the external-file
folder of the session that was used to create the template.
2018-07-10 00:58:18 +02:00
Robin Gareus
59029765e8 NO-OP: Rename disk-reader buffer for consistency
This is in preparation to replace the Ringbuffer and avoid over-using
"buf" as variable (it's already used for vectors, as parameter name and
Audiobuffers.
2018-07-09 19:49:18 +02:00
Robin Gareus
dca30c99fc Prepare API for per disk-reader de-click 2018-07-09 17:38:35 +02:00
Robin Gareus
bee09ac9e1 Remove unused CubicInterpolation from session 2018-07-09 17:30:38 +02:00
Robin Gareus
87b2c94759 Separate ChannelInfo for disk reader and writer
This allows to use different types for write and read buffers, in
preparation for a dedicated reader-buffer.
2018-07-09 17:30:38 +02:00
Robin Gareus
cf11764763 Remove unused disk-reader vari-speed 2018-07-09 17:30:38 +02:00
Robin Gareus
cdec333bfe move rt-stop to route
currently this is only used to resolve midi events for plugins
(this is conceptually not correct, note offs should be resolved by
the disk-reader only), but it calls into all processors now (incl
disk-reader if present), which is handy (e.g. flush delaylins)
2018-07-09 17:30:38 +02:00
Robin Gareus
2953b575f2 Remove unused AutoLoopDeclick, PendingLoopDeclick
The flags were set, but not used. They also won't be needed anymore.
2018-07-09 17:30:38 +02:00
Robin Gareus
249640267c Remove global declick API
De-click will be per disk-reader, latency compensated and buffer-size
independent. Cue-monitoring should not be affected by de-click.
2018-07-09 17:30:38 +02:00
Paul Davis
8664768efa make velocity bars thinner (from alex mitchell) 2018-07-08 07:12:12 -04:00
Len Ovens
8004b9bb8e OSC: custom mode should turn temp mode off 2018-07-06 08:09:03 -07:00
Len Ovens
e1ce87956a OSC: record tally should include master record 2018-07-06 08:08:29 -07:00
Len Ovens
c2af992ac7 OSC: Use spill instead of collect 2018-07-06 07:35:24 -07:00
Len Ovens
3322e6f5a5 OSC: make temp modes work with linked surfaces too 2018-07-05 23:24:30 -07:00
Paul Davis
b4b2fbb6ed remove debug output 2018-07-05 13:49:27 -04:00
Paul Davis
9da1253288 system common and system realtime messages are not valid in SMF files 2018-07-05 13:45:17 -04:00
Paul Davis
027d0efc2d catch various libsmf errors rethrown as exceptions 2018-07-05 13:45:17 -04:00
Paul Davis
1a25672239 change all use of g_critical() in libsmf() to g_warning()
g_critical translates to a fatal error in ardour, which is not true for any of these
errors.
2018-07-05 13:45:17 -04:00
Robin Gareus
7af016b089 Prepare CC121 ctrl surface for Mixbus
- fix Panner
- implement touch-start when changing ctrls
- map some well-known ctrls (not yet ideal)
2018-07-05 16:49:01 +02:00
John Emmas
ab6525a24f Accommodate newly introduced source(s) in our MSVC project (cairocanvas) 2018-07-05 08:22:44 +01:00
Len Ovens
4b47a4c4cc OSC: Set lowest select meter to -120 for mixbus 2018-07-04 19:18:38 -07:00
Paul Davis
6e79f473f4 ignore system reset messages entirely in the MIDI parser 2018-07-04 15:40:47 -04:00
Paul Davis
bf2f4bd28a method for setting whether or not to show velocity bars 2018-07-03 15:39:08 -04:00
Paul Davis
0ff671b1a3 reverse velocity display related commits 2018-07-03 15:38:30 -04:00
Paul Davis
b6711383f3 enum convert for VelocityDisplayOption 2018-07-03 14:06:09 -04:00
Paul Davis
e3cb6dd603 add VelocityDisplayOption enum; indent TrackAutoNamingRule decl. correctly 2018-07-03 14:05:16 -04:00
Paul Davis
c190581552 fix rectangle computation, and re-use alex' color computation 2018-07-03 12:39:56 -04:00
Paul Davis
21582828b7 add a guess at appropriate color management for note velocity display
I think that HSV::opposite() is probably too strong here. HSV::darker() might be better. Experimentation needed.
2018-07-03 11:43:42 -04:00
Paul Davis
644a05f60b use new Canvas::Note object for (sustained) note display 2018-07-03 11:21:53 -04:00
Paul Davis
ed24e01658 initial implementation of a more specialized canvas item for (sustained) notes 2018-07-03 11:21:25 -04:00
Paul Davis
5102d8fae1 minor code optimization for Rectangle::render() 2018-07-03 09:22:32 -04:00
Len Ovens
9d99cc8b01 OSC: Make sure group name for select gets updated 2018-07-02 08:18:42 -07:00