5
5
// license: "none"
6
6
// copyright: "(c) Julian Parker 2013"
7
7
//
8
- // Code generated with Faust 0.9.62 (http://faust.grame.fr)
8
+ // Code generated with JPverbRaw 0.9.62 (http://faust.grame.fr)
9
9
// -----------------------------------------------------
10
10
/* link with : "primes" */
11
11
#include < jprev.h>
@@ -19,9 +19,9 @@ template <int N> inline int faustpower(int x) { return faustpower<N
19
19
template <> inline int faustpower<0 >(int x) { return 1 ; }
20
20
template <> inline int faustpower<1 >(int x) { return x; }
21
21
#endif
22
- // If other than 'faust2sc --prefix Faust ' is used, sed this as well:
22
+ // If other than 'faust2sc --prefix JPverbRaw ' is used, sed this as well:
23
23
#if !defined(SC_FAUST_PREFIX)
24
- # define SC_FAUST_PREFIX " Faust "
24
+ # define SC_FAUST_PREFIX " JPverbRaw "
25
25
#endif
26
26
27
27
// -------------------------------------------------------------------
@@ -55,6 +55,10 @@ template <> inline int faustpower<1>(int x) { return x; }
55
55
56
56
using namespace std ;
57
57
58
+ #if !defined(NDEBUG)
59
+ #define NDEBUG 1
60
+ #endif
61
+
58
62
#if defined(__GNUC__) && __GNUC__ >= 4
59
63
# define FAUST_EXPORT __attribute__ ((visibility(" default" )))
60
64
#else
@@ -409,7 +413,7 @@ class mydsp : public dsp {
409
413
m->declare (" author" , " Julian Parker" );
410
414
m->declare (" license" , " none" );
411
415
m->declare (" copyright" , " (c) Julian Parker 2013" );
412
- m->declare (" oscillator.lib/name" , " Faust Oscillator Library" );
416
+ m->declare (" oscillator.lib/name" , " JPverbRaw Oscillator Library" );
413
417
m->declare (" oscillator.lib/author" , " Julius O. Smith (jos at ccrma.stanford.edu)" );
414
418
m->declare (" oscillator.lib/copyright" , " Julius O. Smith III" );
415
419
m->declare (" oscillator.lib/version" , " 1.11" );
@@ -424,7 +428,7 @@ class mydsp : public dsp {
424
428
m->declare (" math.lib/copyright" , " GRAME" );
425
429
m->declare (" math.lib/version" , " 1.0" );
426
430
m->declare (" math.lib/license" , " LGPL with exception" );
427
- m->declare (" filter.lib/name" , " Faust Filter Library" );
431
+ m->declare (" filter.lib/name" , " JPverbRaw Filter Library" );
428
432
m->declare (" filter.lib/author" , " Julius O. Smith (jos at ccrma.stanford.edu)" );
429
433
m->declare (" filter.lib/copyright" , " Julius O. Smith III" );
430
434
m->declare (" filter.lib/version" , " 1.29" );
@@ -1302,12 +1306,12 @@ class mydsp : public dsp {
1302
1306
1303
1307
1304
1308
// ----------------------------------------------------------------------------
1305
- // SuperCollider/Faust interface
1309
+ // SuperCollider/JPverbRaw interface
1306
1310
// ----------------------------------------------------------------------------
1307
1311
1308
- struct Faust : public Unit
1312
+ struct JPverbRaw : public Unit
1309
1313
{
1310
- // Faust dsp instance
1314
+ // JPverbRaw dsp instance
1311
1315
FAUSTCLASS mDSP ;
1312
1316
// Buffers for control to audio rate conversion
1313
1317
float ** mInBufCopy ;
@@ -1357,7 +1361,7 @@ void initState(const std::string& name, int sampleRate)
1357
1361
1358
1362
size_t unitSize ()
1359
1363
{
1360
- return sizeof (Faust ) + g_numControls * sizeof (Control);
1364
+ return sizeof (JPverbRaw ) + g_numControls * sizeof (Control);
1361
1365
}
1362
1366
1363
1367
std::string fileNameToUnitName (const std::string& fileName)
@@ -1400,11 +1404,11 @@ extern "C"
1400
1404
int api_version (void );
1401
1405
#endif
1402
1406
void load (InterfaceTable*);
1403
- void Faust_next (Faust *, int );
1404
- void Faust_next_copy (Faust *, int );
1405
- void Faust_next_clear (Faust *, int );
1406
- void Faust_Ctor (Faust *);
1407
- void Faust_Dtor (Faust *);
1407
+ void Faust_next (JPverbRaw *, int );
1408
+ void Faust_next_copy (JPverbRaw *, int );
1409
+ void Faust_next_clear (JPverbRaw *, int );
1410
+ void Faust_Ctor (JPverbRaw *);
1411
+ void Faust_Dtor (JPverbRaw *);
1408
1412
};
1409
1413
1410
1414
inline static void fillBuffer (float * dst, int n, float v)
@@ -1422,7 +1426,7 @@ inline static void copyBuffer(float* dst, int n, float* src)
1422
1426
Copy (n, dst, src);
1423
1427
}
1424
1428
1425
- inline static void Faust_updateControls (Faust * unit)
1429
+ inline static void Faust_updateControls (JPverbRaw * unit)
1426
1430
{
1427
1431
Control* controls = unit->mControls ;
1428
1432
int numControls = unit->mNumControls ;
@@ -1434,15 +1438,15 @@ inline static void Faust_updateControls(Faust* unit)
1434
1438
}
1435
1439
}
1436
1440
1437
- void Faust_next (Faust * unit, int inNumSamples)
1441
+ void Faust_next (JPverbRaw * unit, int inNumSamples)
1438
1442
{
1439
1443
// update controls
1440
1444
Faust_updateControls (unit);
1441
1445
// dsp computation
1442
1446
unit->mDSP .compute (inNumSamples, unit->mInBuf , unit->mOutBuf );
1443
1447
}
1444
1448
1445
- void Faust_next_copy (Faust * unit, int inNumSamples)
1449
+ void Faust_next_copy (JPverbRaw * unit, int inNumSamples)
1446
1450
{
1447
1451
// update controls
1448
1452
Faust_updateControls (unit);
@@ -1463,14 +1467,14 @@ void Faust_next_copy(Faust* unit, int inNumSamples)
1463
1467
unit->mDSP .compute (inNumSamples, unit->mInBufCopy , unit->mOutBuf );
1464
1468
}
1465
1469
1466
- void Faust_next_clear (Faust * unit, int inNumSamples)
1470
+ void Faust_next_clear (JPverbRaw * unit, int inNumSamples)
1467
1471
{
1468
1472
ClearUnitOutputs (unit, inNumSamples);
1469
1473
}
1470
1474
1471
- void Faust_Ctor (Faust * unit) // module constructor
1475
+ void Faust_Ctor (JPverbRaw * unit) // module constructor
1472
1476
{
1473
- // init dsp
1477
+ // init dsp
1474
1478
unit->mDSP .instanceInit ((int )SAMPLERATE);
1475
1479
1476
1480
// allocate controls
@@ -1515,15 +1519,15 @@ void Faust_Ctor(Faust* unit) // module constructor
1515
1519
SETCALC (Faust_next_copy);
1516
1520
}
1517
1521
#if !defined(NDEBUG)
1518
- Print (" Faust [%s]:\n " , g_unitName);
1522
+ Print (" JPverbRaw [%s]:\n " , g_unitName);
1519
1523
Print (" Inputs: %d\n "
1520
1524
" Outputs: %d\n "
1521
1525
" Callback: %s\n " ,
1522
1526
numInputs, numOutputs,
1523
1527
unit->mCalcFunc == (UnitCalcFunc)Faust_next ? " zero-copy" : " copy" );
1524
1528
#endif
1525
1529
} else {
1526
- Print (" Faust [%s]:\n " , g_unitName);
1530
+ Print (" JPverbRaw [%s]:\n " , g_unitName);
1527
1531
Print (" Input/Output channel mismatch\n "
1528
1532
" Inputs: faust %d, unit %d\n "
1529
1533
" Outputs: faust %d, unit %d\n " ,
@@ -1534,7 +1538,7 @@ void Faust_Ctor(Faust* unit) // module constructor
1534
1538
}
1535
1539
}
1536
1540
1537
- void Faust_Dtor (Faust * unit) // module destructor
1541
+ void Faust_Dtor (JPverbRaw * unit) // module destructor
1538
1542
{
1539
1543
if (unit->mInBufValue ) {
1540
1544
RTFree (unit->mWorld , unit->mInBufValue );
@@ -1567,12 +1571,12 @@ FAUST_EXPORT void load(InterfaceTable* inTable)
1567
1571
name = normalizeClassName (name);
1568
1572
1569
1573
#if !defined(NDEBUG) & defined(SC_API_EXPORT)
1570
- Print (" Faust : supercollider.cpp: sc_api_version = %d\n " ,sc_api_version);
1574
+ Print (" JPverbRaw : supercollider.cpp: sc_api_version = %d\n " ,sc_api_version);
1571
1575
#endif
1572
1576
1573
1577
if (name.empty ()) {
1574
1578
// Catch empty name
1575
- Print (" Faust [supercollider.cpp]:\n "
1579
+ Print (" JPverbRaw [supercollider.cpp]:\n "
1576
1580
" Could not create unit-generator module name from filename\n "
1577
1581
" bailing out ...\n " );
1578
1582
return ;
@@ -1596,8 +1600,13 @@ FAUST_EXPORT void load(InterfaceTable* inTable)
1596
1600
);
1597
1601
1598
1602
#if !defined(NDEBUG)
1599
- Print (" Faust : %s numControls=%d\n " , name.c_str (), g_numControls);
1603
+ Print (" JPverbRaw : %s numControls=%d\n " , name.c_str (), g_numControls);
1600
1604
#endif // NDEBUG
1601
1605
}
1602
1606
1607
+ #ifdef SUPERNOVA
1608
+ extern " C" FAUST_EXPORT int server_type (void ) { return sc_server_supernova; }
1609
+ #else
1610
+ extern " C" FAUST_EXPORT int server_type (void ) { return sc_server_scsynth; }
1611
+ #endif
1603
1612
// EOF
0 commit comments