Work-in-progress repo for ambisonics extensions for OM-SoX
Marlon Schumacher
5 days ago 942def65489b6b323c75dfa5ed977583a514432c
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]")
791513 34 (defparameter *sox-hoaencode-positions-doc* "Positions as 3dc object, or list of azimuth+elevation values, or list of x+y+z coordinates. [3dc, list]")
AN 35 (defparameter *sox-hoaencode-order-doc* "Ambisonics order. [int]")
92c40d 36 (defparameter *sox-panning-doc* "Panning value (decimal number) for panning audio between adjacent channels. [float, list]")
AN 37 (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]")
38 ;*sox-in-channels-doc*
39 (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]")
40 (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]")
41 ; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42
43 ; ==== SOX-INPUT ========================
44 ; superclass for sox-input-combiners
45 ; sound might be called 'audio' instead
46
47 (defclass! sox-input ()
48            (
49             (sound :type sound :accessor sound :initarg :sound :initform nil :documentation *sox-input-doc*)
50             )
51            (:documentation "Abstract superclass for OM-SoX input classes")
52            )
53
54 (defmethod get-fonde-pict ((self sox-input)) *sox-bg-pict*)
55 (setq *sox-bg-pict* (om-load-and-store-picture "dibox" 'om-sox))
56
57 #|
58 ;;; maquette interface
59 (defmethod allowed-in-maq-p ((self sound))  (good-val-p? self))
60 (defmethod get-obj-dur ((self sound)) (extent self))
61 (defmethod allow-strech-p ((self sound) (factor number)) nil)
62 |#