Commit Graph

32 Commits

Author SHA1 Message Date
Damien Zammit 772512a62d pt import: Correct the log warning message when at least one audio file failed to load 2021-01-17 13:19:54 +11:00
Damien Zammit 2645ab2e73 pt import: Fix import -> cancel -> import by clearing status 2021-01-17 13:19:54 +11:00
Damien Zammit 5d0de7e037 pt import: Fix progress bar to span the whole import 2021-01-17 13:19:54 +11:00
Damien Zammit 12d62cd16e pt import: Fix race condition/threading, don't call new_audio_track() in bg thread 2021-01-17 13:19:54 +11:00
Damien Zammit cbd0ba90c6 pt import: Fix two warnings from valgrind
- Remove uninitialised unused variable
- Remove jump condition on uninitialised variable
2021-01-06 11:30:12 +11:00
Robin Gareus 8710a2d943
Dialog default to cancel (#7915)
There are various ways to cancel a dialog. Only checking for
RESPONSE_CANCEL is not sufficient. e.g. Esc causes a delete-event.

 * Gtk::RESPONSE_CLOSE
 * Gtk::RESPONSE_REJECT
 * Gtk::RESPONSE_DELETE_EVENT
 * Gtk::RESPONSE_CANCEL
 * Gtk::RESPONSE_NO

Among others this fixes "Clicking session > open,
then hitting ESC opens the currently selected folder and session"
2020-02-27 23:27:42 +01:00
Damien Zammit beaa6a7ae4 pt_import: Bump thread pool constant from 64 to 2048 to prevent import crash 2020-02-09 17:55:48 +11:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
Damien Zammit 675759c167 Update references to ptfformat -> ptformat && fix api calls 2019-06-22 17:26:05 +10:00
Damien Zammit 031b910cab PT import: editor_pt_import complete rewrite 2018-10-12 19:09:40 +11:00
Damien Zammit e0947579b9 pt import: Add commented out code for inserting silent missing sources
- Disabled due to ptformat not knowing the length of sources
- Added MIDI region/track summary information to dialog
2018-04-08 15:31:52 +10:00
Damien Zammit 5e2d5db6c7 Fix midi track mapping on pt import 2018-03-18 11:41:54 +11:00
Robin Gareus c2ed125b8d Remove another C++11 construct (local struct) from UI code 2018-03-17 20:00:08 +01:00
Robin Gareus 37e5b705e7 Fix wrong "_nth_" replacement in ba202cc09 2018-03-17 18:17:25 +01:00
Robin Gareus ba202cc095 Don't alter, use and rely on selection for PT import 2018-03-17 17:32:29 +01:00
Robin Gareus a36901a0d9 NO-OP: C++ify code
* remove typdef for struct
* Remove {} struct initializer, use a dedicated c'tor
* scope variables
2018-03-17 17:21:21 +01:00
Robin Gareus 9777baae00 NO-OP: whitespace
* distinguish comments and commented-out-code
* add space after function, before bracket
2018-03-17 17:15:44 +01:00
Damien Zammit 8b925fc395 PT import: Use multitrack MIDI import support based on ptformat update 2018-03-17 22:41:44 +11:00
Damien Zammit 0073206508 Revert "editor_pt_import: Process wav indexes once only"
This reverts commit 7422ffe692.
2017-11-18 15:28:39 +11:00
Damien Zammit 7422ffe692 editor_pt_import: Process wav indexes once only 2017-10-15 17:18:33 +11:00
Paul Davis 7db12f6b12 convert codebase to use Temporal for various time types 2017-09-24 12:03:54 -04:00
Paul Davis 30b087ab3d globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode
and video in order to keep the legible
2017-09-18 12:39:17 -04:00
Robin Gareus f9e5e4360e Move more Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02:00
Damien Zammit 4f4400b764 PT import: Add MIDI import functionality
This change adds support for importing all MIDI regions
from a PT session onto a single track.

Unfortunately, currently we don't know how to set the start
offset of MIDI regions reliably, therefore all midi regions
get dumped at the beginning of the Ardour session.

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2017-02-17 15:36:02 +01:00
Paul Davis cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Paul Davis e0ff70cf86 first vaguely working version using PresentationInfo
remote control ID and "order keys" have been removed.
2016-05-31 15:30:42 -04:00
Robin Gareus f03252cf88 possible fix or workaround[?] for pt track-name encoding 2016-05-23 00:05:02 +02:00
Damien Zammit 277893b130 ptformat: Make PT import more resilient to bad user choices and display messages
Previously, libptformat would attempt to parse all kinds of files,
now the library stops parsing when the version number and session rate
is outside valid ranges, returning an error code to the caller.

If there is a valid PT file detected, but some audio files are missing,
Ardour now pops up an error message to inform the user that some files
may be missing from the import.  A success message is displayed otherwise.

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-04-16 12:21:12 +02:00
Damien Zammit 84938f31cf Fix more warnings
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2015-08-09 01:42:22 +10:00
Damien Zammit 72041726fb Added pt5 pt7 ptx initial format support
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2015-08-09 00:48:16 +10:00
Damien Zammit 1d6e8f6681 Fixed pt import start offsets and samplerate mismatch offsets
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2015-08-06 17:35:17 +10:00
Damien Zammit d686cb213f Added PT .ptf session audio import functionality
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2015-08-06 00:28:35 +02:00