Update of /cvsroot/pure-data/externals/plugin~
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12932
Modified Files:
ChangeLog jload.c jsearch.c jutils.h plugin~.c plugin~.h
Added Files:
SConstruct plugin~-help.pd
Removed Files:
AUTHORS BUGS COPYING INSTALL Makefile.am Makefile.in NEWS
README TODO aclocal.m4 config.guess config.h config.sub
configure configure.in install-sh libtoolkludge missing
mkinstalldirs plugin~.pd plugin~.txt plugin~_ladspa.c
plugin~_ladspa.h plugin~_vst.c plugin~_vst.h version.h
version.h.in vstutils.c vstutils.h
Log Message:
yeah
--- mkinstalldirs DELETED ---
Index: plugin~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/plugin~/plugin~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** plugin~.c 23 Jan 2003 12:32:04 -0000 1.2
--- plugin~.c 29 Apr 2005 00:43:36 -0000 1.3
***************
*** 1,4 ****
--- 1,5 ----
/* plugin~, a Pd tilde object for hosting LADSPA/VST plug-ins
Copyright (C) 2000 Jarno Seppänen
+ remIXed 2005 Carmen Rocco
$Id$
***************
*** 19,24 ****
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
[...1307 lines suppressed...]
! free (x->plugin.ladspa.control_output_values);
! x->plugin.ladspa.control_output_values = NULL;
! }
! if (x->plugin.ladspa.prev_control_output_values != NULL)
! {
! free (x->plugin.ladspa.prev_control_output_values);
! x->plugin.ladspa.prev_control_output_values = NULL;
! }
! if (x->plugin.ladspa.control_input_ports != NULL)
! {
! free (x->plugin.ladspa.control_input_ports);
! x->plugin.ladspa.control_input_ports = NULL;
! }
! if (x->plugin.ladspa.control_output_ports != NULL)
! {
! free (x->plugin.ladspa.control_output_ports);
! x->plugin.ladspa.control_output_ports = NULL;
! }
}
--- config.guess DELETED ---
Index: jload.c
===================================================================
RCS file: /cvsroot/pure-data/externals/plugin~/jload.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** jload.c 19 Nov 2002 09:51:40 -0000 1.1
--- jload.c 29 Apr 2005 00:43:36 -0000 1.2
***************
*** 15,19 ****
/*****************************************************************************/
! #include "ladspa/ladspa.h"
#include "jutils.h"
--- 15,19 ----
/*****************************************************************************/
! #include "ladspa.h"
#include "jutils.h"
--- configure DELETED ---
--- missing DELETED ---
--- Makefile.in DELETED ---
Index: plugin~.h
===================================================================
RCS file: /cvsroot/pure-data/externals/plugin~/plugin~.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** plugin~.h 23 Jan 2003 12:32:04 -0000 1.2
--- plugin~.h 29 Apr 2005 00:43:36 -0000 1.3
***************
*** 1,51 ****
! /* plugin~, a Pd tilde object for hosting LADSPA/VST plug-ins
! Copyright (C) 2000 Jarno Seppänen
! $Id$
!
! This file is part of plugin~.
!
! 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.
!
! 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, USA. */
!
! #ifndef __PLUGIN_TILDE_H__
! #define __PLUGIN_TILDE_H__
!
! #ifdef __cplusplus
! extern "C" {
! #endif /* __cplusplus */
!
! #include "config.h"
!
! /* Pd header */
! #ifndef MAXPDSTRING /* lame */
#include "m_pd.h"
- #endif /* MAXPDSTRING */
- #if 0
- #if PLUGIN_TILDE_USE_LADSPA
- #include "plugin~_ladspa.h"
- #endif
- #if PLUGIN_TILDE_USE_VST
- #include "plugin~_vst.h"
- #endif
- #endif /* 0 */
- /*
- * Now I've moved the following two plug-in-architecture-specific structures
- * here because having them in plugin~_ladspa.h and plugin~_vst.h proper will
- * result in a cyclical header dependency
- */
- #if PLUGIN_TILDE_USE_LADSPA
- #include "ladspa/ladspa.h"
typedef struct
{
--- 1,5 ----
! #include "ladspa.h"
#include "m_pd.h"
typedef struct
{
***************
*** 71,91 ****
} Plugin_Tilde_Ladspa;
- #endif /* PLUGIN_TILDE_USE_LADSPA */
-
- #if PLUGIN_TILDE_USE_VST
- #include "vst/AEffect.h"
- typedef struct
- {
- AEffect* instance;
-
- /* audio wire buffer information */
- float** audio_inputs;
- float** audio_outputs;
- unsigned long num_samples;
-
- int editor_open;
-
- } Plugin_Tilde_Vst;
- #endif /* PLUGIN_TILDE_USE_VST */
typedef struct
--- 25,28 ----
***************
*** 93,97 ****
/* Pd's way of object-oriented programming */
t_object x_obj;
- t_clock* x_clock;
/* Access to LADSPA/VST plugins */
--- 30,33 ----
***************
*** 99,108 ****
const char* plugin_library_filename; /* only for diagnostics */
union {
! #if PLUGIN_TILDE_USE_LADSPA
Plugin_Tilde_Ladspa ladspa;
! #endif
! #if PLUGIN_TILDE_USE_VST
! Plugin_Tilde_Vst vst;
! #endif
} plugin;
--- 35,41 ----
const char* plugin_library_filename; /* only for diagnostics */
union {
!
Plugin_Tilde_Ladspa ladspa;
!
} plugin;
***************
*** 128,132 ****
static void* plugin_tilde_new (t_symbol* s_name, t_symbol* s_lib_name);
static void plugin_tilde_free (Pd_Plugin_Tilde* x);
- static void plugin_tilde_tick (Pd_Plugin_Tilde* x);
/* DSP callbacks */
--- 61,64 ----
***************
*** 146,151 ****
/* First inlet message callback for "control" messages */
! static void plugin_tilde_print (Pd_Plugin_Tilde* x);
!
/* First inlet message callback for "reset" messages */
static void plugin_tilde_reset (Pd_Plugin_Tilde* x);
--- 78,85 ----
/* First inlet message callback for "control" messages */
! static void plugin_tilde_list (Pd_Plugin_Tilde* x);
! static void plugin_tilde_info (Pd_Plugin_Tilde* x);
! static void plugin_tilde_plug (Pd_Plugin_Tilde* x);
! static void plugin_tilde_bypass (Pd_Plugin_Tilde* x);
/* First inlet message callback for "reset" messages */
static void plugin_tilde_reset (Pd_Plugin_Tilde* x);
***************
*** 174,185 ****
unsigned index_,
float value);
- /*static float plugin_tilde_get_control_input (Pd_Plugin_Tilde* x,
- unsigned int index);*/
- static void plugin_tilde_update_gui (Pd_Plugin_Tilde* x);
! #ifdef __cplusplus
! }
! #endif /* __cplusplus */
! #endif /* __PLUGIN_TILDE_H__ */
! /* EOF */
--- 108,152 ----
unsigned index_,
float value);
! /* subroutines to wrap the LADSPA interface */
! const char* plugin_tilde_ladspa_search_plugin (Pd_Plugin_Tilde* x,
! const char* name);
! int plugin_tilde_ladspa_open_plugin (Pd_Plugin_Tilde* x,
! const char* name,
! const char* lib_name,
! unsigned long sample_rate);
! void plugin_tilde_ladspa_close_plugin (Pd_Plugin_Tilde* x);
! void plugin_tilde_ladspa_apply_plugin (Pd_Plugin_Tilde* x);
! void plugin_tilde_ladspa_reset (Pd_Plugin_Tilde* x);
!
! void plugin_tilde_ladspa_connect_audio (Pd_Plugin_Tilde* x,
! float** audio_inputs,
! float** audio_outputs,
! unsigned long num_samples);
! void plugin_tilde_ladspa_set_control_input_by_name (Pd_Plugin_Tilde* x,
! const char* name,
! float value);
! void plugin_tilde_ladspa_set_control_input_by_index (Pd_Plugin_Tilde* x,
! unsigned index_,
! float value);
! /*float plugin_tilde_ladspa_get_control_input (Pd_Plugin_Tilde* x,
! const char* name);*/
! /* Control output is handled with plugin_tilde_emit_control_output() callback */
!
! /* Local subroutines */
! static void plugin_tilde_describe (const char* full_filename,
! void* plugin_handle,
! LADSPA_Descriptor_Function descriptor_function,
! Pd_Plugin_Tilde* x);
! static void plugin_tilde_ladspa_search_plugin_callback (const char* full_filename,
! void* plugin_handle,
! LADSPA_Descriptor_Function descriptor_function,
! void* user_data);
! static void plugin_tilde_ladspa_count_ports (Pd_Plugin_Tilde* x);
! static void plugin_tilde_ladspa_connect_control_ports (Pd_Plugin_Tilde* x);
!
! static int plugin_tilde_ladspa_alloc_outofplace_memory (Pd_Plugin_Tilde* x, unsigned long buflen);
! static void plugin_tilde_ladspa_free_outofplace_memory (Pd_Plugin_Tilde* x);
! static int plugin_tilde_ladspa_alloc_control_memory (Pd_Plugin_Tilde* x);
! static void plugin_tilde_ladspa_free_control_memory (Pd_Plugin_Tilde* x);
--- plugin~_vst.c DELETED ---
--- plugin~.txt DELETED ---
--- NEW FILE: SConstruct ---
import glob
import os
import re
prefix = "/usr/local/lib/pd"
env = Environment(CPPPATH = Split(prefix + '/src /usr/include /usr/local/include . ../../pd/src ../../src src'), CPPDEFINES=['PD','UNIX'], SHLIBPREFIX = '', SHLIBSUFFIX = '.pd_linux', CCFLAGS = '-pipe -O2 -fPIC')
external = env.SharedLibrary('plugin~',glob.glob('*.c'))
env.Alias('install', env.Install(os.path.join(prefix, 'extra'), external))
env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'),'plugin~-help.pd'))
Default(external)
--- INSTALL DELETED ---
--- vstutils.c DELETED ---
--- aclocal.m4 DELETED ---
--- NEWS DELETED ---
--- NEW FILE: plugin~-help.pd ---
#N canvas 146 82 1105 734 12;
#X floatatom 415 488 0 0 555 0 - - -;
#X msg 414 467 440;
#X obj 359 483 loadbang;
#X msg 416 508 control freq \$1;
#X msg 318 507 control amp \$1;
#X msg 316 464 0.7;
#X floatatom 316 487 0 0 1 0 - - -;
#X msg 67 351 control gain \$1;
#X floatatom 67 326 0 0 1 0 - - -;
#X msg 66 300 0.7;
#X obj 378 534 plugin~ sine_fcac;
#X obj 217 365 adc~;
#X obj 200 436 dac~;
#X obj 66 269 loadbang;
#N canvas 0 0 450 300 graph1 0;
#X array array1 100 float 0;
#X coords 0 1 100 -1 200 140 1;
#X restore 84 465 graph;
#X obj 377 558 tabwrite~ array1;
#X obj 314 578 metro 500;
#X msg 312 557 1;
#X obj 313 534 loadbang;
#X msg 14 310 reset;
#X msg 20 258 info;
#X msg 21 234 listplugins;
#X obj 544 105 route id name label maker;
#X obj 543 103 widget q q1 -bg black -fg "#ff0045" -height 42 -width
5;
#X obj 574 103 widget q q1 -bg black -fg white -height 42 -width 23
;
#X obj 715 702 print;
#X obj 599 622 route scroll;
#X msg 600 645 scroll \$1;
#X obj 578 106 prepend add;
#X obj 713 103 widget q q1 -bg black -fg orange -height 42 -width 16
;
#X obj 723 642 route scroll;
#X msg 722 667 scroll \$1;
#X obj 547 644 route scroll;
#X msg 547 667 scroll \$1;
#X obj 842 629 route scroll;
#X msg 840 652 scroll \$1;
#X obj 810 103 widget q q1 -bg black -fg cyan -height 42 -width 49
;
#X obj 546 106 prepend add;
#X obj 716 107 prepend add;
#X obj 814 109 prepend add;
#X obj 96 389 plugin~ tap_equalizer;
#X obj 165 87 widget q q1 -width 24 -bg gray -fg purple -height 18
;
#X obj 234 47 unpack s f f;
#X obj 46 7 route port;
#X obj 69 32 route in;
#X obj 129 24 route control;
#X obj 197 50 a2l;
#X msg 364 66 add \$1;
#X msg 316 66 add \$1;
#X obj 311 87 widget q q1 -width 8 -bg gray -fg purple -height 18;
#X obj 361 87 widget q q1 -width 8 -bg gray -fg purple -height 18;
#X msg 120 224 clear;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 2 0 5 0;
#X connect 3 0 10 0;
#X connect 4 0 10 0;
#X connect 5 0 6 0;
#X connect 6 0 4 0;
#X connect 7 0 40 0;
#X connect 8 0 7 0;
#X connect 9 0 8 0;
#X connect 10 1 15 0;
#X connect 11 0 40 1;
#X connect 13 0 9 0;
#X connect 16 0 15 0;
#X connect 17 0 16 0;
#X connect 18 0 17 0;
#X connect 19 0 40 0;
#X connect 20 0 51 0;
#X connect 20 0 40 0;
#X connect 21 0 40 0;
#X connect 22 0 37 0;
#X connect 22 1 28 0;
#X connect 22 2 38 0;
#X connect 22 3 39 0;
#X connect 23 0 32 0;
#X connect 24 0 26 0;
#X connect 26 0 27 0;
#X connect 27 0 23 0;
#X connect 27 0 29 0;
#X connect 27 0 36 0;
#X connect 28 0 24 0;
#X connect 29 0 30 0;
#X connect 29 0 25 0;
#X connect 30 0 31 0;
#X connect 31 0 23 0;
#X connect 31 0 24 0;
#X connect 31 0 36 0;
#X connect 32 0 33 0;
#X connect 33 0 24 0;
#X connect 33 0 29 0;
#X connect 33 0 36 0;
#X connect 34 0 35 0;
#X connect 35 0 23 0;
#X connect 35 0 24 0;
#X connect 35 0 29 0;
#X connect 36 0 34 0;
#X connect 37 0 23 0;
#X connect 38 0 29 0;
#X connect 39 0 36 0;
#X connect 40 0 22 0;
#X connect 40 0 43 0;
#X connect 40 1 12 0;
#X connect 42 0 41 0;
#X connect 42 1 48 0;
#X connect 42 2 47 0;
#X connect 43 0 44 0;
#X connect 44 0 45 0;
#X connect 45 0 46 0;
#X connect 46 0 42 0;
#X connect 47 0 50 0;
#X connect 48 0 49 0;
#X connect 51 0 49 0;
#X connect 51 0 41 0;
#X connect 51 0 50 0;
--- version.h.in DELETED ---
--- libtoolkludge DELETED ---
--- COPYING DELETED ---
Index: ChangeLog
===================================================================
RCS file: /cvsroot/pure-data/externals/plugin~/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ChangeLog 19 Nov 2002 09:51:40 -0000 1.1
--- ChangeLog 29 Apr 2005 00:43:36 -0000 1.2
***************
*** 37,38 ****
--- 37,61 ----
* Released initial release 0.1
+ plugin~ NEWS --- history of changes.
+
+ Overview of changes in version 0.2, released April 4 2001
+ =========================================================
+ * control/parameter value setting by parameter number (starting with a
+ '#' character) in addition to using parameter name
+ * LADSPA: Implemented control value bounding
+ * Support for VST 1.0 (processReplacing()) plug-ins under Windows
+ * LADSPA bug fixes under Linux (huge thanks to Linium <intent(a)club-internet.fr>
+ for quality assurance, merci! :)
+
+ Overview of changes in version 0.1, released June 15 2000
+ =========================================================
+ * Initial release
+ * Control ports mapped to Pd asynchronous messages. Input controls
+ are changed on incoming messages and outgoing messages are sent on
+ changes in output control values.
+ * Audio ports mapped to Pd signal in/outlets
+ * Searching for plug-ins in all LADSPA libraries
+ * Resetting the plug-in's internal state on incoming "reset" messages
+ * Printing plug-in information on incoming "print" messages
+ * Supports out-of-place processing for plug-ins that need this
+ * Distributed under the GNU General Public License
--- TODO DELETED ---
--- configure.in DELETED ---
--- config.sub DELETED ---
--- BUGS DELETED ---
Index: jutils.h
===================================================================
RCS file: /cvsroot/pure-data/externals/plugin~/jutils.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** jutils.h 19 Nov 2002 09:51:40 -0000 1.1
--- jutils.h 29 Apr 2005 00:43:36 -0000 1.2
***************
*** 11,15 ****
/*****************************************************************************/
! #include "ladspa/ladspa.h"
/*****************************************************************************/
--- 11,15 ----
/*****************************************************************************/
! #include "ladspa.h"
/*****************************************************************************/
--- vstutils.h DELETED ---
--- Makefile.am DELETED ---
--- plugin~_ladspa.h DELETED ---
--- version.h DELETED ---
--- README DELETED ---
--- install-sh DELETED ---
Index: jsearch.c
===================================================================
RCS file: /cvsroot/pure-data/externals/plugin~/jsearch.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** jsearch.c 19 Nov 2002 09:51:40 -0000 1.1
--- jsearch.c 29 Apr 2005 00:43:36 -0000 1.2
***************
*** 18,22 ****
/*****************************************************************************/
! #include "ladspa/ladspa.h"
#include "jutils.h"
--- 18,22 ----
/*****************************************************************************/
! #include "ladspa.h"
#include "jutils.h"
***************
*** 104,111 ****
pcLADSPAPath = getenv("LADSPA_PATH");
if (!pcLADSPAPath) {
! fprintf(stderr,
! "Warning: You do not have a LADSPA_PATH "
! "environment variable set.\n");
! return;
}
--- 104,109 ----
pcLADSPAPath = getenv("LADSPA_PATH");
if (!pcLADSPAPath) {
! fprintf(stderr, "Warning: no LADSPA_PATH, assuming /usr/lib/ladspa:/usr/local/lib/ladspa\n");
! pcLADSPAPath = "/usr/lib/ladspa:/usr/local/lib/ladspa";
}
***************
*** 129,132 ****
--- 127,131 ----
}
+
/*****************************************************************************/
--- AUTHORS DELETED ---
--- plugin~_vst.h DELETED ---
--- config.h DELETED ---
--- plugin~_ladspa.c DELETED ---
--- plugin~.pd DELETED ---