;********************************************************************* ; OM-SoX, (c) 2011-2014 Marlon Schumacher (CIRMMT/McGill University) * ; http://sourceforge.net/projects/omsox/ * ; * ; Multichannel Audio Manipulation and Functional Batch Processing. * ; DSP based on SoX - (c) C.Bagwell and Contributors * ; http://sox.sourceforge.net/ * ;********************************************************************* ; ;This program is free software; you can redistribute it and/or ;modify it under the terms of the GNU General Public License ;as published by the Free Software Foundation; either version 2 ;of the License, or (at your option) any later version. ; ;See file LICENSE for further informations on licensing terms. ; ;This program is distributed in the hope that it will be useful, ;but WITHOUT ANY WARRANTY; without even the implied warranty of ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;GNU General Public License for more details. ; ;You should have received a copy of the GNU General Public License ;along with this program; if not, write to the Free Software ;Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,10 USA. ; ;Authors: M. Schumacher (in-package :om) ;;; SoX-Multiply might be grouped together with SoX-Add, SoX-Subtract into a subset of mathematical input combiner functions (Add and Subtract is doable. Division with SoX is more tricky) ; ==== SOX-MULTIPLY ======================== (defclass! sox-multiply (sox-input) ( (gains :accessor gains :initarg :gains :initform nil :documentation *sox-gain-doc*) ) (:icon 09) (:documentation "Sox-Multiply will multiply audio from multiple inputs together. The number of channels in input audio may differ.") ) (defmethod initialize-instance :after ((self sox-multiply) &rest l) (declare (ignore l)) (when (sound self) (sox-init-gains self) (sox-init-sound self 'list) ) )