Work-in-progress repo for ambisonics extensions for OM-SoX
Alexander Nguyen
22.01.25 92c40d00f8ffe4fc6491c0abb70210b31202bd70
commit | author | age
92c40d 1 ;*********************************************************************
AN 2 ; OM-SoX, (c) 2011-2013 Marlon Schumacher (CIRMMT/McGill University) *
3 ;             http://sourceforge.net/projects/omsox/                 *
4 ;                                                                    *
5 ;  Multichannel Audio Manipulation and Functional Batch Processing.  *
6 ;        DSP based on SoX - (c) C.Bagwell and Contributors           *
7 ;                  http://sox.sourceforge.net/                       *
8 ;*********************************************************************
9 ;
10 ;This program is free software; you can redistribute it and/or
11 ;modify it under the terms of the GNU General Public License
12 ;as published by the Free Software Foundation; either version 2
13 ;of the License, or (at your option) any later version.
14 ;
15 ;See file LICENSE for further informations on licensing terms.
16 ;
17 ;This program is distributed in the hope that it will be useful,
18 ;but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ;GNU General Public License for more details.
21 ;
22 ;You should have received a copy of the GNU General Public License
23 ;along with this program; if not, write to the Free Software
24 ;Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,10 USA.
25 ;
26 ;Authors: M. Schumacher
27
28 (in-package :om)
29
30 ; %%%%%%%%%% DOC for common class slots %%%%%%%
31 (defparameter *sox-dur-doc* "Duration of output audio (sec). [float]")
32 (defparameter *sox-input-doc* "Audio input for sox input modules. [sound object, pathname, string/pipe]")
33 (defparameter *sox-gain-doc* "Gain value for audio input before processing (dBFS). [float, list]")
34 (defparameter *sox-panning-doc* "Panning value (decimal number) for panning audio between adjacent channels. [float, list]")
35 (defparameter *sox-channel-matrix-doc* "Specify input channels as a list of lists (matrix). Each sublist contains the contributing input channels for an output channel. [list]")
36 ;*sox-in-channels-doc*
37 (defparameter *sox-gain-matrix-doc* "Specify gains as a list of lists (matrix). Each sublist contains the contributing gains of input channels forming an output channel. [list]")
38 (defparameter *sox-channels-doc* "Specify input channels as a list of sublists (matrix). Each sublist contains the contributing input channels forming an output channel. [list]")
39 ; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40
41 ; ==== SOX-INPUT ========================
42 ; superclass for sox-input-combiners
43 ; sound might be called 'audio' instead
44
45 (defclass! sox-input ()
46            (
47             (sound :type sound :accessor sound :initarg :sound :initform nil :documentation *sox-input-doc*)
48             )
49            (:documentation "Abstract superclass for OM-SoX input classes")
50            )
51
52 (defmethod get-fonde-pict ((self sox-input)) *sox-bg-pict*)
53 (setq *sox-bg-pict* (om-load-and-store-picture "dibox" 'om-sox))
54
55 #|
56 ;;; maquette interface
57 (defmethod allowed-in-maq-p ((self sound))  (good-val-p? self))
58 (defmethod get-obj-dur ((self sound)) (extent self))
59 (defmethod allow-strech-p ((self sound) (factor number)) nil)
60 |#