everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] dtas 0.20.0 - duct tape audio suite for *nix
@ 2022-02-03  5:15  5% Eric Wong
  0 siblings, 0 replies; 7+ results
From: Eric Wong @ 2022-02-03  5:15 UTC (permalink / raw)
  To: dtas-all, ruby-talk

Free Software command-line tools for audio playback, mastering, and
whatever else related to audio.  dtas follows the worse-is-better
philosophy and acts as duct tape to combine existing command-line tools
for flexibility and ease-of-development.  dtas is currently implemented
in Ruby, Perl5, and some embedded shell, but may use other languages in
the future.

Changes:

    dtas 0.20.0 - ruby 3.1+ compatibility, splitfx improvements

    This release catches up with Psych (YAML) changes in Ruby 3.1+
    Ruby 2.3+ is now the minimum version, though keep in mind the
    ruby-core team already dropped support for it long ago.

    Most of the features are focused on audio engineering
    capabilities of dtas-splitfx.  dtas-splitfx gains the --filter
    switch, along with per-track environment variables and comments.
    These new features have made my workflow significantly better.

    dtas-archive supports explicit comments, and omits the default
    SoX comment.  To better cope with temporary and modified files
    during editing, dtas-player metadata now checks ctime before
    reusing the cache, handy for frequently-modified files.
    "dtas-tl prune" is now supported to cull temporary files from
    the player tracklist.

    There's a few dtas-console improvements, too.

    28 changes since v0.19.0 (2021-09-05):

          archive: support comments, default to none
          splitfx: use Etc.nprocessors for jobs if unspecified
          dtas-console: set X11 terminal title iff DISPLAY is set
          dtas-console: add 'i' toggle to show comments (metadata)
          splitfx: fix track_zpad with integer arg
          doc: drop ordered map from examples
          player: reduce syscalls when splicing to single target
          dtas-console: support Wayland terminal titles, too
          console: workaround safe warnings in outdated `curses' gem
          require Ruby 2.3+
          get rid of DTAS.dedupe_str wrapper
          move dtas-graph into script/, support Perl for dtas.sh
          use YAML.unsafe_load in Psych 4.x (Ruby 3.1+)
          deduplicate and freeze pathnames + metadata
          player: remove omap conversion
          dtas: drop unnecessary "require 'yaml'" statements
          dtas-tl prune: cull missing files from tracklist
          dtas-tl: drop encoding hacks, use binary stdout+stderr
          use IO#wait_readable consistently
          get rid of DTAS::Nonblock wrapper for Ruby <= 2.0
          unix_accepted: drop Ruby < 2.3 support code
          do not check IO#closed? before calling IO#close
          splitfx: support per-track environment variables
          splitfx: add --filter option to limit match to comments
          player: expire sox metadata cache on file st_ctime changes
          readahead: do not call -@ on non-String
          splitfx: disallow combining --trim and --filter
          splitfx: document changes ahead of 0.20.0 release

* homepage: https://80x24.org/dtas/
* https://80x24.org/dtas/INSTALL
* https://80x24.org/dtas/dtas-player.txt
* https://80x24.org/dtas/NEWS.atom
* git clone https://80x24.org/dtas.git
* dtas-all@nongnu.org (plain-text only, no HTML mail, please)
* mail archives: https://80x24.org/dtas-all/
  nntps://news.public-inbox.org/inbox.comp.audio.dtas
  imaps://anon:mous@public-inbox.org/inbox.comp.audio.dtas.0
  nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.dtas
  imap://anon:mous@7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.dtas.0
  https://80x24.org/dtas-all/new.atom

note: .onion URLs require Tor: <https://www.torproject.org/>


^ permalink raw reply	[relevance 5%]

* Re: [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set
  2022-01-11 18:14  7%       ` James Rowe
@ 2022-01-11 18:26  7%         ` Eric Wong
  0 siblings, 0 replies; 7+ results
From: Eric Wong @ 2022-01-11 18:26 UTC (permalink / raw)
  To: James Rowe; +Cc: dtas-all

James Rowe <jnrowe@gmail.com> wrote:
> * Eric Wong (e@80x24.org) wrote:
> > James Rowe <jnrowe@gmail.com> wrote:
> > > * Eric Wong (e@80x24.org) wrote:
> > > > +set_title = ENV['DISPLAY'] ? $stdout : nil
> > > 
> > >   Perhaps consider testing for $WAYLAND_DISPLAY too?
> > 
> > Does the following work for you?
> 
>   Yes, thanks.

Thanks for testing, pushed as commit 7cf055bb98a8be913ff3a2b03ef2ed2528e61db8

> > [btw, please reply-to-all, since subscription is optional and it avoids
> >  nongnu.org being a SPOF, thanks]
> 
>   Bah, it always takes me a couple of messages to get back in the groove here.
> Pinky swear I’ll set up a folder-hook before I send another mail.

No worries.  Also, Mail-Followup-To: isn't necessary for these types of lists.
(same convention for git@vger.kernel.org and various Linux kernel-related
 lists)


^ permalink raw reply	[relevance 7%]

* Re: [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set
  2022-01-11 17:29  7%     ` Eric Wong
@ 2022-01-11 18:14  7%       ` James Rowe
  2022-01-11 18:26  7%         ` Eric Wong
  0 siblings, 1 reply; 7+ results
From: James Rowe @ 2022-01-11 18:14 UTC (permalink / raw)
  To: Eric Wong; +Cc: dtas-all

* Eric Wong (e@80x24.org) wrote:
> James Rowe <jnrowe@gmail.com> wrote:
> > * Eric Wong (e@80x24.org) wrote:
> > > +set_title = ENV['DISPLAY'] ? $stdout : nil
> > 
> >   Perhaps consider testing for $WAYLAND_DISPLAY too?
> 
> Does the following work for you?

  Yes, thanks.

  FTR I’m running foot¹ on river², but other more common compositors like sway³
also support builds without Xwayland too.

> [btw, please reply-to-all, since subscription is optional and it avoids
>  nongnu.org being a SPOF, thanks]

  Bah, it always takes me a couple of messages to get back in the groove here.
Pinky swear I’ll set up a folder-hook before I send another mail.

Thanks,

James

¹ https://codeberg.org/dnkl/foot
² https://github.com/riverwm/river/
3 http://swaywm.org


^ permalink raw reply	[relevance 7%]

* Re: [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set
  2022-01-08 16:59  7%   ` James Rowe
@ 2022-01-11 17:29  7%     ` Eric Wong
  2022-01-11 18:14  7%       ` James Rowe
  0 siblings, 1 reply; 7+ results
From: Eric Wong @ 2022-01-11 17:29 UTC (permalink / raw)
  To: James Rowe; +Cc: dtas-all

James Rowe <jnrowe@gmail.com> wrote:
> * Eric Wong (e@80x24.org) wrote:
> > +set_title = ENV['DISPLAY'] ? $stdout : nil
> 
>   Perhaps consider testing for $WAYLAND_DISPLAY too?
> 
>   Use case: If, like me, you're running a wayland compositor without Xwayland
> support then $DISPLAY won't be set.

Does the following work for you?

[btw, please reply-to-all, since subscription is optional and it avoids
 nongnu.org being a SPOF, thanks]
-------8<------
diff --git a/bin/dtas-console b/bin/dtas-console
index 0e762bd..7a7ed6c 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -26,7 +26,7 @@
 c = DTAS::UNIXClient.new
 cur = YAML.load(c.req('current'))
 readable = [ se, w, $stdin ]
-set_title = ENV['DISPLAY'] ? $stdout : nil
+set_title = (ENV['DISPLAY'] || ENV['WAYLAND_DISPLAY']) ? $stdout : nil
 
 # current rg mode
 rg_mode = DTAS::RGState::RG_MODE.keys.unshift("off")


^ permalink raw reply related	[relevance 7%]

* Re: [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set
  2022-01-07  5:35  6% ` [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set Eric Wong
@ 2022-01-08 16:59  7%   ` James Rowe
  2022-01-11 17:29  7%     ` Eric Wong
  0 siblings, 1 reply; 7+ results
From: James Rowe @ 2022-01-08 16:59 UTC (permalink / raw)
  To: dtas-all

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

* Eric Wong (e@80x24.org) wrote:
> +set_title = ENV['DISPLAY'] ? $stdout : nil

  Perhaps consider testing for $WAYLAND_DISPLAY too?

  Use case: If, like me, you're running a wayland compositor without Xwayland
support then $DISPLAY won't be set.

Thanks,

James

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[relevance 7%]

* [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set
  2022-01-07  5:35  6% [PATCH 0/4] a pile of misc improvements Eric Wong
@ 2022-01-07  5:35  6% ` Eric Wong
  2022-01-08 16:59  7%   ` James Rowe
  0 siblings, 1 reply; 7+ results
From: Eric Wong @ 2022-01-07  5:35 UTC (permalink / raw)
  To: dtas-all

This allows users running terminals in graphical environments to
navigate to the terminal running dtas-console more easily.
---
 bin/dtas-console | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/dtas-console b/bin/dtas-console
index 0c56450..6172863 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -1,5 +1,5 @@
 #!/usr/bin/env ruby
-# Copyright (C) 2013-2021 all contributors <dtas-all@nongnu.org>
+# Copyright (C) all contributors <dtas-all@nongnu.org>
 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
 # frozen_string_literal: true
 #
@@ -26,6 +26,7 @@
 c = DTAS::UNIXClient.new
 cur = YAML.load(c.req('current'))
 readable = [ se, w, $stdin ]
+set_title = ENV['DISPLAY'] ? $stdout : nil
 
 # current rg mode
 rg_mode = DTAS::RGState::RG_MODE.keys.unshift("off")
@@ -167,6 +168,10 @@ def may_fail(c, req, events)
       # and risk mojibake...
       infile.encode(enc_locale,
                     undef: :replace, invalid: :replace, replace: '?')
+      if set_title
+        dir, base = File.split(infile)
+        set_title.syswrite("\033]0;#{base} dtas-console\07")
+      end
       Curses.setpos(lineno += 1, 0)
       Curses.clrtoeol
       Curses.addstr(infile)


^ permalink raw reply related	[relevance 6%]

* [PATCH 0/4] a pile of misc improvements
@ 2022-01-07  5:35  6% Eric Wong
  2022-01-07  5:35  6% ` [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set Eric Wong
  0 siblings, 1 reply; 7+ results
From: Eric Wong @ 2022-01-07  5:35 UTC (permalink / raw)
  To: dtas-all

I should send these out before I accidentally nuke my root FS
on accident, again :x

Eric Wong (4):
  archive: support comments, default to none
  splitfx: use Etc.nprocessors for jobs if unspecified
  dtas-console: set X11 terminal title iff DISPLAY is set
  dtas-console: add 'i' toggle to show comments (metadata)

 bin/dtas-archive |  8 ++++++--
 bin/dtas-console | 32 +++++++++++++++++++++++++++++++-
 bin/dtas-splitfx |  7 ++++++-
 3 files changed, 43 insertions(+), 4 deletions(-)


^ permalink raw reply	[relevance 6%]

Results 1-7 of 7 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-01-07  5:35  6% [PATCH 0/4] a pile of misc improvements Eric Wong
2022-01-07  5:35  6% ` [PATCH 3/4] dtas-console: set X11 terminal title iff DISPLAY is set Eric Wong
2022-01-08 16:59  7%   ` James Rowe
2022-01-11 17:29  7%     ` Eric Wong
2022-01-11 18:14  7%       ` James Rowe
2022-01-11 18:26  7%         ` Eric Wong
2022-02-03  5:15  5% [ANN] dtas 0.20.0 - duct tape audio suite for *nix Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/dtas.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).