From 3312b1b854e0dd50ab11b7d648e37fddebfb0479 Mon Sep 17 00:00:00 2001 From: Marlon Schumacher <schumacher@hfm-karlsruhe.de> Date: Sat, 01 Mar 2025 02:47:26 +0100 Subject: [PATCH] fix: removed render soundfile from example --- sources/classes/sox-hoaencode.lisp | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sources/classes/sox-hoaencode.lisp b/sources/classes/sox-hoaencode.lisp index cdefebe..16d7c1a 100644 --- a/sources/classes/sox-hoaencode.lisp +++ b/sources/classes/sox-hoaencode.lisp @@ -1,4 +1,6 @@ -;Authors: A. Nguyen, 2025. +;Authors: +; A. Nguyen, 2025 +; M. Schumacher, 2025 ; Design limitations: ; 1) Sounds must have identical sample rate; otherwise, SoX fails silently, literally. @@ -172,11 +174,11 @@ (defclass! sox-hoaencode (sox-input) ( - (positions :accessor positions :initarg :positions :initform nil :documentation *sox-hoaencode-positions-doc*) - (order :accessor order :initarg :order :initform nil :documentation *sox-hoaencode-order-doc*) + (positions :accessor positions :initarg :positions :initform '(0 0) :documentation *sox-hoaencode-positions-doc*) + (order :accessor order :initarg :order :initform 3 :documentation *sox-hoaencode-order-doc*) ) (:icon 100) - (:documentation "Sox-hoaencode transforms <sound> into a <order>-th ambisonic (HOA) signal at <positions>. + (:documentation "Sox-hoaencode encodes <sound> into a <order>-th ambisonic (HOA) signal at <positions>. The signal follows the ambiX convention, i.e. it uses SN3D normalization and ACN channel ordering. The resulting file has (<order>+1)^2 channels (order 0: 1 channel, order 1: 4 channels, order 2: 9 channels, order 3: 16 channels, ...).") ) @@ -184,7 +186,7 @@ (defmethod initialize-instance :after ((self sox-hoaencode) &rest l) (declare (ignore l)) (when (sound self) - (sox-init-sound self 'list) + (sox-init-sound self 'atom) ) ) -- Gitblit v1.9.1