| @@ -1256,10 +1256,10 @@ DLL_QUERY stk_query( Chuck_DL_Query * QUERY ) · 1255 unmodified lines |
| 1256 | //! \section stk - instruments | 1256 | //! \section stk - instruments |
| 1257 | | 1257 | |
| 1258 | //------------------------------------------------------------------------ | 1258 | //------------------------------------------------------------------------ |
| 1259 | // begin Instrmnt ugen | 1259 | // begin StkInstrument UGen |
| 1260 | //------------------------------------------------------------------------ | 1260 | //------------------------------------------------------------------------ |
| 1261 | | 1261 | |
| 1262 | doc = "Super-class for STK instruments."; | 1262 | doc = "base class for STK instruments."; |
| 1263 | | 1263 | |
| 1264 | if( !type_engine_import_ugen_begin( env, "StkInstrument", "UGen", env->global(), | 1264 | if( !type_engine_import_ugen_begin( env, "StkInstrument", "UGen", env->global(), |
| 1265 | Instrmnt_ctor, NULL, Instrmnt_tick, Instrmnt_pmsg, | 1265 | Instrmnt_ctor, NULL, Instrmnt_tick, Instrmnt_pmsg, |
| @@ -1270,27 +1270,27 @@ DLL_QUERY stk_query( Chuck_DL_Query * QUERY ) · 4 unmodified lines |
| 1270 | | 1270 | |
| 1271 | func = make_new_mfun( "float", "noteOn", Instrmnt_ctrl_noteOn ); //! note on | 1271 | func = make_new_mfun( "float", "noteOn", Instrmnt_ctrl_noteOn ); //! note on |
| 1272 | func->add_arg( "float", "value" ); | 1272 | func->add_arg( "float", "value" ); |
| 1273 | func->doc = "Trigger note on."; | 1273 | func->doc = "trigger note on."; |
| 1274 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1274 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1275 | | 1275 | |
| 1276 | func = make_new_mfun( "float", "noteOff", Instrmnt_ctrl_noteOff ); //! note off | 1276 | func = make_new_mfun( "float", "noteOff", Instrmnt_ctrl_noteOff ); //! note off |
| 1277 | func->add_arg( "float", "value" ); | 1277 | func->add_arg( "float", "value" ); |
| 1278 | func->doc = "Trigger note off."; | 1278 | func->doc = "trigger note off."; |
| 1279 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1279 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1280 | | 1280 | |
| 1281 | func = make_new_mfun( "float", "freq", Instrmnt_ctrl_freq ); //! frequency | 1281 | func = make_new_mfun( "float", "freq", Instrmnt_ctrl_freq ); //! frequency |
| 1282 | func->add_arg( "float", "value" ); | 1282 | func->add_arg( "float", "value" ); |
| 1283 | func->doc = "Set frequency."; | 1283 | func->doc = "set frequency."; |
| 1284 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1284 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1285 | | 1285 | |
| 1286 | func = make_new_mfun( "float", "freq", Instrmnt_cget_freq ); //! frequency | 1286 | func = make_new_mfun( "float", "freq", Instrmnt_cget_freq ); //! frequency |
| 1287 | func->doc = "Get frequency."; | 1287 | func->doc = "get frequency."; |
| 1288 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1288 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1289 | | 1289 | |
| 1290 | func = make_new_mfun( "void", "controlChange", Instrmnt_ctrl_controlChange ); //! control change | 1290 | func = make_new_mfun( "void", "controlChange", Instrmnt_ctrl_controlChange ); //! control change |
| 1291 | func->add_arg( "int", "ctrl" ); | 1291 | func->add_arg( "int", "ctrl" ); |
| 1292 | func->add_arg( "float", "value" ); | 1292 | func->add_arg( "float", "value" ); |
| 1293 | func->doc = "Assert control change; numbers are instrument specific, value range: [0.0 - 128.0]"; | 1293 | func->doc = "assert control change; numbers are instrument specific, value range: [0.0 - 127.0]"; |
| 1294 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1294 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1295 | | 1295 | |
| 1296 | // end the class import | 1296 | // end the class import |
| @@ -1301,7 +1301,7 @@ DLL_QUERY stk_query( Chuck_DL_Query * QUERY ) · 4 unmodified lines |
| 1301 | // begin BandedWG ugen | 1301 | // begin BandedWG ugen |
| 1302 | //------------------------------------------------------------------------ | 1302 | //------------------------------------------------------------------------ |
| 1303 | | 1303 | |
| 1304 | doc = "This class uses banded waveguide techniques to model a variety of sounds, including bowed bars, glasses, and bowls. For more information, see Essl, G. and Cook, P. 'Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments', Proceedings of the 1999 International Computer Music Conference.\n\ | 1304 | doc = "a banded waveguide model for generating a variety of sounds, including bowed bars, glasses, and bowls. For more information, see Essl and Cook 'Banded Waveguides: Towards Physical Modelling of Bar Percussion Instruments', In Proceedings of the 1999 International Computer Music Conference.\n\ |
| 1305 | \n\ | 1305 | \n\ |
| 1306 | Control Change Numbers:\n\ | 1306 | Control Change Numbers:\n\ |
| 1307 | \n\ | 1307 | \n\ |
| @@ -1334,80 +1334,80 @@ Modified for Stk 4.0 by Gary Scavone."; · 26 unmodified lines |
| 1334 | | 1334 | |
| 1335 | func = make_new_mfun( "float", "pluck", BandedWG_ctrl_pluck ); //! pluck waveguide | 1335 | func = make_new_mfun( "float", "pluck", BandedWG_ctrl_pluck ); //! pluck waveguide |
| 1336 | func->add_arg( "float", "value" ); | 1336 | func->add_arg( "float", "value" ); |
| 1337 | func->doc = "Pluck instrument, [0.0-1.0]."; | 1337 | func->doc = "pluck instrument, [0.0-1.0]."; |
| 1338 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1338 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1339 | | 1339 | |
| 1340 | func = make_new_mfun( "float", "startBowing", BandedWG_ctrl_startBowing ); //! startBowing | 1340 | func = make_new_mfun( "float", "startBowing", BandedWG_ctrl_startBowing ); //! startBowing |
| 1341 | func->add_arg( "float", "value" ); | 1341 | func->add_arg( "float", "value" ); |
| 1342 | func->doc = "Start bowing, [0.0-1.0]."; | 1342 | func->doc = "start bowing, [0.0-1.0]."; |
| 1343 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1343 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1344 | | 1344 | |
| 1345 | func = make_new_mfun( "float", "stopBowing", BandedWG_ctrl_stopBowing ); //! stopBowing | 1345 | func = make_new_mfun( "float", "stopBowing", BandedWG_ctrl_stopBowing ); //! stopBowing |
| 1346 | func->add_arg( "float", "value" ); | 1346 | func->add_arg( "float", "value" ); |
| 1347 | func->doc = "Stop bowing, [0.0-1.0]."; | 1347 | func->doc = "stop bowing, [0.0-1.0]."; |
| 1348 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1348 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1349 | | 1349 | |
| 1350 | func = make_new_mfun( "float", "bowRate", BandedWG_ctrl_bowRate ); //! strike bowRate | 1350 | func = make_new_mfun( "float", "bowRate", BandedWG_ctrl_bowRate ); //! strike bowRate |
| 1351 | func->add_arg( "float", "value" ); | 1351 | func->add_arg( "float", "value" ); |
| 1352 | func->doc = "Set bowing rate (seconds)."; | 1352 | func->doc = "set bowing rate (seconds)."; |
| 1353 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1353 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1354 | | 1354 | |
| 1355 | func = make_new_mfun( "float", "bowRate", BandedWG_cget_bowRate ); //! strike bowRate | 1355 | func = make_new_mfun( "float", "bowRate", BandedWG_cget_bowRate ); //! strike bowRate |
| 1356 | func->doc = "Get bowing rate (seconds)."; | 1356 | func->doc = "get bowing rate (seconds)."; |
| 1357 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1357 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1358 | | 1358 | |
| 1359 | func = make_new_mfun( "float", "bowPressure", BandedWG_ctrl_bowPressure ); //! bowPressure | 1359 | func = make_new_mfun( "float", "bowPressure", BandedWG_ctrl_bowPressure ); //! bowPressure |
| 1360 | func->add_arg( "float", "value" ); | 1360 | func->add_arg( "float", "value" ); |
| 1361 | func->doc = "Set bow pressure, [0.0-1.0]."; | 1361 | func->doc = "set bow pressure, [0.0-1.0]."; |
| 1362 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1362 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1363 | | 1363 | |
| 1364 | func = make_new_mfun( "float", "bowPressure", BandedWG_cget_bowPressure ); //! bowPressure | 1364 | func = make_new_mfun( "float", "bowPressure", BandedWG_cget_bowPressure ); //! bowPressure |
| 1365 | func->doc = "Get bow pressure, [0.0-1.0]."; | 1365 | func->doc = "get bow pressure, [0.0-1.0]."; |
| 1366 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1366 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1367 | | 1367 | |
| 1368 | func = make_new_mfun( "float", "bowMotion", BandedWG_ctrl_bowMotion ); //! bowMotion | 1368 | func = make_new_mfun( "float", "bowMotion", BandedWG_ctrl_bowMotion ); //! bowMotion |
| 1369 | func->add_arg( "float", "value" ); | 1369 | func->add_arg( "float", "value" ); |
| 1370 | func->doc = "Set bow motion, [0.0-1.0]."; | 1370 | func->doc = "set bow motion, [0.0-1.0]."; |
| 1371 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1371 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1372 | | 1372 | |
| 1373 | func = make_new_mfun( "float", "bowMotion", BandedWG_cget_bowMotion ); //! bowMotion | 1373 | func = make_new_mfun( "float", "bowMotion", BandedWG_cget_bowMotion ); //! bowMotion |
| 1374 | func->doc = "Get bow motion, [0.0-1.0]."; | 1374 | func->doc = "get bow motion, [0.0-1.0]."; |
| 1375 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1375 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1376 | | 1376 | |
| 1377 | func = make_new_mfun( "float", "integrationConstant", BandedWG_ctrl_vibratoFreq ); //! vibratoFreq | 1377 | func = make_new_mfun( "float", "integrationConstant", BandedWG_ctrl_vibratoFreq ); //! vibratoFreq |
| 1378 | func->add_arg( "float", "value" ); | 1378 | func->add_arg( "float", "value" ); |
| 1379 | func->doc = "Set integration constant, vibrato frequency."; | 1379 | func->doc = "set integration constant, vibrato frequency."; |
| 1380 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1380 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1381 | | 1381 | |
| 1382 | func = make_new_mfun( "float", "integrationConstant", BandedWG_cget_vibratoFreq ); //! vibratoFreq | 1382 | func = make_new_mfun( "float", "integrationConstant", BandedWG_cget_vibratoFreq ); //! vibratoFreq |
| 1383 | func->doc = "Get integration constant, vibrato frequency."; | 1383 | func->doc = "get integration constant, vibrato frequency."; |
| 1384 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1384 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1385 | | 1385 | |
| 1386 | func = make_new_mfun( "float", "modesGain", BandedWG_ctrl_modesGain ); //! modesGain | 1386 | func = make_new_mfun( "float", "modesGain", BandedWG_ctrl_modesGain ); //! modesGain |
| 1387 | func->add_arg( "float", "value" ); | 1387 | func->add_arg( "float", "value" ); |
| 1388 | func->doc = "Set amplitude for modes."; | 1388 | func->doc = "set amplitude for modes."; |
| 1389 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1389 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1390 | | 1390 | |
| 1391 | func = make_new_mfun( "float", "modesGain", BandedWG_cget_modesGain ); //! modesGain | 1391 | func = make_new_mfun( "float", "modesGain", BandedWG_cget_modesGain ); //! modesGain |
| 1392 | func->doc = "Get amplitude for modes."; | 1392 | func->doc = "get amplitude for modes."; |
| 1393 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1393 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1394 | | 1394 | |
| 1395 | func = make_new_mfun( "int", "preset", BandedWG_ctrl_preset ); //! preset | 1395 | func = make_new_mfun( "int", "preset", BandedWG_ctrl_preset ); //! preset |
| 1396 | func->add_arg( "int", "value" ); | 1396 | func->add_arg( "int", "value" ); |
| 1397 | func->doc = "Set instrument preset, (0-3, see above)."; | 1397 | func->doc = "set instrument preset, (0-3, see above)."; |
| 1398 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1398 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1399 | | 1399 | |
| 1400 | func = make_new_mfun( "int", "preset", BandedWG_cget_preset ); //! preset | 1400 | func = make_new_mfun( "int", "preset", BandedWG_cget_preset ); //! preset |
| 1401 | func->doc = "Get instrument preset, (0-3, see above)."; | 1401 | func->doc = "get instrument preset, (0-3, see above)."; |
| 1402 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1402 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1403 | | 1403 | |
| 1404 | func = make_new_mfun( "float", "strikePosition", BandedWG_ctrl_strikePosition ); //! strike Position | 1404 | func = make_new_mfun( "float", "strikePosition", BandedWG_ctrl_strikePosition ); //! strike Position |
| 1405 | func->add_arg( "float", "value" ); | 1405 | func->add_arg( "float", "value" ); |
| 1406 | func->doc = "Set strike position, [0.0-1.0]."; | 1406 | func->doc = "set strike position, [0.0-1.0]."; |
| 1407 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1407 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1408 | | 1408 | |
| 1409 | func = make_new_mfun( "float", "strikePosition", BandedWG_cget_strikePosition ); //! strike Position | 1409 | func = make_new_mfun( "float", "strikePosition", BandedWG_cget_strikePosition ); //! strike Position |
| 1410 | func->doc = "Get strike position, [0.0-1.0]."; | 1410 | func->doc = "get strike position, [0.0-1.0]."; |
| 1411 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1411 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1412 | | 1412 | |
| 1413 | // end the class import | 1413 | // end the class import |
| @@ -1418,7 +1418,7 @@ Modified for Stk 4.0 by Gary Scavone."; · 4 unmodified lines |
| 1418 | // begin BlowBotl ugen | 1418 | // begin BlowBotl ugen |
| 1419 | //------------------------------------------------------------------------ | 1419 | //------------------------------------------------------------------------ |
| 1420 | | 1420 | |
| 1421 | doc = "This class implements a helmholtz resonator (biquad filter) with a polynomial jet excitation (a la Cook).\n\ | 1421 | doc = "a helmholtz resonator (BiQuad filter) with a polynomial jet excitation (a la Cook).\n\ |
| 1422 | \n\ | 1422 | \n\ |
| 1423 | Control Change Numbers:\n\ | 1423 | Control Change Numbers:\n\ |
| 1424 | \n\ | 1424 | \n\ |
| @@ -1442,57 +1442,57 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002"; · 17 unmodified lines |
| 1442 | | 1442 | |
| 1443 | func = make_new_mfun( "float", "startBlowing", BlowBotl_ctrl_startBlowing ); //! note on | 1443 | func = make_new_mfun( "float", "startBlowing", BlowBotl_ctrl_startBlowing ); //! note on |
| 1444 | func->add_arg( "float", "value" ); | 1444 | func->add_arg( "float", "value" ); |
| 1445 | func->doc = "Start blowing, [0.0-1.0]."; | 1445 | func->doc = "start blowing, [0.0-1.0]."; |
| 1446 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1446 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1447 | | 1447 | |
| 1448 | func = make_new_mfun( "float", "stopBlowing", BlowBotl_ctrl_stopBlowing ); //! note on | 1448 | func = make_new_mfun( "float", "stopBlowing", BlowBotl_ctrl_stopBlowing ); //! note on |
| 1449 | func->add_arg( "float", "value" ); | 1449 | func->add_arg( "float", "value" ); |
| 1450 | func->doc = "Stop blowing, [0.0-1.0]."; | 1450 | func->doc = "stop blowing, [0.0-1.0]."; |
| 1451 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1451 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1452 | | 1452 | |
| 1453 | func = make_new_mfun( "float", "rate", BlowBotl_ctrl_rate ); //! attack rate | 1453 | func = make_new_mfun( "float", "rate", BlowBotl_ctrl_rate ); //! attack rate |
| 1454 | func->add_arg( "float", "value" ); | 1454 | func->add_arg( "float", "value" ); |
| 1455 | func->doc = "Set rate of attack"; | 1455 | func->doc = "set rate of attack"; |
| 1456 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1456 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1457 | | 1457 | |
| 1458 | func = make_new_mfun( "float", "rate", BlowBotl_cget_rate ); //! attack rate | 1458 | func = make_new_mfun( "float", "rate", BlowBotl_cget_rate ); //! attack rate |
| 1459 | func->doc = "Get rate of attack"; | 1459 | func->doc = "get rate of attack"; |
| 1460 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1460 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1461 | | 1461 | |
| 1462 | func = make_new_mfun( "float", "noiseGain", BlowBotl_ctrl_noiseGain ); //! noiseGain | 1462 | func = make_new_mfun( "float", "noiseGain", BlowBotl_ctrl_noiseGain ); //! noiseGain |
| 1463 | func->add_arg( "float", "value" ); | 1463 | func->add_arg( "float", "value" ); |
| 1464 | func->doc = "Set noise component gain, [0.0-1.0]."; | 1464 | func->doc = "set noise component gain, [0.0-1.0]."; |
| 1465 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1465 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1466 | | 1466 | |
| 1467 | func = make_new_mfun( "float", "noiseGain", BlowBotl_cget_noiseGain ); //! noiseGain | 1467 | func = make_new_mfun( "float", "noiseGain", BlowBotl_cget_noiseGain ); //! noiseGain |
| 1468 | func->doc = "Get noise component gain, [0.0-1.0]."; | 1468 | func->doc = "get noise component gain, [0.0-1.0]."; |
| 1469 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1469 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1470 | | 1470 | |
| 1471 | func = make_new_mfun( "float", "vibratoFreq", BlowBotl_ctrl_vibratoFreq ); //! vibratoFreq | 1471 | func = make_new_mfun( "float", "vibratoFreq", BlowBotl_ctrl_vibratoFreq ); //! vibratoFreq |
| 1472 | func->add_arg( "float", "value" ); | 1472 | func->add_arg( "float", "value" ); |
| 1473 | func->doc = "Set vibrato frequency (Hz)."; | 1473 | func->doc = "set vibrato frequency (Hz)."; |
| 1474 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1474 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1475 | | 1475 | |
| 1476 | func = make_new_mfun( "float", "vibratoFreq", BlowBotl_cget_vibratoFreq ); //! vibratoFreq | 1476 | func = make_new_mfun( "float", "vibratoFreq", BlowBotl_cget_vibratoFreq ); //! vibratoFreq |
| 1477 | func->doc = "Get vibrato frequency (Hz)."; | 1477 | func->doc = "get vibrato frequency (Hz)."; |
| 1478 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1478 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1479 | | 1479 | |
| 1480 | func = make_new_mfun( "float", "vibratoGain", BlowBotl_ctrl_vibratoGain ); //! vibratoGain | 1480 | func = make_new_mfun( "float", "vibratoGain", BlowBotl_ctrl_vibratoGain ); //! vibratoGain |
| 1481 | func->add_arg( "float", "value" ); | 1481 | func->add_arg( "float", "value" ); |
| 1482 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 1482 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 1483 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1483 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1484 | | 1484 | |
| 1485 | func = make_new_mfun( "float", "vibratoGain", BlowBotl_cget_vibratoGain ); //! vibratoGain | 1485 | func = make_new_mfun( "float", "vibratoGain", BlowBotl_cget_vibratoGain ); //! vibratoGain |
| 1486 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 1486 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 1487 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1487 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1488 | | 1488 | |
| 1489 | func = make_new_mfun( "float", "volume", BlowBotl_ctrl_volume ); //! volume | 1489 | func = make_new_mfun( "float", "volume", BlowBotl_ctrl_volume ); //! volume |
| 1490 | func->add_arg( "float", "value" ); | 1490 | func->add_arg( "float", "value" ); |
| 1491 | func->doc = "Set volume, [0.0-1.0]."; | 1491 | func->doc = "set volume, [0.0-1.0]."; |
| 1492 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1492 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1493 | | 1493 | |
| 1494 | func = make_new_mfun( "float", "volume", BlowBotl_cget_volume ); //! volume | 1494 | func = make_new_mfun( "float", "volume", BlowBotl_cget_volume ); //! volume |
| 1495 | func->doc = "Get volume, [0.0-1.0]."; | 1495 | func->doc = "get volume, [0.0-1.0]."; |
| 1496 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1496 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1497 | | 1497 | |
| 1498 | // end the class import | 1498 | // end the class import |
| @@ -1504,9 +1504,9 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002"; · 5 unmodified lines |
| 1504 | // begin BlowHole ugen | 1504 | // begin BlowHole ugen |
| 1505 | //------------------------------------------------------------------------ | 1505 | //------------------------------------------------------------------------ |
| 1506 | | 1506 | |
| 1507 | doc = "This class is based on the clarinet model, with the addition of a two-port register hole and a three-port dynamic tonehole implementation, as discussed by Scavone and Cook (1998).\n\ | 1507 | doc = "based on the clarinet model, with the addition of a two-port register hole and a three-port dynamic tonehole implementation, as discussed by Scavone and Cook (1998).\n\ |
| 1508 | \n\ | 1508 | \n\ |
| 1509 | In this implementation, the distances between the reed/register hole and tonehole/bell are fixed. As a result, both the tonehole and register hole will have variable influence on the playing frequency, which is dependent on the length of the air column. In addition, the highest playing freqeuency is limited by these fixed lengths. This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 1509 | In this implementation, the distances between the reed/register hole and tonehole/bell are fixed. As a result, both the tonehole and register hole will have variable influence on the playing frequency, which is dependent on the length of the air column. In addition, the highest playing freqeuency is limited by these fixed lengths. This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 1510 | \n\ | 1510 | \n\ |
| 1511 | Control Change Numbers:\n\ | 1511 | Control Change Numbers:\n\ |
| 1512 | \n\ | 1512 | \n\ |
| @@ -1531,66 +1531,66 @@ Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 18 unmodified lines |
| 1531 | | 1531 | |
| 1532 | func = make_new_mfun( "float", "startBlowing", BlowHole_ctrl_startBlowing ); //! note on | 1532 | func = make_new_mfun( "float", "startBlowing", BlowHole_ctrl_startBlowing ); //! note on |
| 1533 | func->add_arg( "float", "value" ); | 1533 | func->add_arg( "float", "value" ); |
| 1534 | func->doc = "Start blowing, [0.0-1.0]"; | 1534 | func->doc = "start blowing, [0.0-1.0]"; |
| 1535 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1535 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1536 | | 1536 | |
| 1537 | func = make_new_mfun( "float", "stopBlowing", BlowHole_ctrl_stopBlowing ); //! note on | 1537 | func = make_new_mfun( "float", "stopBlowing", BlowHole_ctrl_stopBlowing ); //! note on |
| 1538 | func->add_arg( "float", "value" ); | 1538 | func->add_arg( "float", "value" ); |
| 1539 | func->doc = "Stop blowing, [0.0-1.0]"; | 1539 | func->doc = "stop blowing, [0.0-1.0]"; |
| 1540 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1540 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1541 | | 1541 | |
| 1542 | func = make_new_mfun( "float", "vent", BlowHole_ctrl_vent ); //! vent frequency | 1542 | func = make_new_mfun( "float", "vent", BlowHole_ctrl_vent ); //! vent frequency |
| 1543 | func->add_arg( "float", "value" ); | 1543 | func->add_arg( "float", "value" ); |
| 1544 | func->doc = "Set vent frequency, [0.0-1.0]."; | 1544 | func->doc = "set vent frequency, [0.0-1.0]."; |
| 1545 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1545 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1546 | | 1546 | |
| 1547 | func = make_new_mfun( "float", "vent", BlowHole_cget_vent ); //! vent frequency | 1547 | func = make_new_mfun( "float", "vent", BlowHole_cget_vent ); //! vent frequency |
| 1548 | func->doc = "Get vent frequency, [0.0-1.0]."; | 1548 | func->doc = "get vent frequency, [0.0-1.0]."; |
| 1549 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1549 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1550 | | 1550 | |
| 1551 | func = make_new_mfun( "float", "tonehole", BlowHole_ctrl_tonehole ); //! tonehole size | 1551 | func = make_new_mfun( "float", "tonehole", BlowHole_ctrl_tonehole ); //! tonehole size |
| 1552 | func->add_arg( "float", "value" ); | 1552 | func->add_arg( "float", "value" ); |
| 1553 | func->doc = "Set tonehole size, [0.0-1.0]."; | 1553 | func->doc = "set tonehole size, [0.0-1.0]."; |
| 1554 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1554 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1555 | | 1555 | |
| 1556 | func = make_new_mfun( "float", "tonehole", BlowHole_cget_tonehole ); //! tonehole size | 1556 | func = make_new_mfun( "float", "tonehole", BlowHole_cget_tonehole ); //! tonehole size |
| 1557 | func->doc = "Get tonehole size, [0.0-1.0]."; | 1557 | func->doc = "get tonehole size, [0.0-1.0]."; |
| 1558 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1558 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1559 | | 1559 | |
| 1560 | func = make_new_mfun( "float", "reed", BlowHole_ctrl_reed ); //! reed stiffness | 1560 | func = make_new_mfun( "float", "reed", BlowHole_ctrl_reed ); //! reed stiffness |
| 1561 | func->add_arg( "float", "value" ); | 1561 | func->add_arg( "float", "value" ); |
| 1562 | func->doc = "Set reed stiffness, [0.0-1.0]."; | 1562 | func->doc = "set reed stiffness, [0.0-1.0]."; |
| 1563 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1563 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1564 | | 1564 | |
| 1565 | func = make_new_mfun( "float", "reed", BlowHole_cget_reed ); //! reed stiffness | 1565 | func = make_new_mfun( "float", "reed", BlowHole_cget_reed ); //! reed stiffness |
| 1566 | func->doc = "Get reed stiffness, [0.0-1.0]."; | 1566 | func->doc = "get reed stiffness, [0.0-1.0]."; |
| 1567 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1567 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1568 | | 1568 | |
| 1569 | func = make_new_mfun( "float", "rate", BlowHole_ctrl_rate ); //! attack rate | 1569 | func = make_new_mfun( "float", "rate", BlowHole_ctrl_rate ); //! attack rate |
| 1570 | func->add_arg( "float", "value" ); | 1570 | func->add_arg( "float", "value" ); |
| 1571 | func->doc = "Set rate of attack, [0.0-1.0]."; | 1571 | func->doc = "set rate of attack, [0.0-1.0]."; |
| 1572 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1572 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1573 | | 1573 | |
| 1574 | func = make_new_mfun( "float", "rate", BlowHole_cget_rate ); //! attack rate | 1574 | func = make_new_mfun( "float", "rate", BlowHole_cget_rate ); //! attack rate |
| 1575 | func->doc = "Get rate of attack, [0.0-1.0]."; | 1575 | func->doc = "get rate of attack, [0.0-1.0]."; |
| 1576 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1576 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1577 | | 1577 | |
| 1578 | func = make_new_mfun( "float", "noiseGain", BlowHole_ctrl_noiseGain ); //! noise gain | 1578 | func = make_new_mfun( "float", "noiseGain", BlowHole_ctrl_noiseGain ); //! noise gain |
| 1579 | func->add_arg( "float", "value" ); | 1579 | func->add_arg( "float", "value" ); |
| 1580 | func->doc = "Set noise component gain, [0.0-1.0]."; | 1580 | func->doc = "set noise component gain, [0.0-1.0]."; |
| 1581 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1581 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1582 | | 1582 | |
| 1583 | func = make_new_mfun( "float", "noiseGain", BlowHole_cget_noiseGain ); //! noise gain | 1583 | func = make_new_mfun( "float", "noiseGain", BlowHole_cget_noiseGain ); //! noise gain |
| 1584 | func->doc = "Get noise component gain, [0.0-1.0]."; | 1584 | func->doc = "get noise component gain, [0.0-1.0]."; |
| 1585 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1585 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1586 | | 1586 | |
| 1587 | func = make_new_mfun( "float", "pressure", BlowHole_ctrl_pressure ); //! breath pressure | 1587 | func = make_new_mfun( "float", "pressure", BlowHole_ctrl_pressure ); //! breath pressure |
| 1588 | func->add_arg( "float", "value" ); | 1588 | func->add_arg( "float", "value" ); |
| 1589 | func->doc = "Set pressure, [0.0-1.0]."; | 1589 | func->doc = "set pressure, [0.0-1.0]."; |
| 1590 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1590 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1591 | | 1591 | |
| 1592 | func = make_new_mfun( "float", "pressure", BlowHole_cget_pressure ); //! breath pressure | 1592 | func = make_new_mfun( "float", "pressure", BlowHole_cget_pressure ); //! breath pressure |
| 1593 | func->doc = "Get pressure, [0.0-1.0]."; | 1593 | func->doc = "get pressure, [0.0-1.0]."; |
| 1594 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1594 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1595 | | 1595 | |
| 1596 | // end the class import | 1596 | // end the class import |
| @@ -1601,7 +1601,7 @@ Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 1601 | // begin Bowed ugen | 1601 | // begin Bowed ugen |
| 1602 | //------------------------------------------------------------------------ | 1602 | //------------------------------------------------------------------------ |
| 1603 | | 1603 | |
| 1604 | doc = "This class implements a bowed string model, a la Smith (1986), after McIntyre, Schumacher, Woodhouse (1983).\n\ | 1604 | doc = "a bowed string model, a la Smith (1986), after McIntyre, Schumacher, Woodhouse (1983).\n\ |
| 1605 | \n\ | 1605 | \n\ |
| 1606 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 1606 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 1607 | \n\ | 1607 | \n\ |
| @@ -1628,57 +1628,57 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 20 unmodified lines |
| 1628 | | 1628 | |
| 1629 | func = make_new_mfun( "float", "startBowing", Bowed_ctrl_startBowing ); //! begin bowing instrument | 1629 | func = make_new_mfun( "float", "startBowing", Bowed_ctrl_startBowing ); //! begin bowing instrument |
| 1630 | func->add_arg( "float", "value" ); | 1630 | func->add_arg( "float", "value" ); |
| 1631 | func->doc = "Start bowing, [0.0-1.0]."; | 1631 | func->doc = "start bowing, [0.0-1.0]."; |
| 1632 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1632 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1633 | | 1633 | |
| 1634 | func = make_new_mfun( "float", "stopBowing", Bowed_ctrl_stopBowing ); //! stop bowing | 1634 | func = make_new_mfun( "float", "stopBowing", Bowed_ctrl_stopBowing ); //! stop bowing |
| 1635 | func->add_arg( "float", "value" ); | 1635 | func->add_arg( "float", "value" ); |
| 1636 | func->doc = "Stop bowing, [0.0-1.0]."; | 1636 | func->doc = "stop bowing, [0.0-1.0]."; |
| 1637 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1637 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1638 | | 1638 | |
| 1639 | func = make_new_mfun( "float", "bowPressure", Bowed_ctrl_bowPressure ); //! bowPressure | 1639 | func = make_new_mfun( "float", "bowPressure", Bowed_ctrl_bowPressure ); //! bowPressure |
| 1640 | func->add_arg( "float", "value" ); | 1640 | func->add_arg( "float", "value" ); |
| 1641 | func->doc = "Set bow pressure, [0.0-1.0]"; | 1641 | func->doc = "set bow pressure, [0.0-1.0]"; |
| 1642 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1642 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1643 | | 1643 | |
| 1644 | func = make_new_mfun( "float", "bowPressure", Bowed_cget_bowPressure ); //! bowPressure | 1644 | func = make_new_mfun( "float", "bowPressure", Bowed_cget_bowPressure ); //! bowPressure |
| 1645 | func->doc = "Get bow pressure, [0.0-1.0]"; | 1645 | func->doc = "get bow pressure, [0.0-1.0]"; |
| 1646 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1646 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1647 | | 1647 | |
| 1648 | func = make_new_mfun( "float", "bowPosition", Bowed_ctrl_bowPos ); //! bowPos | 1648 | func = make_new_mfun( "float", "bowPosition", Bowed_ctrl_bowPos ); //! bowPos |
| 1649 | func->add_arg( "float", "value" ); | 1649 | func->add_arg( "float", "value" ); |
| 1650 | func->doc = "Set bow position, [0.0-1.0]"; | 1650 | func->doc = "set bow position, [0.0-1.0]"; |
| 1651 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1651 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1652 | | 1652 | |
| 1653 | func = make_new_mfun( "float", "bowPosition", Bowed_cget_bowPos ); //! bowPos | 1653 | func = make_new_mfun( "float", "bowPosition", Bowed_cget_bowPos ); //! bowPos |
| 1654 | func->doc = "Get bow position, [0.0-1.0]"; | 1654 | func->doc = "get bow position, [0.0-1.0]"; |
| 1655 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1655 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1656 | | 1656 | |
| 1657 | func = make_new_mfun( "float", "vibratoFreq", Bowed_ctrl_vibratoFreq ); //! vibratoFreq | 1657 | func = make_new_mfun( "float", "vibratoFreq", Bowed_ctrl_vibratoFreq ); //! vibratoFreq |
| 1658 | func->add_arg( "float", "value" ); | 1658 | func->add_arg( "float", "value" ); |
| 1659 | func->doc = "Set vibrato frequency (Hz)."; | 1659 | func->doc = "set vibrato frequency (Hz)."; |
| 1660 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1660 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1661 | | 1661 | |
| 1662 | func = make_new_mfun( "float", "vibratoFreq", Bowed_cget_vibratoFreq ); //! vibratoFreq | 1662 | func = make_new_mfun( "float", "vibratoFreq", Bowed_cget_vibratoFreq ); //! vibratoFreq |
| 1663 | func->doc = "Get vibrato frequency (Hz)."; | 1663 | func->doc = "get vibrato frequency (Hz)."; |
| 1664 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1664 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1665 | | 1665 | |
| 1666 | func = make_new_mfun( "float", "vibratoGain", Bowed_ctrl_vibratoGain ); //! vibratoGain | 1666 | func = make_new_mfun( "float", "vibratoGain", Bowed_ctrl_vibratoGain ); //! vibratoGain |
| 1667 | func->add_arg( "float", "value" ); | 1667 | func->add_arg( "float", "value" ); |
| 1668 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 1668 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 1669 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1669 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1670 | | 1670 | |
| 1671 | func = make_new_mfun( "float", "vibratoGain", Bowed_cget_vibratoGain ); //! vibratoGain | 1671 | func = make_new_mfun( "float", "vibratoGain", Bowed_cget_vibratoGain ); //! vibratoGain |
| 1672 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 1672 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 1673 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1673 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1674 | | 1674 | |
| 1675 | func = make_new_mfun( "float", "volume", Bowed_ctrl_volume ); //! volume | 1675 | func = make_new_mfun( "float", "volume", Bowed_ctrl_volume ); //! volume |
| 1676 | func->add_arg( "float", "value" ); | 1676 | func->add_arg( "float", "value" ); |
| 1677 | func->doc = "Set volume, [0.0-1.0]."; | 1677 | func->doc = "set volume, [0.0-1.0]."; |
| 1678 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1678 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1679 | | 1679 | |
| 1680 | func = make_new_mfun( "float", "volume", Bowed_cget_volume ); //! volume | 1680 | func = make_new_mfun( "float", "volume", Bowed_cget_volume ); //! volume |
| 1681 | func->doc = "Get volume, [0.0-1.0]."; | 1681 | func->doc = "get volume, [0.0-1.0]."; |
| 1682 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1682 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1683 | | 1683 | |
| 1684 | // end the class import | 1684 | // end the class import |
| @@ -1689,7 +1689,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 1689 | // begin Brass ugen | 1689 | // begin Brass ugen |
| 1690 | //------------------------------------------------------------------------ | 1690 | //------------------------------------------------------------------------ |
| 1691 | | 1691 | |
| 1692 | doc = "This class implements a simple brass instrument waveguide model, a la Cook (TBone, HosePlayer).\n\ | 1692 | doc = "a simple brass instrument waveguide model, a la Cook (TBone, HosePlayer).\n\ |
| 1693 | \n\ | 1693 | \n\ |
| 1694 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 1694 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 1695 | \n\ | 1695 | \n\ |
| @@ -1716,71 +1716,71 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 20 unmodified lines |
| 1716 | | 1716 | |
| 1717 | func = make_new_mfun( "float", "clear", Brass_ctrl_clear ); //! clear instrument | 1717 | func = make_new_mfun( "float", "clear", Brass_ctrl_clear ); //! clear instrument |
| 1718 | func->add_arg( "float", "value" ); | 1718 | func->add_arg( "float", "value" ); |
| 1719 | func->doc = "Clear instrument."; | 1719 | func->doc = "clear instrument."; |
| 1720 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1720 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1721 | | 1721 | |
| 1722 | func = make_new_mfun( "float", "startBlowing", Brass_ctrl_startBlowing ); //! note on | 1722 | func = make_new_mfun( "float", "startBlowing", Brass_ctrl_startBlowing ); //! note on |
| 1723 | func->add_arg( "float", "value" ); | 1723 | func->add_arg( "float", "value" ); |
| 1724 | func->doc = "Start blowing, [0.0-1.0]."; | 1724 | func->doc = "start blowing, [0.0-1.0]."; |
| 1725 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1725 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1726 | | 1726 | |
| 1727 | func = make_new_mfun( "float", "stopBlowing", Brass_ctrl_stopBlowing ); //! note on | 1727 | func = make_new_mfun( "float", "stopBlowing", Brass_ctrl_stopBlowing ); //! note on |
| 1728 | func->add_arg( "float", "value" ); | 1728 | func->add_arg( "float", "value" ); |
| 1729 | func->doc = "Stop blowing, [0.0-1.0]."; | 1729 | func->doc = "stop blowing, [0.0-1.0]."; |
| 1730 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1730 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1731 | | 1731 | |
| 1732 | func = make_new_mfun( "float", "lip", Brass_ctrl_lip ); //! lip stiffness | 1732 | func = make_new_mfun( "float", "lip", Brass_ctrl_lip ); //! lip stiffness |
| 1733 | func->add_arg( "float", "value" ); | 1733 | func->add_arg( "float", "value" ); |
| 1734 | func->doc = "Set lip tension, [0.0-1.0]."; | 1734 | func->doc = "set lip tension, [0.0-1.0]."; |
| 1735 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1735 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1736 | | 1736 | |
| 1737 | func = make_new_mfun( "float", "lip", Brass_cget_lip ); //! lip stiffness | 1737 | func = make_new_mfun( "float", "lip", Brass_cget_lip ); //! lip stiffness |
| 1738 | func->doc = "Get lip tension, [0.0-1.0]."; | 1738 | func->doc = "get lip tension, [0.0-1.0]."; |
| 1739 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1739 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1740 | | 1740 | |
| 1741 | func = make_new_mfun( "float", "slide", Brass_ctrl_slide ); //! slide | 1741 | func = make_new_mfun( "float", "slide", Brass_ctrl_slide ); //! slide |
| 1742 | func->add_arg( "float", "value" ); | 1742 | func->add_arg( "float", "value" ); |
| 1743 | func->doc = "Set slide length, [0.0-1.0]."; | 1743 | func->doc = "set slide length, [0.0-1.0]."; |
| 1744 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1744 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1745 | | 1745 | |
| 1746 | func = make_new_mfun( "float", "slide", Brass_cget_slide ); //! slide | 1746 | func = make_new_mfun( "float", "slide", Brass_cget_slide ); //! slide |
| 1747 | func->doc = "Get slide length, [0.0-1.0]."; | 1747 | func->doc = "get slide length, [0.0-1.0]."; |
| 1748 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1748 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1749 | | 1749 | |
| 1750 | func = make_new_mfun( "float", "vibratoFreq", Brass_ctrl_vibratoFreq ); //! vibratoFreq | 1750 | func = make_new_mfun( "float", "vibratoFreq", Brass_ctrl_vibratoFreq ); //! vibratoFreq |
| 1751 | func->add_arg( "float", "value" ); | 1751 | func->add_arg( "float", "value" ); |
| 1752 | func->doc = "Set vibrato frequency (Hz)."; | 1752 | func->doc = "set vibrato frequency (Hz)."; |
| 1753 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1753 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1754 | | 1754 | |
| 1755 | func = make_new_mfun( "float", "vibratoFreq", Brass_cget_vibratoFreq ); //! vibratoFreq | 1755 | func = make_new_mfun( "float", "vibratoFreq", Brass_cget_vibratoFreq ); //! vibratoFreq |
| 1756 | func->doc = "Get vibrato frequency (Hz)."; | 1756 | func->doc = "get vibrato frequency (Hz)."; |
| 1757 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1757 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1758 | | 1758 | |
| 1759 | func = make_new_mfun( "float", "vibratoGain", Brass_ctrl_vibratoGain ); //! vibratoGain | 1759 | func = make_new_mfun( "float", "vibratoGain", Brass_ctrl_vibratoGain ); //! vibratoGain |
| 1760 | func->add_arg( "float", "value" ); | 1760 | func->add_arg( "float", "value" ); |
| 1761 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 1761 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 1762 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1762 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1763 | | 1763 | |
| 1764 | func = make_new_mfun( "float", "vibratoGain", Brass_cget_vibratoGain ); //! vibratoGain | 1764 | func = make_new_mfun( "float", "vibratoGain", Brass_cget_vibratoGain ); //! vibratoGain |
| 1765 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 1765 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 1766 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1766 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1767 | | 1767 | |
| 1768 | func = make_new_mfun( "float", "volume", Brass_ctrl_volume ); //! volume | 1768 | func = make_new_mfun( "float", "volume", Brass_ctrl_volume ); //! volume |
| 1769 | func->add_arg( "float", "value" ); | 1769 | func->add_arg( "float", "value" ); |
| 1770 | func->doc = "Set volume, [0.0-1.0]."; | 1770 | func->doc = "set volume, [0.0-1.0]."; |
| 1771 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1771 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1772 | | 1772 | |
| 1773 | func = make_new_mfun( "float", "volume", Brass_cget_volume ); //! volume | 1773 | func = make_new_mfun( "float", "volume", Brass_cget_volume ); //! volume |
| 1774 | func->doc = "Get volume, [0.0-1.0]."; | 1774 | func->doc = "get volume, [0.0-1.0]."; |
| 1775 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1775 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1776 | | 1776 | |
| 1777 | func = make_new_mfun( "float", "rate", Brass_ctrl_rate ); //! attack rate | 1777 | func = make_new_mfun( "float", "rate", Brass_ctrl_rate ); //! attack rate |
| 1778 | func->add_arg( "float", "value" ); | 1778 | func->add_arg( "float", "value" ); |
| 1779 | func->doc = "Set rate of attack (seconds)."; | 1779 | func->doc = "set rate of attack (seconds)."; |
| 1780 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1780 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1781 | | 1781 | |
| 1782 | func = make_new_mfun( "float", "rate", Brass_cget_rate ); //! attack rate | 1782 | func = make_new_mfun( "float", "rate", Brass_cget_rate ); //! attack rate |
| 1783 | func->doc = "Get rate of attack (seconds)."; | 1783 | func->doc = "get rate of attack (seconds)."; |
| 1784 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1784 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1785 | | 1785 | |
| 1786 | // end the class import | 1786 | // end the class import |
| @@ -1791,7 +1791,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 1791 | // begin Clarinet ugen | 1791 | // begin Clarinet ugen |
| 1792 | //------------------------------------------------------------------------ | 1792 | //------------------------------------------------------------------------ |
| 1793 | | 1793 | |
| 1794 | doc = "This class implements a simple clarinet physical model, as discussed by Smith (1986), McIntyre, Schumacher, Woodhouse (1983), and others.\n\ | 1794 | doc = "a simple clarinet physical model, as discussed by Smith (1986), McIntyre, Schumacher, Woodhouse (1983), and others.\n\ |
| 1795 | \n\ | 1795 | \n\ |
| 1796 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 1796 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 1797 | \n\ | 1797 | \n\ |
| @@ -1818,71 +1818,71 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 20 unmodified lines |
| 1818 | | 1818 | |
| 1819 | func = make_new_mfun( "float", "clear", Clarinet_ctrl_clear ); //! note on | 1819 | func = make_new_mfun( "float", "clear", Clarinet_ctrl_clear ); //! note on |
| 1820 | func->add_arg( "float", "value" ); | 1820 | func->add_arg( "float", "value" ); |
| 1821 | func->doc = "Clear instrument."; | 1821 | func->doc = "clear instrument."; |
| 1822 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1822 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1823 | | 1823 | |
| 1824 | func = make_new_mfun( "float", "startBlowing", Clarinet_ctrl_startBlowing ); //! note on | 1824 | func = make_new_mfun( "float", "startBlowing", Clarinet_ctrl_startBlowing ); //! note on |
| 1825 | func->add_arg( "float", "value" ); | 1825 | func->add_arg( "float", "value" ); |
| 1826 | func->doc = "Start blowing, [0.0-1.0]."; | 1826 | func->doc = "start blowing, [0.0-1.0]."; |
| 1827 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1827 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1828 | | 1828 | |
| 1829 | func = make_new_mfun( "float", "stopBlowing", Clarinet_ctrl_stopBlowing ); //! note on | 1829 | func = make_new_mfun( "float", "stopBlowing", Clarinet_ctrl_stopBlowing ); //! note on |
| 1830 | func->add_arg( "float", "value" ); | 1830 | func->add_arg( "float", "value" ); |
| 1831 | func->doc = "Stop blowing, [0.0-1.0]."; | 1831 | func->doc = "stop blowing, [0.0-1.0]."; |
| 1832 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1832 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1833 | | 1833 | |
| 1834 | func = make_new_mfun( "float", "rate", Clarinet_ctrl_rate ); //! attack rate | 1834 | func = make_new_mfun( "float", "rate", Clarinet_ctrl_rate ); //! attack rate |
| 1835 | func->add_arg( "float", "value" ); | 1835 | func->add_arg( "float", "value" ); |
| 1836 | func->doc = "Set rate of attack (seconds)."; | 1836 | func->doc = "set rate of attack (seconds)."; |
| 1837 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1837 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1838 | | 1838 | |
| 1839 | func = make_new_mfun( "float", "rate", Clarinet_cget_rate ); //! attack rate | 1839 | func = make_new_mfun( "float", "rate", Clarinet_cget_rate ); //! attack rate |
| 1840 | func->doc = "Get rate of attack (seconds)."; | 1840 | func->doc = "get rate of attack (seconds)."; |
| 1841 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1841 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1842 | | 1842 | |
| 1843 | func = make_new_mfun( "float", "reed", Clarinet_ctrl_reed); //! reed | 1843 | func = make_new_mfun( "float", "reed", Clarinet_ctrl_reed); //! reed |
| 1844 | func->add_arg( "float", "value" ); | 1844 | func->add_arg( "float", "value" ); |
| 1845 | func->doc = "Set reed stiffness, [0.0-1.0]."; | 1845 | func->doc = "set reed stiffness, [0.0-1.0]."; |
| 1846 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1846 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1847 | | 1847 | |
| 1848 | func = make_new_mfun( "float", "reed", Clarinet_cget_reed); //! reed | 1848 | func = make_new_mfun( "float", "reed", Clarinet_cget_reed); //! reed |
| 1849 | func->doc = "Get reed stiffness, [0.0-1.0]."; | 1849 | func->doc = "get reed stiffness, [0.0-1.0]."; |
| 1850 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1850 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1851 | | 1851 | |
| 1852 | func = make_new_mfun( "float", "noiseGain", Clarinet_ctrl_noiseGain ); //! noiseGain | 1852 | func = make_new_mfun( "float", "noiseGain", Clarinet_ctrl_noiseGain ); //! noiseGain |
| 1853 | func->add_arg( "float", "value" ); | 1853 | func->add_arg( "float", "value" ); |
| 1854 | func->doc = "Set noise component gain, [0.0-1.0]."; | 1854 | func->doc = "set noise component gain, [0.0-1.0]."; |
| 1855 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1855 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1856 | | 1856 | |
| 1857 | func = make_new_mfun( "float", "noiseGain", Clarinet_cget_noiseGain ); //! noiseGain | 1857 | func = make_new_mfun( "float", "noiseGain", Clarinet_cget_noiseGain ); //! noiseGain |
| 1858 | func->doc = "Get noise component gain, [0.0-1.0]."; | 1858 | func->doc = "get noise component gain, [0.0-1.0]."; |
| 1859 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1859 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1860 | | 1860 | |
| 1861 | func = make_new_mfun( "float", "vibratoFreq", Clarinet_ctrl_vibratoFreq ); //! rvibratoFreq | 1861 | func = make_new_mfun( "float", "vibratoFreq", Clarinet_ctrl_vibratoFreq ); //! rvibratoFreq |
| 1862 | func->add_arg( "float", "value" ); | 1862 | func->add_arg( "float", "value" ); |
| 1863 | func->doc = "Set vibrato frequency (Hz)."; | 1863 | func->doc = "set vibrato frequency (Hz)."; |
| 1864 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1864 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1865 | | 1865 | |
| 1866 | func = make_new_mfun( "float", "vibratoFreq", Clarinet_cget_vibratoFreq ); //! rvibratoFreq | 1866 | func = make_new_mfun( "float", "vibratoFreq", Clarinet_cget_vibratoFreq ); //! rvibratoFreq |
| 1867 | func->doc = "Get vibrato frequency (Hz)."; | 1867 | func->doc = "get vibrato frequency (Hz)."; |
| 1868 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1868 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1869 | | 1869 | |
| 1870 | func = make_new_mfun( "float", "vibratoGain", Clarinet_ctrl_vibratoGain ); //! vibratoGain | 1870 | func = make_new_mfun( "float", "vibratoGain", Clarinet_ctrl_vibratoGain ); //! vibratoGain |
| 1871 | func->add_arg( "float", "value" ); | 1871 | func->add_arg( "float", "value" ); |
| 1872 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 1872 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 1873 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1873 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1874 | | 1874 | |
| 1875 | func = make_new_mfun( "float", "vibratoGain", Clarinet_cget_vibratoGain ); //! vibratoGain | 1875 | func = make_new_mfun( "float", "vibratoGain", Clarinet_cget_vibratoGain ); //! vibratoGain |
| 1876 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 1876 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 1877 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1877 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1878 | | 1878 | |
| 1879 | func = make_new_mfun( "float", "pressure", Clarinet_ctrl_pressure ); //! pressure | 1879 | func = make_new_mfun( "float", "pressure", Clarinet_ctrl_pressure ); //! pressure |
| 1880 | func->add_arg( "float", "value" ); | 1880 | func->add_arg( "float", "value" ); |
| 1881 | func->doc = "Set pressure, [0.0-1.0]."; | 1881 | func->doc = "set pressure, [0.0-1.0]."; |
| 1882 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1882 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1883 | | 1883 | |
| 1884 | func = make_new_mfun( "float", "pressure", Clarinet_cget_pressure ); //! pressure | 1884 | func = make_new_mfun( "float", "pressure", Clarinet_cget_pressure ); //! pressure |
| 1885 | func->doc = "Get pressure, [0.0-1.0]."; | 1885 | func->doc = "get pressure, [0.0-1.0]."; |
| 1886 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1886 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1887 | | 1887 | |
| 1888 | // end the class import | 1888 | // end the class import |
| @@ -1893,7 +1893,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 1893 | // begin Flute ugen | 1893 | // begin Flute ugen |
| 1894 | //------------------------------------------------------------------------ | 1894 | //------------------------------------------------------------------------ |
| 1895 | | 1895 | |
| 1896 | doc = "This class implements a simple flute physical model, as discussed by Karjalainen, Smith, Waryznyk, etc. The jet model uses a polynomial, a la Cook.\n\ | 1896 | doc = "a simple flute physical model, as discussed by Karjalainen, Smith, Waryznyk, etc. The jet model uses a polynomial, a la Cook.\n\ |
| 1897 | \n\ | 1897 | \n\ |
| 1898 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 1898 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 1899 | \n\ | 1899 | \n\ |
| @@ -1919,89 +1919,89 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 19 unmodified lines |
| 1919 | | 1919 | |
| 1920 | func = make_new_mfun( "float", "clear", Flute_ctrl_clear ); //! clear | 1920 | func = make_new_mfun( "float", "clear", Flute_ctrl_clear ); //! clear |
| 1921 | func->add_arg( "float", "value" ); | 1921 | func->add_arg( "float", "value" ); |
| 1922 | func->doc = "Clear instrument."; | 1922 | func->doc = "clear instrument."; |
| 1923 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1923 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1924 | | 1924 | |
| 1925 | func = make_new_mfun( "float", "startBlowing", Flute_ctrl_startBlowing ); //! startBlowing | 1925 | func = make_new_mfun( "float", "startBlowing", Flute_ctrl_startBlowing ); //! startBlowing |
| 1926 | func->add_arg( "float", "value" ); | 1926 | func->add_arg( "float", "value" ); |
| 1927 | func->doc = "Start blowing, [0.0-1.0]."; | 1927 | func->doc = "start blowing, [0.0-1.0]."; |
| 1928 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1928 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1929 | | 1929 | |
| 1930 | func = make_new_mfun( "float", "stopBlowing", Flute_ctrl_stopBlowing ); //! stopBlowing | 1930 | func = make_new_mfun( "float", "stopBlowing", Flute_ctrl_stopBlowing ); //! stopBlowing |
| 1931 | func->add_arg( "float", "value" ); | 1931 | func->add_arg( "float", "value" ); |
| 1932 | func->doc = "Stop blowing, [0.0-1.0]."; | 1932 | func->doc = "stop blowing, [0.0-1.0]."; |
| 1933 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1933 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1934 | | 1934 | |
| 1935 | func = make_new_mfun( "float", "rate", Flute_ctrl_rate ); //! attack rate | 1935 | func = make_new_mfun( "float", "rate", Flute_ctrl_rate ); //! attack rate |
| 1936 | func->add_arg( "float", "value" ); | 1936 | func->add_arg( "float", "value" ); |
| 1937 | func->doc = "Set rate of attack (seconds)."; | 1937 | func->doc = "set rate of attack (seconds)."; |
| 1938 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1938 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1939 | | 1939 | |
| 1940 | func = make_new_mfun( "float", "rate", Flute_cget_rate ); //! attack rate | 1940 | func = make_new_mfun( "float", "rate", Flute_cget_rate ); //! attack rate |
| 1941 | func->doc = "Get rate of attack (seconds)."; | 1941 | func->doc = "get rate of attack (seconds)."; |
| 1942 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1942 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1943 | | 1943 | |
| 1944 | func = make_new_mfun( "float", "jetReflection", Flute_ctrl_jetReflection ); //! jet reflection | 1944 | func = make_new_mfun( "float", "jetReflection", Flute_ctrl_jetReflection ); //! jet reflection |
| 1945 | func->add_arg( "float", "value" ); | 1945 | func->add_arg( "float", "value" ); |
| 1946 | func-> doc = "Set jet reflection."; | 1946 | func-> doc = "set jet reflection."; |
| 1947 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1947 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1948 | | 1948 | |
| 1949 | func = make_new_mfun( "float", "jetReflection", Flute_cget_jetReflection ); //! jet reflection | 1949 | func = make_new_mfun( "float", "jetReflection", Flute_cget_jetReflection ); //! jet reflection |
| 1950 | func-> doc = "Get jet reflection."; | 1950 | func-> doc = "get jet reflection."; |
| 1951 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1951 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1952 | | 1952 | |
| 1953 | func = make_new_mfun( "float", "jetDelay", Flute_ctrl_jetDelay ); //! jet delay | 1953 | func = make_new_mfun( "float", "jetDelay", Flute_ctrl_jetDelay ); //! jet delay |
| 1954 | func->add_arg( "float", "value" ); | 1954 | func->add_arg( "float", "value" ); |
| 1955 | func->doc = "Set jet delay."; | 1955 | func->doc = "set jet delay."; |
| 1956 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1956 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1957 | | 1957 | |
| 1958 | func = make_new_mfun( "float", "jetDelay", Flute_cget_jetDelay ); //! jet delay | 1958 | func = make_new_mfun( "float", "jetDelay", Flute_cget_jetDelay ); //! jet delay |
| 1959 | func->doc = "Get jet delay."; | 1959 | func->doc = "get jet delay."; |
| 1960 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1960 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1961 | | 1961 | |
| 1962 | func = make_new_mfun( "float", "endReflection", Flute_ctrl_endReflection ); //! end reflection | 1962 | func = make_new_mfun( "float", "endReflection", Flute_ctrl_endReflection ); //! end reflection |
| 1963 | func->add_arg( "float", "value" ); | 1963 | func->add_arg( "float", "value" ); |
| 1964 | func->doc = "Set end reflection."; | 1964 | func->doc = "set end reflection."; |
| 1965 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1965 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1966 | | 1966 | |
| 1967 | func = make_new_mfun( "float", "endReflection", Flute_cget_endReflection ); //! end reflection | 1967 | func = make_new_mfun( "float", "endReflection", Flute_cget_endReflection ); //! end reflection |
| 1968 | func->doc = "Get end reflection."; | 1968 | func->doc = "get end reflection."; |
| 1969 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1969 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1970 | | 1970 | |
| 1971 | func = make_new_mfun( "float", "noiseGain", Flute_ctrl_noiseGain ); //! noiseGain | 1971 | func = make_new_mfun( "float", "noiseGain", Flute_ctrl_noiseGain ); //! noiseGain |
| 1972 | func->add_arg( "float", "value" ); | 1972 | func->add_arg( "float", "value" ); |
| 1973 | func->doc = "Set noise component gain, [0.0-1.0]."; | 1973 | func->doc = "set noise component gain, [0.0-1.0]."; |
| 1974 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1974 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1975 | | 1975 | |
| 1976 | func = make_new_mfun( "float", "noiseGain", Flute_cget_noiseGain ); //! noiseGain | 1976 | func = make_new_mfun( "float", "noiseGain", Flute_cget_noiseGain ); //! noiseGain |
| 1977 | func->doc = "Get noise component gain, [0.0-1.0]."; | 1977 | func->doc = "get noise component gain, [0.0-1.0]."; |
| 1978 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1978 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1979 | | 1979 | |
| 1980 | func = make_new_mfun( "float", "vibratoFreq", Flute_ctrl_vibratoFreq ); //! vibratoFreq | 1980 | func = make_new_mfun( "float", "vibratoFreq", Flute_ctrl_vibratoFreq ); //! vibratoFreq |
| 1981 | func->add_arg( "float", "value" ); | 1981 | func->add_arg( "float", "value" ); |
| 1982 | func->doc = "Set vibrato frequency (Hz)."; | 1982 | func->doc = "set vibrato frequency (Hz)."; |
| 1983 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1983 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1984 | | 1984 | |
| 1985 | func = make_new_mfun( "float", "vibratoFreq", Flute_cget_vibratoFreq ); //! vibratoFreq | 1985 | func = make_new_mfun( "float", "vibratoFreq", Flute_cget_vibratoFreq ); //! vibratoFreq |
| 1986 | func->doc = "Get vibrato frequency (Hz)."; | 1986 | func->doc = "get vibrato frequency (Hz)."; |
| 1987 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1987 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1988 | | 1988 | |
| 1989 | func = make_new_mfun( "float", "vibratoGain", Flute_ctrl_vibratoGain ); //! vibratoGain | 1989 | func = make_new_mfun( "float", "vibratoGain", Flute_ctrl_vibratoGain ); //! vibratoGain |
| 1990 | func->add_arg( "float", "value" ); | 1990 | func->add_arg( "float", "value" ); |
| 1991 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 1991 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 1992 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1992 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1993 | | 1993 | |
| 1994 | func = make_new_mfun( "float", "vibratoGain", Flute_cget_vibratoGain ); //! vibratoGain | 1994 | func = make_new_mfun( "float", "vibratoGain", Flute_cget_vibratoGain ); //! vibratoGain |
| 1995 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 1995 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 1996 | if( !type_engine_import_mfun( env, func ) ) goto error; | 1996 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 1997 | | 1997 | |
| 1998 | func = make_new_mfun( "float", "pressure", Flute_ctrl_pressure ); //! pressure | 1998 | func = make_new_mfun( "float", "pressure", Flute_ctrl_pressure ); //! pressure |
| 1999 | func->add_arg( "float", "value" ); | 1999 | func->add_arg( "float", "value" ); |
| 2000 | func->doc = "Set pressure, [0.0-1.0]."; | 2000 | func->doc = "set pressure, [0.0-1.0]."; |
| 2001 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2001 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2002 | | 2002 | |
| 2003 | func = make_new_mfun( "float", "pressure", Flute_cget_pressure ); //! pressure | 2003 | func = make_new_mfun( "float", "pressure", Flute_cget_pressure ); //! pressure |
| 2004 | func->doc = "Get pressure, [0.0-1.0]."; | 2004 | func->doc = "get pressure, [0.0-1.0]."; |
| 2005 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2005 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2006 | | 2006 | |
| 2007 | // end the class import | 2007 | // end the class import |
| @@ -2012,9 +2012,9 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 2012 | // begin Mandolin ugen | 2012 | // begin Mandolin ugen |
| 2013 | //------------------------------------------------------------------------ | 2013 | //------------------------------------------------------------------------ |
| 2014 | | 2014 | |
| 2015 | doc = "This class inherits from PluckTwo and uses 'commuted synthesis' techniques to model a mandolin instrument.\n\ | 2015 | doc = "inherits from PluckTwo and uses 'commuted synthesis' techniques to model a mandolin instrument.\n\ |
| 2016 | \n\ | 2016 | \n\ |
| 2017 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others. Commuted Synthesis, in particular, is covered by patents, granted, pending, and/or applied-for. All are assigned to the Board of Trustees, Stanford University. For information, contact the Office of Technology Licensing, Stanford University.\n\ | 2017 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others. Commuted Synthesis, in particular, is covered by patents, granted, pending, and/or applied-for. All are assigned to the Board of Trustees, Stanford University. For information, contact the Office of Technology Licensing, Stanford University.\n\ |
| 2018 | \n\ | 2018 | \n\ |
| 2019 | Control Change Numbers:\n\ | 2019 | Control Change Numbers:\n\ |
| 2020 | \n\ | 2020 | \n\ |
| @@ -2041,57 +2041,57 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 20 unmodified lines |
| 2041 | | 2041 | |
| 2042 | func = make_new_mfun( "float", "pluck", Mandolin_ctrl_pluck ); //! pluck string with given amplitude | 2042 | func = make_new_mfun( "float", "pluck", Mandolin_ctrl_pluck ); //! pluck string with given amplitude |
| 2043 | func->add_arg( "float", "value" ); | 2043 | func->add_arg( "float", "value" ); |
| 2044 | func->doc = "Pluck instrument, [0.0-1.0]."; | 2044 | func->doc = "pluck the instrument, [0.0-1.0]."; |
| 2045 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2045 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2046 | | 2046 | |
| 2047 | func = make_new_mfun( "float", "pluckPos", Mandolin_ctrl_pluckPos ); //! set pluck position ( 0-1) along string | 2047 | func = make_new_mfun( "float", "pluckPos", Mandolin_ctrl_pluckPos ); //! set pluck position ( 0-1) along string |
| 2048 | func->add_arg( "float", "value" ); | 2048 | func->add_arg( "float", "value" ); |
| 2049 | func->doc = "Set pluck position, [0.0-1.0]."; | 2049 | func->doc = "set pluck position, [0.0-1.0]."; |
| 2050 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2050 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2051 | | 2051 | |
| 2052 | func = make_new_mfun( "float", "pluckPos", Mandolin_cget_pluckPos ); //! get pluck position ( 0-1) along string | 2052 | func = make_new_mfun( "float", "pluckPos", Mandolin_cget_pluckPos ); //! get pluck position ( 0-1) along string |
| 2053 | func->doc = "Get pluck position, [0.0-1.0]."; | 2053 | func->doc = "get pluck position, [0.0-1.0]."; |
| 2054 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2054 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2055 | | 2055 | |
| 2056 | func = make_new_mfun( "float", "bodySize", Mandolin_ctrl_bodySize ); //! modify instrument size | 2056 | func = make_new_mfun( "float", "bodySize", Mandolin_ctrl_bodySize ); //! modify instrument size |
| 2057 | func->add_arg( "float", "value" ); | 2057 | func->add_arg( "float", "value" ); |
| 2058 | func->doc = "Set body size (percentage)."; | 2058 | func->doc = "set body size (percentage)."; |
| 2059 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2059 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2060 | | 2060 | |
| 2061 | func = make_new_mfun( "float", "bodySize", Mandolin_cget_bodySize ); //! modify instrument size | 2061 | func = make_new_mfun( "float", "bodySize", Mandolin_cget_bodySize ); //! modify instrument size |
| 2062 | func->doc = "Get body size (percentage)."; | 2062 | func->doc = "get body size (percentage)."; |
| 2063 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2063 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2064 | | 2064 | |
| 2065 | func = make_new_mfun( "float", "stringDamping", Mandolin_ctrl_stringDamping ); //! control string damping | 2065 | func = make_new_mfun( "float", "stringDamping", Mandolin_ctrl_stringDamping ); //! control string damping |
| 2066 | func->add_arg( "float", "value" ); | 2066 | func->add_arg( "float", "value" ); |
| 2067 | func->doc = "Set string damping, [0.0-1.0]."; | 2067 | func->doc = "set string damping, [0.0-1.0]."; |
| 2068 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2068 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2069 | | 2069 | |
| 2070 | func = make_new_mfun( "float", "stringDamping", Mandolin_cget_stringDamping ); //! control string damping | 2070 | func = make_new_mfun( "float", "stringDamping", Mandolin_cget_stringDamping ); //! control string damping |
| 2071 | func->doc = "Get string damping, [0.0-1.0]."; | 2071 | func->doc = "get string damping, [0.0-1.0]."; |
| 2072 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2072 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2073 | | 2073 | |
| 2074 | func = make_new_mfun( "float", "stringDetune", Mandolin_ctrl_stringDetune ); //! control detuning of string pair | 2074 | func = make_new_mfun( "float", "stringDetune", Mandolin_ctrl_stringDetune ); //! control detuning of string pair |
| 2075 | func->add_arg( "float", "value" ); | 2075 | func->add_arg( "float", "value" ); |
| 2076 | func->doc = "Set detuning of string pair, [0.0-1.0]."; | 2076 | func->doc = "set detuning of string pair, [0.0-1.0]."; |
| 2077 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2077 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2078 | | 2078 | |
| 2079 | func = make_new_mfun( "float", "stringDetune", Mandolin_cget_stringDetune ); //! control detuning of string pair | 2079 | func = make_new_mfun( "float", "stringDetune", Mandolin_cget_stringDetune ); //! control detuning of string pair |
| 2080 | func->doc = "Get detuning of string pair, [0.0-1.0]."; | 2080 | func->doc = "get detuning of string pair, [0.0-1.0]."; |
| 2081 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2081 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2082 | | 2082 | |
| 2083 | func = make_new_mfun( "float", "afterTouch", Mandolin_ctrl_afterTouch ); //! aftertouch | 2083 | func = make_new_mfun( "float", "afterTouch", Mandolin_ctrl_afterTouch ); //! aftertouch |
| 2084 | func->add_arg( "float", "value" ); | 2084 | func->add_arg( "float", "value" ); |
| 2085 | func->doc = "Set aftertouch (currently unsupported)."; | 2085 | func->doc = "set aftertouch (currently unsupported)."; |
| 2086 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2086 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2087 | | 2087 | |
| 2088 | func = make_new_mfun( "string", "bodyIR", Mandolin_ctrl_bodyIR ); //! read body impulse response | 2088 | func = make_new_mfun( "string", "bodyIR", Mandolin_ctrl_bodyIR ); //! read body impulse response |
| 2089 | func->add_arg( "string", "path" ); | 2089 | func->add_arg( "string", "path" ); |
| 2090 | func->doc = "Set body impulse response."; | 2090 | func->doc = "set body impulse response."; |
| 2091 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2091 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2092 | | 2092 | |
| 2093 | func = make_new_mfun( "string", "bodyIR", Mandolin_cget_bodyIR ); //! get path | 2093 | func = make_new_mfun( "string", "bodyIR", Mandolin_cget_bodyIR ); //! get path |
| 2094 | func->doc = "Get body impulse response."; | 2094 | func->doc = "get body impulse response."; |
| 2095 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2095 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2096 | | 2096 | |
| 2097 | // end the class import | 2097 | // end the class import |
| @@ -2102,7 +2102,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 2102 | // begin ModalBar ugen | 2102 | // begin ModalBar ugen |
| 2103 | //------------------------------------------------------------------------ | 2103 | //------------------------------------------------------------------------ |
| 2104 | | 2104 | |
| 2105 | doc = "This class implements a number of different struck bar instruments. It inherits from the Modal class.\n\ | 2105 | doc = "a suite of struck bar instruments. It inherits from the Modal class.\n\ |
| 2106 | \n\ | 2106 | \n\ |
| 2107 | Control Change Numbers:\n\ | 2107 | Control Change Numbers:\n\ |
| 2108 | \n\ | 2108 | \n\ |
| @@ -2139,125 +2139,125 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 30 unmodified lines |
| 2139 | | 2139 | |
| 2140 | func = make_new_mfun( "float", "strike", ModalBar_ctrl_strike ); //! strike bar | 2140 | func = make_new_mfun( "float", "strike", ModalBar_ctrl_strike ); //! strike bar |
| 2141 | func->add_arg( "float", "value" ); | 2141 | func->add_arg( "float", "value" ); |
| 2142 | func->doc = "Strike bar, [0.0-1.0]."; | 2142 | func->doc = "strike bar, [0.0-1.0]."; |
| 2143 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2143 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2144 | | 2144 | |
| 2145 | func = make_new_mfun( "float", "damp", ModalBar_ctrl_damp ); //! damp bar | 2145 | func = make_new_mfun( "float", "damp", ModalBar_ctrl_damp ); //! damp bar |
| 2146 | func->add_arg( "float", "value" ); | 2146 | func->add_arg( "float", "value" ); |
| 2147 | func->doc = "Damp bar, [0.0-1.0]."; | 2147 | func->doc = "damp bar, [0.0-1.0]."; |
| 2148 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2148 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2149 | | 2149 | |
| 2150 | func = make_new_mfun( "float", "clear", ModalBar_ctrl_clear ); //! clear | 2150 | func = make_new_mfun( "float", "clear", ModalBar_ctrl_clear ); //! clear |
| 2151 | func->add_arg( "float", "value" ); | 2151 | func->add_arg( "float", "value" ); |
| 2152 | func->doc = "Clear instrument."; | 2152 | func->doc = "clear instrument."; |
| 2153 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2153 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2154 | | 2154 | |
| 2155 | func = make_new_mfun( "int", "preset", ModalBar_ctrl_preset ); //! choose preset | 2155 | func = make_new_mfun( "int", "preset", ModalBar_ctrl_preset ); //! choose preset |
| 2156 | func->add_arg( "int", "value" ); | 2156 | func->add_arg( "int", "value" ); |
| 2157 | func->doc = "Set preset (see above)."; | 2157 | func->doc = "set preset (see above)."; |
| 2158 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2158 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2159 | | 2159 | |
| 2160 | func = make_new_mfun( "int", "preset", ModalBar_cget_preset ); //! choose preset | 2160 | func = make_new_mfun( "int", "preset", ModalBar_cget_preset ); //! choose preset |
| 2161 | func->doc = "Get preset."; | 2161 | func->doc = "get preset."; |
| 2162 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2162 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2163 | | 2163 | |
| 2164 | func = make_new_mfun( "float", "stickHardness", ModalBar_ctrl_stickHardness ); //! set stickHardness | 2164 | func = make_new_mfun( "float", "stickHardness", ModalBar_ctrl_stickHardness ); //! set stickHardness |
| 2165 | func->add_arg( "float", "value" ); | 2165 | func->add_arg( "float", "value" ); |
| 2166 | func->doc = "Set stick hardness, [0.0-1.0]."; | 2166 | func->doc = "set stick hardness, [0.0-1.0]."; |
| 2167 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2167 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2168 | | 2168 | |
| 2169 | func = make_new_mfun( "float", "stickHardness", ModalBar_cget_stickHardness ); //! set stickHardness | 2169 | func = make_new_mfun( "float", "stickHardness", ModalBar_cget_stickHardness ); //! set stickHardness |
| 2170 | func->doc = "Get stick hardness, [0.0-1.0]"; | 2170 | func->doc = "get stick hardness, [0.0-1.0]"; |
| 2171 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2171 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2172 | | 2172 | |
| 2173 | func = make_new_mfun( "float", "strikePosition", ModalBar_ctrl_strikePosition ); //! set strikePosition | 2173 | func = make_new_mfun( "float", "strikePosition", ModalBar_ctrl_strikePosition ); //! set strikePosition |
| 2174 | func->add_arg( "float", "value" ); | 2174 | func->add_arg( "float", "value" ); |
| 2175 | func->doc = "Set strike position, [0.0-1.0]."; | 2175 | func->doc = "set strike position, [0.0-1.0]."; |
| 2176 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2176 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2177 | | 2177 | |
| 2178 | func = make_new_mfun( "float", "strikePosition", ModalBar_cget_strikePosition ); //! set strikePosition | 2178 | func = make_new_mfun( "float", "strikePosition", ModalBar_cget_strikePosition ); //! set strikePosition |
| 2179 | func->doc = "Get strike position, [0.0-1.0]."; | 2179 | func->doc = "get strike position, [0.0-1.0]."; |
| 2180 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2180 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2181 | | 2181 | |
| 2182 | func = make_new_mfun( "float", "vibratoGain", ModalBar_ctrl_vibratoGain ); //! set vibratoGain | 2182 | func = make_new_mfun( "float", "vibratoGain", ModalBar_ctrl_vibratoGain ); //! set vibratoGain |
| 2183 | func->add_arg( "float", "value" ); | 2183 | func->add_arg( "float", "value" ); |
| 2184 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 2184 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 2185 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2185 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2186 | | 2186 | |
| 2187 | func = make_new_mfun( "float", "vibratoGain", ModalBar_cget_vibratoGain ); //! set vibratoGain | 2187 | func = make_new_mfun( "float", "vibratoGain", ModalBar_cget_vibratoGain ); //! set vibratoGain |
| 2188 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 2188 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 2189 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2189 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2190 | | 2190 | |
| 2191 | func = make_new_mfun( "float", "vibratoFreq", ModalBar_ctrl_vibratoFreq ); //! set vibratoFreq | 2191 | func = make_new_mfun( "float", "vibratoFreq", ModalBar_ctrl_vibratoFreq ); //! set vibratoFreq |
| 2192 | func->add_arg( "float", "value" ); | 2192 | func->add_arg( "float", "value" ); |
| 2193 | func->doc = "Set vibrato frequency (Hz)."; | 2193 | func->doc = "set vibrato frequency (Hz)."; |
| 2194 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2194 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2195 | | 2195 | |
| 2196 | func = make_new_mfun( "float", "vibratoFreq", ModalBar_cget_vibratoFreq ); //! set vibratoFreq | 2196 | func = make_new_mfun( "float", "vibratoFreq", ModalBar_cget_vibratoFreq ); //! set vibratoFreq |
| 2197 | func->doc = "Get vibrato frequency (Hz)."; | 2197 | func->doc = "get vibrato frequency (Hz)."; |
| 2198 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2198 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2199 | | 2199 | |
| 2200 | func = make_new_mfun( "float", "directGain", ModalBar_ctrl_directGain ); //! set directGain | 2200 | func = make_new_mfun( "float", "directGain", ModalBar_ctrl_directGain ); //! set directGain |
| 2201 | func->add_arg( "float", "value" ); | 2201 | func->add_arg( "float", "value" ); |
| 2202 | func->doc = "Set direct gain, [0.0-1.0]."; | 2202 | func->doc = "set direct gain, [0.0-1.0]."; |
| 2203 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2203 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2204 | | 2204 | |
| 2205 | func = make_new_mfun( "float", "directGain", ModalBar_cget_directGain ); //! set directGain | 2205 | func = make_new_mfun( "float", "directGain", ModalBar_cget_directGain ); //! set directGain |
| 2206 | func->doc = "Get direct gain, [0.0-1.0]."; | 2206 | func->doc = "get direct gain, [0.0-1.0]."; |
| 2207 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2207 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2208 | | 2208 | |
| 2209 | func = make_new_mfun( "float", "masterGain", ModalBar_ctrl_masterGain ); //! set masterGain | 2209 | func = make_new_mfun( "float", "masterGain", ModalBar_ctrl_masterGain ); //! set masterGain |
| 2210 | func->add_arg( "float", "value" ); | 2210 | func->add_arg( "float", "value" ); |
| 2211 | func->doc = "Set master gain, [0.0-1.0]."; | 2211 | func->doc = "set master gain, [0.0-1.0]."; |
| 2212 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2212 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2213 | | 2213 | |
| 2214 | func = make_new_mfun( "float", "masterGain", ModalBar_cget_masterGain ); //! set masterGain | 2214 | func = make_new_mfun( "float", "masterGain", ModalBar_cget_masterGain ); //! set masterGain |
| 2215 | func->doc = "Get master gain, [0.0-1.0]."; | 2215 | func->doc = "get master gain, [0.0-1.0]."; |
| 2216 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2216 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2217 | | 2217 | |
| 2218 | func = make_new_mfun( "int", "mode", ModalBar_ctrl_mode ); //! choose mode | 2218 | func = make_new_mfun( "int", "mode", ModalBar_ctrl_mode ); //! choose mode |
| 2219 | func->add_arg( "int", "value" ); | 2219 | func->add_arg( "int", "value" ); |
| 2220 | func->doc = "Set mode."; | 2220 | func->doc = "set mode."; |
| 2221 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2221 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2222 | | 2222 | |
| 2223 | func = make_new_mfun( "int", "mode", ModalBar_cget_mode ); //! choose mode | 2223 | func = make_new_mfun( "int", "mode", ModalBar_cget_mode ); //! choose mode |
| 2224 | func->doc = "Get mode."; | 2224 | func->doc = "get mode."; |
| 2225 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2225 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2226 | | 2226 | |
| 2227 | func = make_new_mfun( "float", "modeRatio", ModalBar_ctrl_modeRatio ); //! mode edit (modeRatio) | 2227 | func = make_new_mfun( "float", "modeRatio", ModalBar_ctrl_modeRatio ); //! mode edit (modeRatio) |
| 2228 | func->add_arg( "float", "value" ); | 2228 | func->add_arg( "float", "value" ); |
| 2229 | func->doc = "Set ratio for selected mode."; | 2229 | func->doc = "set ratio for selected mode."; |
| 2230 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2230 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2231 | | 2231 | |
| 2232 | func = make_new_mfun( "float", "modeRatio", ModalBar_cget_modeRatio ); //! mode edit (modeRatio) | 2232 | func = make_new_mfun( "float", "modeRatio", ModalBar_cget_modeRatio ); //! mode edit (modeRatio) |
| 2233 | func->doc = "Get ratio for selected mode."; | 2233 | func->doc = "get ratio for selected mode."; |
| 2234 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2234 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2235 | | 2235 | |
| 2236 | func = make_new_mfun( "float", "modeRadius", ModalBar_ctrl_modeRadius ); //! mode edit (modeRadius) | 2236 | func = make_new_mfun( "float", "modeRadius", ModalBar_ctrl_modeRadius ); //! mode edit (modeRadius) |
| 2237 | func->add_arg( "float", "value" ); | 2237 | func->add_arg( "float", "value" ); |
| 2238 | func->doc = "Set radius for selected mode, [0.0-1.0]."; | 2238 | func->doc = "set radius for selected mode, [0.0-1.0]."; |
| 2239 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2239 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2240 | | 2240 | |
| 2241 | func = make_new_mfun( "float", "modeRadius", ModalBar_cget_modeRadius ); //! mode edit (modeRadius) | 2241 | func = make_new_mfun( "float", "modeRadius", ModalBar_cget_modeRadius ); //! mode edit (modeRadius) |
| 2242 | func->doc = "Get radius for selected mode, [0.0-1.0]."; | 2242 | func->doc = "get radius for selected mode, [0.0-1.0]."; |
| 2243 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2243 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2244 | | 2244 | |
| 2245 | func = make_new_mfun( "float", "modeGain", ModalBar_ctrl_modeGain ); //! mode edit (modeGain) | 2245 | func = make_new_mfun( "float", "modeGain", ModalBar_ctrl_modeGain ); //! mode edit (modeGain) |
| 2246 | func->add_arg( "float", "value" ); | 2246 | func->add_arg( "float", "value" ); |
| 2247 | func->doc = "Set gain for selected mode, [0.0-1.0]."; | 2247 | func->doc = "set gain for selected mode, [0.0-1.0]."; |
| 2248 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2248 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2249 | | 2249 | |
| 2250 | func = make_new_mfun( "float", "modeGain", ModalBar_cget_modeGain ); //! mode edit (modeGain) | 2250 | func = make_new_mfun( "float", "modeGain", ModalBar_cget_modeGain ); //! mode edit (modeGain) |
| 2251 | func->doc = "Get gain for selected mode, [0.0-1.0]."; | 2251 | func->doc = "get gain for selected mode, [0.0-1.0]."; |
| 2252 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2252 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2253 | | 2253 | |
| 2254 | func = make_new_mfun( "float", "volume", ModalBar_ctrl_volume ); //! volume | 2254 | func = make_new_mfun( "float", "volume", ModalBar_ctrl_volume ); //! volume |
| 2255 | func->add_arg( "float", "value" ); | 2255 | func->add_arg( "float", "value" ); |
| 2256 | func->doc = "Set volume, [0.0-1.0]."; | 2256 | func->doc = "set volume, [0.0-1.0]."; |
| 2257 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2257 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2258 | | 2258 | |
| 2259 | func = make_new_mfun( "float", "volume", ModalBar_cget_volume ); //! volume | 2259 | func = make_new_mfun( "float", "volume", ModalBar_cget_volume ); //! volume |
| 2260 | func->doc = "Get volume, [0.0-1.0]."; | 2260 | func->doc = "get volume, [0.0-1.0]."; |
| 2261 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2261 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2262 | | 2262 | |
| 2263 | // end the class import | 2263 | // end the class import |
| @@ -2268,7 +2268,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 2268 | // begin Moog ugen | 2268 | // begin Moog ugen |
| 2269 | //------------------------------------------------------------------------ | 2269 | //------------------------------------------------------------------------ |
| 2270 | | 2270 | |
| 2271 | doc = "This instrument uses one attack wave, one looped wave, and an ADSR envelope (inherited from the Sampler class) and adds two sweepable formant (FormSwep) filters.\n\ | 2271 | doc = "a Moog instrument modeled using one attack wave, one looped wave, and an ADSR envelope (inherited from the Sampler class) and adds two sweepable formant (FormSwep) filters.\n\ |
| 2272 | \n\ | 2272 | \n\ |
| 2273 | Control Change Numbers:\n\ | 2273 | Control Change Numbers:\n\ |
| 2274 | \n\ | 2274 | \n\ |
| @@ -2295,88 +2295,88 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 20 unmodified lines |
| 2295 | | 2295 | |
| 2296 | func = make_new_mfun( "float", "lfoSpeed", Moog_ctrl_modSpeed ); //! modulation speed | 2296 | func = make_new_mfun( "float", "lfoSpeed", Moog_ctrl_modSpeed ); //! modulation speed |
| 2297 | func->add_arg( "float", "value" ); | 2297 | func->add_arg( "float", "value" ); |
| 2298 | func->doc = "Set LFO modulation speed."; | 2298 | func->doc = "set LFO modulation speed."; |
| 2299 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2299 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2300 | | 2300 | |
| 2301 | func = make_new_mfun( "float", "lfoSpeed", Moog_cget_modSpeed ); //! modulation speed | 2301 | func = make_new_mfun( "float", "lfoSpeed", Moog_cget_modSpeed ); //! modulation speed |
| 2302 | func->doc = "Get LFO modulation speed."; | 2302 | func->doc = "get LFO modulation speed."; |
| 2303 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2303 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2304 | | 2304 | |
| 2305 | func = make_new_mfun( "float", "lfoDepth", Moog_ctrl_modDepth ); //! modulation depth | 2305 | func = make_new_mfun( "float", "lfoDepth", Moog_ctrl_modDepth ); //! modulation depth |
| 2306 | func->add_arg( "float", "value" ); | 2306 | func->add_arg( "float", "value" ); |
| 2307 | func->doc = "Set LFO modulation depth."; | 2307 | func->doc = "set LFO modulation depth."; |
| 2308 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2308 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2309 | | 2309 | |
| 2310 | func = make_new_mfun( "float", "lfoDepth", Moog_cget_modDepth ); //! modulation depth | 2310 | func = make_new_mfun( "float", "lfoDepth", Moog_cget_modDepth ); //! modulation depth |
| 2311 | func->doc = "Get LFO modulation depth."; | 2311 | func->doc = "get LFO modulation depth."; |
| 2312 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2312 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2313 | | 2313 | |
| 2314 | func = make_new_mfun( "float", "modSpeed", Moog_ctrl_modSpeed ); //! modulation speed | 2314 | func = make_new_mfun( "float", "modSpeed", Moog_ctrl_modSpeed ); //! modulation speed |
| 2315 | func->add_arg( "float", "value" ); | 2315 | func->add_arg( "float", "value" ); |
| 2316 | func->doc = "Set modulation speed."; | 2316 | func->doc = "set modulation speed."; |
| 2317 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2317 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2318 | | 2318 | |
| 2319 | func = make_new_mfun( "float", "modSpeed", Moog_cget_modSpeed ); //! modulation speed | 2319 | func = make_new_mfun( "float", "modSpeed", Moog_cget_modSpeed ); //! modulation speed |
| 2320 | func->doc = "Get modulation speed."; | 2320 | func->doc = "get modulation speed."; |
| 2321 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2321 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2322 | | 2322 | |
| 2323 | func = make_new_mfun( "float", "modDepth", Moog_ctrl_modDepth ); //! modulation depth | 2323 | func = make_new_mfun( "float", "modDepth", Moog_ctrl_modDepth ); //! modulation depth |
| 2324 | func->add_arg( "float", "value" ); | 2324 | func->add_arg( "float", "value" ); |
| 2325 | func->doc = "Set modulation depth."; | 2325 | func->doc = "set modulation depth."; |
| 2326 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2326 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2327 | | 2327 | |
| 2328 | func = make_new_mfun( "float", "modDepth", Moog_cget_modDepth ); //! modulation depth | 2328 | func = make_new_mfun( "float", "modDepth", Moog_cget_modDepth ); //! modulation depth |
| 2329 | func->doc = "Get modulation depth."; | 2329 | func->doc = "get modulation depth."; |
| 2330 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2330 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2331 | | 2331 | |
| 2332 | func = make_new_mfun( "float", "filterQ", Moog_ctrl_filterQ ); //! filter Q value | 2332 | func = make_new_mfun( "float", "filterQ", Moog_ctrl_filterQ ); //! filter Q value |
| 2333 | func->add_arg( "float", "value" ); | 2333 | func->add_arg( "float", "value" ); |
| 2334 | func->doc = "Set filter Q value, [0.0-1.0]."; | 2334 | func->doc = "set filter Q value, [0.0-1.0]."; |
| 2335 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2335 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2336 | | 2336 | |
| 2337 | func = make_new_mfun( "float", "filterQ", Moog_cget_filterQ ); //! filter Q value | 2337 | func = make_new_mfun( "float", "filterQ", Moog_cget_filterQ ); //! filter Q value |
| 2338 | func->doc = "Get filter Q value, [0.0-1.0]."; | 2338 | func->doc = "get filter Q value, [0.0-1.0]."; |
| 2339 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2339 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2340 | | 2340 | |
| 2341 | func = make_new_mfun( "float", "filterSweepRate", Moog_ctrl_filterSweepRate ); //! filter sweep rate | 2341 | func = make_new_mfun( "float", "filterSweepRate", Moog_ctrl_filterSweepRate ); //! filter sweep rate |
| 2342 | func->add_arg( "float", "value" ); | 2342 | func->add_arg( "float", "value" ); |
| 2343 | func->doc = "Set filter sweep rate, [0.0-1.0]."; | 2343 | func->doc = "set filter sweep rate, [0.0-1.0]."; |
| 2344 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2344 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2345 | | 2345 | |
| 2346 | func = make_new_mfun( "float", "filterSweepRate", Moog_cget_filterSweepRate ); //! filter sweep rate | 2346 | func = make_new_mfun( "float", "filterSweepRate", Moog_cget_filterSweepRate ); //! filter sweep rate |
| 2347 | func->doc = "Get filter sweep rate, [0.0-1.0]."; | 2347 | func->doc = "get filter sweep rate, [0.0-1.0]."; |
| 2348 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2348 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2349 | | 2349 | |
| 2350 | func = make_new_mfun( "float", "afterTouch", Moog_ctrl_afterTouch ); // aftertouch | 2350 | func = make_new_mfun( "float", "afterTouch", Moog_ctrl_afterTouch ); // aftertouch |
| 2351 | func->add_arg( "float", "value" ); | 2351 | func->add_arg( "float", "value" ); |
| 2352 | func->doc = "Set aftertouch, [0.0-1.0]."; | 2352 | func->doc = "set aftertouch, [0.0-1.0]."; |
| 2353 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2353 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2354 | | 2354 | |
| 2355 | func = make_new_mfun( "float", "volume", Moog_ctrl_volume ); //! volume | 2355 | func = make_new_mfun( "float", "volume", Moog_ctrl_volume ); //! volume |
| 2356 | func->add_arg( "float", "value" ); | 2356 | func->add_arg( "float", "value" ); |
| 2357 | func->doc = "Set volume."; | 2357 | func->doc = "set volume."; |
| 2358 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2358 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2359 | | 2359 | |
| 2360 | func = make_new_mfun( "float", "volume", Moog_cget_volume ); //! volume | 2360 | func = make_new_mfun( "float", "volume", Moog_cget_volume ); //! volume |
| 2361 | func->doc = "Get volume."; | 2361 | func->doc = "get volume."; |
| 2362 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2362 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2363 | | 2363 | |
| 2364 | func = make_new_mfun( "float", "vibratoFreq", Moog_ctrl_vibratoFreq ); //! vibrato frequency | 2364 | func = make_new_mfun( "float", "vibratoFreq", Moog_ctrl_vibratoFreq ); //! vibrato frequency |
| 2365 | func->add_arg( "float", "value" ); | 2365 | func->add_arg( "float", "value" ); |
| 2366 | func->doc = "Set vibrato frequency (Hz)."; | 2366 | func->doc = "set vibrato frequency (Hz)."; |
| 2367 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2367 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2368 | | 2368 | |
| 2369 | func = make_new_mfun( "float", "vibratoFreq", Moog_cget_vibratoFreq ); //! vibrato frequency | 2369 | func = make_new_mfun( "float", "vibratoFreq", Moog_cget_vibratoFreq ); //! vibrato frequency |
| 2370 | func->doc = "Get vibrato frequency (Hz)."; | 2370 | func->doc = "get vibrato frequency (Hz)."; |
| 2371 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2371 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2372 | | 2372 | |
| 2373 | func = make_new_mfun( "float", "vibratoGain", Moog_ctrl_vibratoGain ); //! vibrato gain | 2373 | func = make_new_mfun( "float", "vibratoGain", Moog_ctrl_vibratoGain ); //! vibrato gain |
| 2374 | func->add_arg( "float", "value" ); | 2374 | func->add_arg( "float", "value" ); |
| 2375 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 2375 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 2376 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2376 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2377 | | 2377 | |
| 2378 | func = make_new_mfun( "float", "vibratoGain", Moog_cget_vibratoGain ); //! vibrato gain | 2378 | func = make_new_mfun( "float", "vibratoGain", Moog_cget_vibratoGain ); //! vibrato gain |
| 2379 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 2379 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 2380 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2380 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2381 | | 2381 | |
| 2382 | // end the class import | 2382 | // end the class import |
| @@ -2387,7 +2387,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 2387 | // begin Saxofony ugen | 2387 | // begin Saxofony ugen |
| 2388 | //------------------------------------------------------------------------ | 2388 | //------------------------------------------------------------------------ |
| 2389 | | 2389 | |
| 2390 | doc = "This class implements a 'hybrid' digital waveguide instrument that can generate a variety of wind-like sounds. It has also been referred to as the 'blowed string' model. The waveguide section is essentially that of a string, with one rigid and one lossy termination. The non-linear function is a reed table. The string can be 'blown' at any point between the terminations, though just as with strings, it is impossible to excite the system at either end. If the excitation is placed at the string mid-point, the sound is that of a clarinet. At points closer to the 'bridge', the sound is closer to that of a saxophone. See Scavone (2002) for more details.\n\ | 2390 | doc = "a 'hybrid' digital waveguide instrument that can generate a variety of wind-like sounds. It has also been referred to as the 'blowed string' model. The waveguide section is essentially that of a string, with one rigid and one lossy termination. The non-linear function is a reed table. The string can be 'blown' at any point between the terminations, though just as with strings, it is impossible to excite the system at either end. If the excitation is placed at the string mid-point, the sound is that of a clarinet. At points closer to the 'bridge', the sound is closer to that of a saxophone. See Scavone (2002) for more details.\n\ |
| 2391 | \n\ | 2391 | \n\ |
| 2392 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 2392 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 2393 | \n\ | 2393 | \n\ |
| @@ -2415,89 +2415,89 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 21 unmodified lines |
| 2415 | | 2415 | |
| 2416 | func = make_new_mfun( "float", "clear", Saxofony_ctrl_clear ); //! clear instrument | 2416 | func = make_new_mfun( "float", "clear", Saxofony_ctrl_clear ); //! clear instrument |
| 2417 | func->add_arg( "float", "value" ); | 2417 | func->add_arg( "float", "value" ); |
| 2418 | func->doc = "Clear instrument."; | 2418 | func->doc = "clear instrument."; |
| 2419 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2419 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2420 | | 2420 | |
| 2421 | func = make_new_mfun( "float", "startBlowing", Saxofony_ctrl_startBlowing ); //! note on | 2421 | func = make_new_mfun( "float", "startBlowing", Saxofony_ctrl_startBlowing ); //! note on |
| 2422 | func->add_arg( "float", "value" ); | 2422 | func->add_arg( "float", "value" ); |
| 2423 | func->doc = "Start blowing, [0.0-1.0]."; | 2423 | func->doc = "start blowing, [0.0-1.0]."; |
| 2424 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2424 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2425 | | 2425 | |
| 2426 | func = make_new_mfun( "float", "stopBlowing", Saxofony_ctrl_stopBlowing ); //! note on | 2426 | func = make_new_mfun( "float", "stopBlowing", Saxofony_ctrl_stopBlowing ); //! note on |
| 2427 | func->add_arg( "float", "value" ); | 2427 | func->add_arg( "float", "value" ); |
| 2428 | func->doc = "Stop blowing, [0.0-1.0]."; | 2428 | func->doc = "stop blowing, [0.0-1.0]."; |
| 2429 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2429 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2430 | | 2430 | |
| 2431 | func = make_new_mfun( "float", "rate", Saxofony_ctrl_rate ); //! rate | 2431 | func = make_new_mfun( "float", "rate", Saxofony_ctrl_rate ); //! rate |
| 2432 | func->add_arg( "float", "value" ); | 2432 | func->add_arg( "float", "value" ); |
| 2433 | func->doc = "Set rate of attack (seconds)."; | 2433 | func->doc = "set rate of attack (seconds)."; |
| 2434 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2434 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2435 | | 2435 | |
| 2436 | func = make_new_mfun( "float", "rate", Saxofony_cget_rate ); //! rate | 2436 | func = make_new_mfun( "float", "rate", Saxofony_cget_rate ); //! rate |
| 2437 | func->doc = "Get rate of attack (seconds)."; | 2437 | func->doc = "get rate of attack (seconds)."; |
| 2438 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2438 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2439 | | 2439 | |
| 2440 | func = make_new_mfun( "float", "stiffness", Saxofony_ctrl_reed ); //! stiffness | 2440 | func = make_new_mfun( "float", "stiffness", Saxofony_ctrl_reed ); //! stiffness |
| 2441 | func->add_arg( "float", "value" ); | 2441 | func->add_arg( "float", "value" ); |
| 2442 | func->doc = "Set reed stiffness, [0.0-1.0]."; | 2442 | func->doc = "set reed stiffness, [0.0-1.0]."; |
| 2443 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2443 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2444 | | 2444 | |
| 2445 | func = make_new_mfun( "float", "stiffness", Saxofony_cget_reed ); //! stiffness | 2445 | func = make_new_mfun( "float", "stiffness", Saxofony_cget_reed ); //! stiffness |
| 2446 | func->doc = "Get reed stiffness, [0.0-1.0]."; | 2446 | func->doc = "get reed stiffness, [0.0-1.0]."; |
| 2447 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2447 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2448 | | 2448 | |
| 2449 | func = make_new_mfun( "float", "aperture", Saxofony_ctrl_aperture ); //! aperture | 2449 | func = make_new_mfun( "float", "aperture", Saxofony_ctrl_aperture ); //! aperture |
| 2450 | func->add_arg( "float", "value" ); | 2450 | func->add_arg( "float", "value" ); |
| 2451 | func->doc = "Set reed aperture, [0.0-1.0]."; | 2451 | func->doc = "set reed aperture, [0.0-1.0]."; |
| 2452 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2452 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2453 | | 2453 | |
| 2454 | func = make_new_mfun( "float", "aperture", Saxofony_cget_aperture ); //! aperture | 2454 | func = make_new_mfun( "float", "aperture", Saxofony_cget_aperture ); //! aperture |
| 2455 | func->doc = "Get reed aperture, [0.0-1.0]."; | 2455 | func->doc = "get reed aperture, [0.0-1.0]."; |
| 2456 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2456 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2457 | | 2457 | |
| 2458 | func = make_new_mfun( "float", "noiseGain", Saxofony_ctrl_noiseGain ); //! noiseGain | 2458 | func = make_new_mfun( "float", "noiseGain", Saxofony_ctrl_noiseGain ); //! noiseGain |
| 2459 | func->add_arg( "float", "value" ); | 2459 | func->add_arg( "float", "value" ); |
| 2460 | func->doc = "Set noise component gain, [0.0-1.0]."; | 2460 | func->doc = "set noise component gain, [0.0-1.0]."; |
| 2461 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2461 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2462 | | 2462 | |
| 2463 | func = make_new_mfun( "float", "noiseGain", Saxofony_cget_noiseGain ); //! noiseGain | 2463 | func = make_new_mfun( "float", "noiseGain", Saxofony_cget_noiseGain ); //! noiseGain |
| 2464 | func->doc = "Get noise component gain, [0.0-1.0]."; | 2464 | func->doc = "get noise component gain, [0.0-1.0]."; |
| 2465 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2465 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2466 | | 2466 | |
| 2467 | func = make_new_mfun( "float", "vibratoGain", Saxofony_ctrl_vibratoGain ); //! vibratoGain | 2467 | func = make_new_mfun( "float", "vibratoGain", Saxofony_ctrl_vibratoGain ); //! vibratoGain |
| 2468 | func->add_arg( "float", "value" ); | 2468 | func->add_arg( "float", "value" ); |
| 2469 | func->doc = "Set vibrato gain, [0.0-1.0]."; | 2469 | func->doc = "set vibrato gain, [0.0-1.0]."; |
| 2470 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2470 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2471 | | 2471 | |
| 2472 | func = make_new_mfun( "float", "vibratoGain", Saxofony_cget_vibratoGain ); //! vibratoGain | 2472 | func = make_new_mfun( "float", "vibratoGain", Saxofony_cget_vibratoGain ); //! vibratoGain |
| 2473 | func->doc = "Get vibrato gain, [0.0-1.0]."; | 2473 | func->doc = "get vibrato gain, [0.0-1.0]."; |
| 2474 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2474 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2475 | | 2475 | |
| 2476 | func = make_new_mfun( "float", "vibratoFreq", Saxofony_ctrl_vibratoFreq ); //! vibratoFreq | 2476 | func = make_new_mfun( "float", "vibratoFreq", Saxofony_ctrl_vibratoFreq ); //! vibratoFreq |
| 2477 | func->add_arg( "float", "value" ); | 2477 | func->add_arg( "float", "value" ); |
| 2478 | func->doc = "Set vibrato frequency (Hz)."; | 2478 | func->doc = "set vibrato frequency (Hz)."; |
| 2479 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2479 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2480 | | 2480 | |
| 2481 | func = make_new_mfun( "float", "vibratoFreq", Saxofony_cget_vibratoFreq ); //! vibratoFreq | 2481 | func = make_new_mfun( "float", "vibratoFreq", Saxofony_cget_vibratoFreq ); //! vibratoFreq |
| 2482 | func->doc = "Get vibrato frequency (Hz)."; | 2482 | func->doc = "get vibrato frequency (Hz)."; |
| 2483 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2483 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2484 | | 2484 | |
| 2485 | func = make_new_mfun( "float", "blowPosition", Saxofony_ctrl_blowPosition ); //! blowPosition | 2485 | func = make_new_mfun( "float", "blowPosition", Saxofony_ctrl_blowPosition ); //! blowPosition |
| 2486 | func->add_arg( "float", "value" ); | 2486 | func->add_arg( "float", "value" ); |
| 2487 | func->doc = "Set lip stiffness, [0.0-1.0]."; | 2487 | func->doc = "set lip stiffness, [0.0-1.0]."; |
| 2488 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2488 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2489 | | 2489 | |
| 2490 | func = make_new_mfun( "float", "blowPosition", Saxofony_cget_blowPosition ); //! blowPosition | 2490 | func = make_new_mfun( "float", "blowPosition", Saxofony_cget_blowPosition ); //! blowPosition |
| 2491 | func->doc = "Get lip stiffness, [0.0-1.0]."; | 2491 | func->doc = "get lip stiffness, [0.0-1.0]."; |
| 2492 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2492 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2493 | | 2493 | |
| 2494 | func = make_new_mfun( "float", "pressure", Saxofony_ctrl_pressure ); //! pressure | 2494 | func = make_new_mfun( "float", "pressure", Saxofony_ctrl_pressure ); //! pressure |
| 2495 | func->add_arg( "float", "value" ); | 2495 | func->add_arg( "float", "value" ); |
| 2496 | func->doc = "Set pressure, [0.0-1.0]"; | 2496 | func->doc = "set pressure, [0.0-1.0]"; |
| 2497 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2497 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2498 | | 2498 | |
| 2499 | func = make_new_mfun( "float", "pressure", Saxofony_cget_pressure ); //! pressure | 2499 | func = make_new_mfun( "float", "pressure", Saxofony_cget_pressure ); //! pressure |
| 2500 | func->doc = "Get pressure, [0.0-1.0]"; | 2500 | func->doc = "get pressure, [0.0-1.0]"; |
| 2501 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2501 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2502 | | 2502 | |
| 2503 | // end the class import | 2503 | // end the class import |
| @@ -2560,66 +2560,66 @@ by Perry R. Cook, 1996 - 1999."; · 56 unmodified lines |
| 2560 | | 2560 | |
| 2561 | func = make_new_mfun( "int", "which", Shakers_ctrl_which ); //! select instrument | 2561 | func = make_new_mfun( "int", "which", Shakers_ctrl_which ); //! select instrument |
| 2562 | func->add_arg( "int", "value" ); | 2562 | func->add_arg( "int", "value" ); |
| 2563 | func->doc = "Set instrument, [0-22] (see above)."; | 2563 | func->doc = "set instrument, [0-22] (see above)."; |
| 2564 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2564 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2565 | | 2565 | |
| 2566 | func = make_new_mfun( "int", "which", Shakers_cget_which ); //! select instrument | 2566 | func = make_new_mfun( "int", "which", Shakers_cget_which ); //! select instrument |
| 2567 | func->doc = "Get instrument, [0-22] (see above)."; | 2567 | func->doc = "get instrument, [0-22] (see above)."; |
| 2568 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2568 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2569 | | 2569 | |
| 2570 | func = make_new_mfun( "int", "preset", Shakers_ctrl_which ); //! select instrument | 2570 | func = make_new_mfun( "int", "preset", Shakers_ctrl_which ); //! select instrument |
| 2571 | func->add_arg( "int", "value" ); | 2571 | func->add_arg( "int", "value" ); |
| 2572 | func->doc = "Set instrument, [0-22] (see above)."; | 2572 | func->doc = "set instrument, [0-22] (see above)."; |
| 2573 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2573 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2574 | | 2574 | |
| 2575 | func = make_new_mfun( "int", "preset", Shakers_cget_which ); //! select instrument | 2575 | func = make_new_mfun( "int", "preset", Shakers_cget_which ); //! select instrument |
| 2576 | func->doc = "Get instrument, [0-22] (see above)."; | 2576 | func->doc = "get instrument, [0-22] (see above)."; |
| 2577 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2577 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2578 | | 2578 | |
| 2579 | func = make_new_mfun( "float", "energy", Shakers_ctrl_energy ); //! energy | 2579 | func = make_new_mfun( "float", "energy", Shakers_ctrl_energy ); //! energy |
| 2580 | func->add_arg( "float", "value" ); | 2580 | func->add_arg( "float", "value" ); |
| 2581 | func->doc = "Set shake energy, [0.0-1.0]."; | 2581 | func->doc = "set shake energy, [0.0-1.0]."; |
| 2582 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2582 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2583 | | 2583 | |
| 2584 | func = make_new_mfun( "float", "energy", Shakers_cget_energy ); //! energy | 2584 | func = make_new_mfun( "float", "energy", Shakers_cget_energy ); //! energy |
| 2585 | func->doc = "Get shake energy, [0.0-1.0]."; | 2585 | func->doc = "get shake energy, [0.0-1.0]."; |
| 2586 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2586 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2587 | | 2587 | |
| 2588 | func = make_new_mfun( "float", "decay", Shakers_ctrl_decay ); //! decay | 2588 | func = make_new_mfun( "float", "decay", Shakers_ctrl_decay ); //! decay |
| 2589 | func->add_arg( "float", "value" ); | 2589 | func->add_arg( "float", "value" ); |
| 2590 | func->doc = "Set system decay, [0.0-1.0]."; | 2590 | func->doc = "set system decay, [0.0-1.0]."; |
| 2591 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2591 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2592 | | 2592 | |
| 2593 | func = make_new_mfun( "float", "decay", Shakers_cget_decay ); //! decay | 2593 | func = make_new_mfun( "float", "decay", Shakers_cget_decay ); //! decay |
| 2594 | func->doc = "Get system decay, [0.0-1.0]."; | 2594 | func->doc = "get system decay, [0.0-1.0]."; |
| 2595 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2595 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2596 | | 2596 | |
| 2597 | func = make_new_mfun( "float", "objects", Shakers_ctrl_objects ); //! objects | 2597 | func = make_new_mfun( "float", "objects", Shakers_ctrl_objects ); //! objects |
| 2598 | func->add_arg( "float", "value" ); | 2598 | func->add_arg( "float", "value" ); |
| 2599 | func->doc = "Set number of objects, [0.0-128.0]."; | 2599 | func->doc = "set number of objects, [0.0-128.0]."; |
| 2600 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2600 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2601 | | 2601 | |
| 2602 | func = make_new_mfun( "float", "objects", Shakers_cget_objects ); //! objects | 2602 | func = make_new_mfun( "float", "objects", Shakers_cget_objects ); //! objects |
| 2603 | func->doc = "Get number of objects, [0.0-128.0]."; | 2603 | func->doc = "get number of objects, [0.0-128.0]."; |
| 2604 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2604 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2605 | | 2605 | |
| 2606 | func = make_new_mfun( "float", "freq", Shakers_ctrl_freq ); //! frequency | 2606 | func = make_new_mfun( "float", "freq", Shakers_ctrl_freq ); //! frequency |
| 2607 | func->add_arg( "float", "value" ); | 2607 | func->add_arg( "float", "value" ); |
| 2608 | func->doc = "Set frequency (Hz)."; | 2608 | func->doc = "set frequency (Hz)."; |
| 2609 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2609 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2610 | | 2610 | |
| 2611 | func = make_new_mfun( "float", "freq", Shakers_cget_freq ); //! frequency | 2611 | func = make_new_mfun( "float", "freq", Shakers_cget_freq ); //! frequency |
| 2612 | func->doc = "Get frequency (Hz)."; | 2612 | func->doc = "get frequency (Hz)."; |
| 2613 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2613 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2614 | | 2614 | |
| 2615 | func = make_new_mfun( "float", "noteOn", Shakers_ctrl_noteOn ); //! note on | 2615 | func = make_new_mfun( "float", "noteOn", Shakers_ctrl_noteOn ); //! note on |
| 2616 | func->add_arg( "float", "value" ); | 2616 | func->add_arg( "float", "value" ); |
| 2617 | func->doc = "Trigger note on."; | 2617 | func->doc = "trigger note on."; |
| 2618 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2618 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2619 | | 2619 | |
| 2620 | func = make_new_mfun( "float", "noteOff", Shakers_ctrl_noteOff ); //! note off | 2620 | func = make_new_mfun( "float", "noteOff", Shakers_ctrl_noteOff ); //! note off |
| 2621 | func->add_arg( "float", "value" ); | 2621 | func->add_arg( "float", "value" ); |
| 2622 | func->doc = "Trigger note off."; | 2622 | func->doc = "trigger note off."; |
| 2623 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2623 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2624 | | 2624 | |
| 2625 | // end the class import | 2625 | // end the class import |
| @@ -2630,7 +2630,7 @@ by Perry R. Cook, 1996 - 1999."; · 4 unmodified lines |
| 2630 | // begin Sitar ugen | 2630 | // begin Sitar ugen |
| 2631 | //------------------------------------------------------------------------ | 2631 | //------------------------------------------------------------------------ |
| 2632 | | 2632 | |
| 2633 | doc = "This class implements a sitar plucked string physical model based on the Karplus-Strong algorithm.\n\ | 2633 | doc = "a sitar plucked string physical model based on the Karplus-Strong algorithm.\n\ |
| 2634 | \n\ | 2634 | \n\ |
| 2635 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others. There exist at least two patents, assigned to Stanford, bearing the names of Karplus and/or Strong.\n\ | 2635 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others. There exist at least two patents, assigned to Stanford, bearing the names of Karplus and/or Strong.\n\ |
| 2636 | \n\ | 2636 | \n\ |
| @@ -2648,12 +2648,12 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 11 unmodified lines |
| 2648 | | 2648 | |
| 2649 | func = make_new_mfun( "float", "pluck", Sitar_ctrl_pluck ); //! pluck | 2649 | func = make_new_mfun( "float", "pluck", Sitar_ctrl_pluck ); //! pluck |
| 2650 | func->add_arg( "float", "value" ); | 2650 | func->add_arg( "float", "value" ); |
| 2651 | func->doc = "Pluck string."; | 2651 | func->doc = "pluck string."; |
| 2652 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2652 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2653 | | 2653 | |
| 2654 | func = make_new_mfun( "float", "clear", Sitar_ctrl_clear ); | 2654 | func = make_new_mfun( "float", "clear", Sitar_ctrl_clear ); |
| 2655 | func->add_arg( "float", "value" ); | 2655 | func->add_arg( "float", "value" ); |
| 2656 | func->doc = "Clear instrument."; | 2656 | func->doc = "clear instrument."; |
| 2657 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2657 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2658 | | 2658 | |
| 2659 | // end the class import | 2659 | // end the class import |
| @@ -2664,7 +2664,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 2664 | // begin StifKarp ugen | 2664 | // begin StifKarp ugen |
| 2665 | //------------------------------------------------------------------------ | 2665 | //------------------------------------------------------------------------ |
| 2666 | | 2666 | |
| 2667 | doc = "This class implements a simple plucked string algorithm (Karplus Strong) with enhancements (Jaffe-Smith, Smith, and others), including string stiffness and pluck position controls. The stiffness is modeled with allpass filters.\n\ | 2667 | doc = "a simple plucked string algorithm (Karplus Strong) with enhancements (Jaffe-Smith, Smith, and others), including string stiffness and pluck position controls. The stiffness is modeled with allpass filters.\n\ |
| 2668 | \n\ | 2668 | \n\ |
| 2669 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ | 2669 | This is a digital waveguide model, making its use possibly subject to patents held by Stanford University, Yamaha, and others.\n\ |
| 2670 | \n\ | 2670 | \n\ |
| @@ -2690,48 +2690,48 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 19 unmodified lines |
| 2690 | | 2690 | |
| 2691 | func = make_new_mfun( "float", "pluck", StifKarp_ctrl_pluck ); //! pluck | 2691 | func = make_new_mfun( "float", "pluck", StifKarp_ctrl_pluck ); //! pluck |
| 2692 | func->add_arg( "float", "value" ); | 2692 | func->add_arg( "float", "value" ); |
| 2693 | func->doc = "Pluck string."; | 2693 | func->doc = "pluck string."; |
| 2694 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2694 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2695 | | 2695 | |
| 2696 | func = make_new_mfun( "float", "clear", StifKarp_ctrl_clear ); | 2696 | func = make_new_mfun( "float", "clear", StifKarp_ctrl_clear ); |
| 2697 | func->add_arg( "float", "value" ); | 2697 | func->add_arg( "float", "value" ); |
| 2698 | func->doc = "Clear instrument."; | 2698 | func->doc = "clear instrument."; |
| 2699 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2699 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2700 | | 2700 | |
| 2701 | func = make_new_mfun( "float", "pickupPosition", StifKarp_ctrl_pickupPosition ); | 2701 | func = make_new_mfun( "float", "pickupPosition", StifKarp_ctrl_pickupPosition ); |
| 2702 | func->add_arg( "float", "value" ); | 2702 | func->add_arg( "float", "value" ); |
| 2703 | func->doc = "Set pickup position, [0.0-1.0]."; | 2703 | func->doc = "set pickup position, [0.0-1.0]."; |
| 2704 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2704 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2705 | | 2705 | |
| 2706 | func = make_new_mfun( "float", "pickupPosition", StifKarp_cget_pickupPosition ); | 2706 | func = make_new_mfun( "float", "pickupPosition", StifKarp_cget_pickupPosition ); |
| 2707 | func->doc = "Get pickup position, [0.0-1.0]."; | 2707 | func->doc = "get pickup position, [0.0-1.0]."; |
| 2708 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2708 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2709 | | 2709 | |
| 2710 | func = make_new_mfun( "float", "stretch", StifKarp_ctrl_stretch ); | 2710 | func = make_new_mfun( "float", "stretch", StifKarp_ctrl_stretch ); |
| 2711 | func->add_arg( "float", "value" ); | 2711 | func->add_arg( "float", "value" ); |
| 2712 | func->doc = "Set string strech, [0.0-1.0]."; | 2712 | func->doc = "set string strech, [0.0-1.0]."; |
| 2713 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2713 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2714 | | 2714 | |
| 2715 | func = make_new_mfun( "float", "stretch", StifKarp_cget_stretch ); | 2715 | func = make_new_mfun( "float", "stretch", StifKarp_cget_stretch ); |
| 2716 | func->doc = "Get string strech, [0.0-1.0]."; | 2716 | func->doc = "get string strech, [0.0-1.0]."; |
| 2717 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2717 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2718 | | 2718 | |
| 2719 | func = make_new_mfun( "float", "sustain", StifKarp_ctrl_sustain ); | 2719 | func = make_new_mfun( "float", "sustain", StifKarp_ctrl_sustain ); |
| 2720 | func->add_arg( "float", "value" ); | 2720 | func->add_arg( "float", "value" ); |
| 2721 | func->doc = "Set string sustain, [0.0-1.0]."; | 2721 | func->doc = "set string sustain, [0.0-1.0]."; |
| 2722 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2722 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2723 | | 2723 | |
| 2724 | func = make_new_mfun( "float", "sustain", StifKarp_cget_sustain ); | 2724 | func = make_new_mfun( "float", "sustain", StifKarp_cget_sustain ); |
| 2725 | func->doc = "Get string sustain, [0.0-1.0]."; | 2725 | func->doc = "get string sustain, [0.0-1.0]."; |
| 2726 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2726 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2727 | | 2727 | |
| 2728 | func = make_new_mfun( "float", "baseLoopGain", StifKarp_ctrl_baseLoopGain ); | 2728 | func = make_new_mfun( "float", "baseLoopGain", StifKarp_ctrl_baseLoopGain ); |
| 2729 | func->add_arg( "float", "value" ); | 2729 | func->add_arg( "float", "value" ); |
| 2730 | func->doc = "Set base loop gain, [0.0-1.0]."; | 2730 | func->doc = "set base loop gain, [0.0-1.0]."; |
| 2731 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2731 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2732 | | 2732 | |
| 2733 | func = make_new_mfun( "float", "baseLoopGain", StifKarp_cget_baseLoopGain ); | 2733 | func = make_new_mfun( "float", "baseLoopGain", StifKarp_cget_baseLoopGain ); |
| 2734 | func->doc = "Get base loop gain, [0.0-1.0]."; | 2734 | func->doc = "get base loop gain, [0.0-1.0]."; |
| 2735 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2735 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2736 | | 2736 | |
| 2737 | | 2737 | |
| @@ -2743,7 +2743,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 2743 | // begin VoicForm ugen | 2743 | // begin VoicForm ugen |
| 2744 | //------------------------------------------------------------------------ | 2744 | //------------------------------------------------------------------------ |
| 2745 | | 2745 | |
| 2746 | doc = "This instrument contains an excitation singing wavetable (looping wave with random and periodic vibrato, smoothing on frequency, etc.), excitation noise, and four sweepable complex resonances.\n\ | 2746 | doc = "an instrument containing an excitation singing wavetable (looping wave with random and periodic vibrato, smoothing on frequency, etc.), excitation noise, and four sweepable complex resonances.\n\ |
| 2747 | \n\ | 2747 | \n\ |
| 2748 | Measured formant data is included, and enough data is there to support either parallel or cascade synthesis. In the floating point case cascade synthesis is the most natural so that's what you'll find here.\n\ | 2748 | Measured formant data is included, and enough data is there to support either parallel or cascade synthesis. In the floating point case cascade synthesis is the most natural so that's what you'll find here.\n\ |
| 2749 | \n\ | 2749 | \n\ |
| @@ -2780,93 +2780,93 @@ Phoneme Names:\n\ · 30 unmodified lines |
| 2780 | | 2780 | |
| 2781 | func = make_new_mfun( "string", "phoneme", VoicForm_ctrl_phoneme ); //! select phoneme ( above ) | 2781 | func = make_new_mfun( "string", "phoneme", VoicForm_ctrl_phoneme ); //! select phoneme ( above ) |
| 2782 | func->add_arg( "string", "value" ); | 2782 | func->add_arg( "string", "value" ); |
| 2783 | func->doc = "Set phoneme (see above)."; | 2783 | func->doc = "set phoneme (see above)."; |
| 2784 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2784 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2785 | | 2785 | |
| 2786 | func = make_new_mfun( "string", "phoneme", VoicForm_cget_phoneme ); //! select phoneme ( above ) | 2786 | func = make_new_mfun( "string", "phoneme", VoicForm_cget_phoneme ); //! select phoneme ( above ) |
| 2787 | func->doc = "Get phoneme (see above)."; | 2787 | func->doc = "get phoneme (see above)."; |
| 2788 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2788 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2789 | | 2789 | |
| 2790 | func = make_new_mfun( "float", "speak", VoicForm_ctrl_speak ); //! start singing | 2790 | func = make_new_mfun( "float", "speak", VoicForm_ctrl_speak ); //! start singing |
| 2791 | func->add_arg( "float", "value" ); | 2791 | func->add_arg( "float", "value" ); |
| 2792 | func->doc = "Start singing, [0.0-1.0]."; | 2792 | func->doc = "start singing, [0.0-1.0]."; |
| 2793 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2793 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2794 | | 2794 | |
| 2795 | func = make_new_mfun( "float", "quiet", VoicForm_ctrl_quiet ); //! stop singing | 2795 | func = make_new_mfun( "float", "quiet", VoicForm_ctrl_quiet ); //! stop singing |
| 2796 | func->add_arg( "float", "value" ); | 2796 | func->add_arg( "float", "value" ); |
| 2797 | func->doc = "Stop singing, [0.0-1.0]."; | 2797 | func->doc = "stop singing, [0.0-1.0]."; |
| 2798 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2798 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2799 | | 2799 | |
| 2800 | func = make_new_mfun( "float", "voiced", VoicForm_ctrl_voiced ); //! set mix for voiced component | 2800 | func = make_new_mfun( "float", "voiced", VoicForm_ctrl_voiced ); //! set mix for voiced component |
| 2801 | func->add_arg( "float", "value" ); | 2801 | func->add_arg( "float", "value" ); |
| 2802 | func->doc = "Set mix for voiced component, [0.0 - 1.0]."; | 2802 | func->doc = "set mix for voiced component, [0.0 - 1.0]."; |
| 2803 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2803 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2804 | | 2804 | |
| 2805 | func = make_new_mfun( "float", "voiced", VoicForm_cget_voiced ); //! set mix for voiced component | 2805 | func = make_new_mfun( "float", "voiced", VoicForm_cget_voiced ); //! set mix for voiced component |
| 2806 | func->doc = "Get mix for voiced component, [0.0 - 1.0]."; | 2806 | func->doc = "get mix for voiced component, [0.0 - 1.0]."; |
| 2807 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2807 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2808 | | 2808 | |
| 2809 | func = make_new_mfun( "float", "unVoiced", VoicForm_ctrl_unVoiced ); //! set mix for unvoiced component | 2809 | func = make_new_mfun( "float", "unVoiced", VoicForm_ctrl_unVoiced ); //! set mix for unvoiced component |
| 2810 | func->add_arg( "float", "value" ); | 2810 | func->add_arg( "float", "value" ); |
| 2811 | func->doc = "Set mix for unvoiced component, [0.0 - 1.0]."; | 2811 | func->doc = "set mix for unvoiced component, [0.0 - 1.0]."; |
| 2812 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2812 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2813 | | 2813 | |
| 2814 | func = make_new_mfun( "float", "unVoiced", VoicForm_cget_unVoiced ); //! set mix for unvoiced component | 2814 | func = make_new_mfun( "float", "unVoiced", VoicForm_cget_unVoiced ); //! set mix for unvoiced component |
| 2815 | func->doc = "Get mix for unvoiced component, [0.0 - 1.0]."; | 2815 | func->doc = "get mix for unvoiced component, [0.0 - 1.0]."; |
| 2816 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2816 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2817 | | 2817 | |
| 2818 | func = make_new_mfun( "float", "pitchSweepRate", VoicForm_ctrl_pitchSweepRate ); //! pitch sweep | 2818 | func = make_new_mfun( "float", "pitchSweepRate", VoicForm_ctrl_pitchSweepRate ); //! pitch sweep |
| 2819 | func->add_arg( "float", "value" ); | 2819 | func->add_arg( "float", "value" ); |
| 2820 | func->doc = "Set rate of pitch sweep, [0.0-1.0]."; | 2820 | func->doc = "set rate of pitch sweep, [0.0-1.0]."; |
| 2821 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2821 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2822 | | 2822 | |
| 2823 | func = make_new_mfun( "float", "pitchSweepRate", VoicForm_cget_pitchSweepRate ); //! pitch sweep | 2823 | func = make_new_mfun( "float", "pitchSweepRate", VoicForm_cget_pitchSweepRate ); //! pitch sweep |
| 2824 | func->doc = "Get rate of pitch sweep, [0.0-1.0]."; | 2824 | func->doc = "get rate of pitch sweep, [0.0-1.0]."; |
| 2825 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2825 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2826 | | 2826 | |
| 2827 | func = make_new_mfun( "float", "voiceMix", VoicForm_ctrl_voiceMix ); //! voiced/unvoiced mix | 2827 | func = make_new_mfun( "float", "voiceMix", VoicForm_ctrl_voiceMix ); //! voiced/unvoiced mix |
| 2828 | func->add_arg( "float", "value" ); | 2828 | func->add_arg( "float", "value" ); |
| 2829 | func->doc = "Set voiced/unvoiced mix, [0.0-1.0]."; | 2829 | func->doc = "set voiced/unvoiced mix, [0.0-1.0]."; |
| 2830 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2830 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2831 | | 2831 | |
| 2832 | func = make_new_mfun( "float", "voiceMix", VoicForm_cget_voiceMix ); //! voiced/unvoiced mix | 2832 | func = make_new_mfun( "float", "voiceMix", VoicForm_cget_voiceMix ); //! voiced/unvoiced mix |
| 2833 | func->doc = "Get voiced/unvoiced mix, [0.0-1.0]."; | 2833 | func->doc = "get voiced/unvoiced mix, [0.0-1.0]."; |
| 2834 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2834 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2835 | | 2835 | |
| 2836 | func = make_new_mfun( "int", "phonemeNum", VoicForm_ctrl_selPhoneme ); //! select phoneme by number | 2836 | func = make_new_mfun( "int", "phonemeNum", VoicForm_ctrl_selPhoneme ); //! select phoneme by number |
| 2837 | func->add_arg( "int", "value" ); | 2837 | func->add_arg( "int", "value" ); |
| 2838 | func->doc = "Set phoneme by number, [0.0-128.0]."; | 2838 | func->doc = "set phoneme by number, [0.0-128.0]."; |
| 2839 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2839 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2840 | | 2840 | |
| 2841 | func = make_new_mfun( "int", "phonemeNum", VoicForm_cget_selPhoneme ); //! select phoneme by number | 2841 | func = make_new_mfun( "int", "phonemeNum", VoicForm_cget_selPhoneme ); //! select phoneme by number |
| 2842 | func->doc = "Get phoneme by number, [0.0-128.0]."; | 2842 | func->doc = "get phoneme by number, [0.0-128.0]."; |
| 2843 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2843 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2844 | | 2844 | |
| 2845 | func = make_new_mfun( "float", "vibratoFreq", VoicForm_ctrl_vibratoFreq );//! vibrato | 2845 | func = make_new_mfun( "float", "vibratoFreq", VoicForm_ctrl_vibratoFreq );//! vibrato |
| 2846 | func->add_arg( "float", "value" ); | 2846 | func->add_arg( "float", "value" ); |
| 2847 | func->doc = "Set vibrato frequency (Hz)."; | 2847 | func->doc = "set vibrato frequency (Hz)."; |
| 2848 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2848 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2849 | | 2849 | |
| 2850 | func = make_new_mfun( "float", "vibratoFreq", VoicForm_cget_vibratoFreq );//! vibrato | 2850 | func = make_new_mfun( "float", "vibratoFreq", VoicForm_cget_vibratoFreq );//! vibrato |
| 2851 | func->doc = "Get vibrato frequency (Hz)."; | 2851 | func->doc = "get vibrato frequency (Hz)."; |
| 2852 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2852 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2853 | | 2853 | |
| 2854 | func = make_new_mfun( "float", "vibratoGain", VoicForm_ctrl_vibratoGain );//! vibrato depth | 2854 | func = make_new_mfun( "float", "vibratoGain", VoicForm_ctrl_vibratoGain );//! vibrato depth |
| 2855 | func->doc = "Set vibrato gain (Hz), [0.0-1.0]."; | 2855 | func->doc = "set vibrato gain (Hz), [0.0-1.0]."; |
| 2856 | func->add_arg( "float", "value" ); | 2856 | func->add_arg( "float", "value" ); |
| 2857 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2857 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2858 | | 2858 | |
| 2859 | func = make_new_mfun( "float", "vibratoGain", VoicForm_cget_vibratoGain );//! vibrato depth | 2859 | func = make_new_mfun( "float", "vibratoGain", VoicForm_cget_vibratoGain );//! vibrato depth |
| 2860 | func->doc = "Get vibrato gain (Hz), [0.0-1.0]."; | 2860 | func->doc = "get vibrato gain (Hz), [0.0-1.0]."; |
| 2861 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2861 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2862 | | 2862 | |
| 2863 | func = make_new_mfun( "float", "loudness", VoicForm_ctrl_loudness ); //! 'loudness' of voicee | 2863 | func = make_new_mfun( "float", "loudness", VoicForm_ctrl_loudness ); //! 'loudness' of voicee |
| 2864 | func->add_arg( "float", "value" ); | 2864 | func->add_arg( "float", "value" ); |
| 2865 | func->doc = "Set 'loudness' of voice, [0.0-1.0]."; | 2865 | func->doc = "set 'loudness' of voice, [0.0-1.0]."; |
| 2866 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2866 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2867 | | 2867 | |
| 2868 | func = make_new_mfun( "float", "loudness", VoicForm_cget_loudness ); //! 'loudness' of voicee | 2868 | func = make_new_mfun( "float", "loudness", VoicForm_cget_loudness ); //! 'loudness' of voicee |
| 2869 | func->doc = "Get 'loudness' of voice, [0.0-1.0]."; | 2869 | func->doc = "get 'loudness' of voice, [0.0-1.0]."; |
| 2870 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2870 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2871 | | 2871 | |
| 2872 | // end the class import | 2872 | // end the class import |
| @@ -2880,7 +2880,7 @@ Phoneme Names:\n\ · 7 unmodified lines |
| 2880 | // begin FM ugen | 2880 | // begin FM ugen |
| 2881 | //------------------------------------------------------------------------ | 2881 | //------------------------------------------------------------------------ |
| 2882 | | 2882 | |
| 2883 | doc = "This class controls an arbitrary number of waves and envelopes, determined via a constructor argument.\n\ | 2883 | doc = "this class controls an arbitrary number of waves and envelopes, determined via a constructor argument.\n\ |
| 2884 | \n\ | 2884 | \n\ |
| 2885 | Control Change Numbers:\n\ | 2885 | Control Change Numbers:\n\ |
| 2886 | \n\ | 2886 | \n\ |
| @@ -2909,47 +2909,47 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 22 unmodified lines |
| 2909 | | 2909 | |
| 2910 | func = make_new_mfun( "float", "lfoDepth", FM_ctrl_modDepth ); //!modulation Depth | 2910 | func = make_new_mfun( "float", "lfoDepth", FM_ctrl_modDepth ); //!modulation Depth |
| 2911 | func->add_arg( "float", "value" ); | 2911 | func->add_arg( "float", "value" ); |
| 2912 | func->doc = "Set modulation depth, [0.0-1.0]."; | 2912 | func->doc = "set modulation depth, [0.0-1.0]."; |
| 2913 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2913 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2914 | | 2914 | |
| 2915 | func = make_new_mfun( "float", "lfoDepth", FM_cget_modDepth ); //!modulation Depth | 2915 | func = make_new_mfun( "float", "lfoDepth", FM_cget_modDepth ); //!modulation Depth |
| 2916 | func->doc = "Get modulation depth, [0.0-1.0]."; | 2916 | func->doc = "get modulation depth, [0.0-1.0]."; |
| 2917 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2917 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2918 | | 2918 | |
| 2919 | func = make_new_mfun( "float", "lfoSpeed", FM_ctrl_modSpeed ); //!modulation Speed | 2919 | func = make_new_mfun( "float", "lfoSpeed", FM_ctrl_modSpeed ); //!modulation Speed |
| 2920 | func->add_arg( "float", "value" ); | 2920 | func->add_arg( "float", "value" ); |
| 2921 | func->doc = "Set modulation speed (Hz)."; | 2921 | func->doc = "set modulation speed (Hz)."; |
| 2922 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2922 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2923 | | 2923 | |
| 2924 | func = make_new_mfun( "float", "lfoSpeed", FM_cget_modSpeed ); //!modulation Speed | 2924 | func = make_new_mfun( "float", "lfoSpeed", FM_cget_modSpeed ); //!modulation Speed |
| 2925 | func->doc = "Get modulation speed (Hz)."; | 2925 | func->doc = "get modulation speed (Hz)."; |
| 2926 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2926 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2927 | | 2927 | |
| 2928 | func = make_new_mfun( "float", "afterTouch", FM_ctrl_afterTouch ); //!aftertouch | 2928 | func = make_new_mfun( "float", "afterTouch", FM_ctrl_afterTouch ); //!aftertouch |
| 2929 | func->add_arg( "float", "value" ); | 2929 | func->add_arg( "float", "value" ); |
| 2930 | func->doc = "Set aftertouch, [0.0-1.0]."; | 2930 | func->doc = "set aftertouch, [0.0-1.0]."; |
| 2931 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2931 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2932 | | 2932 | |
| 2933 | func = make_new_mfun( "float", "afterTouch", FM_cget_afterTouch ); //!aftertouch | 2933 | func = make_new_mfun( "float", "afterTouch", FM_cget_afterTouch ); //!aftertouch |
| 2934 | func->doc = "Get aftertouch, [0.0-1.0]."; | 2934 | func->doc = "get aftertouch, [0.0-1.0]."; |
| 2935 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2935 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2936 | | 2936 | |
| 2937 | func = make_new_mfun( "float", "controlOne", FM_ctrl_control1 ); //! FM control 1 | 2937 | func = make_new_mfun( "float", "controlOne", FM_ctrl_control1 ); //! FM control 1 |
| 2938 | func->add_arg( "float", "value" ); | 2938 | func->add_arg( "float", "value" ); |
| 2939 | func->doc = "Set control one [instrument specific]."; | 2939 | func->doc = "set control one [instrument specific]."; |
| 2940 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2940 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2941 | | 2941 | |
| 2942 | func = make_new_mfun( "float", "controlOne", FM_cget_control1 ); //! FM control 1 | 2942 | func = make_new_mfun( "float", "controlOne", FM_cget_control1 ); //! FM control 1 |
| 2943 | func->doc = "Get control one [instrument specific]."; | 2943 | func->doc = "get control one [instrument specific]."; |
| 2944 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2944 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2945 | | 2945 | |
| 2946 | func = make_new_mfun( "float", "controlTwo", FM_ctrl_control2 ); //! FM control 2 | 2946 | func = make_new_mfun( "float", "controlTwo", FM_ctrl_control2 ); //! FM control 2 |
| 2947 | func->add_arg( "float", "value" ); | 2947 | func->add_arg( "float", "value" ); |
| 2948 | func->doc = "Set control two [instrument specific]."; | 2948 | func->doc = "set control two [instrument specific]."; |
| 2949 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2949 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2950 | | 2950 | |
| 2951 | func = make_new_mfun( "float", "controlTwo", FM_cget_control2 ); //! FM control 2 | 2951 | func = make_new_mfun( "float", "controlTwo", FM_cget_control2 ); //! FM control 2 |
| 2952 | func->doc = "Get control two [instrument specific]."; | 2952 | func->doc = "get control two [instrument specific]."; |
| 2953 | if( !type_engine_import_mfun( env, func ) ) goto error; | 2953 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 2954 | | 2954 | |
| 2955 | // end the class import | 2955 | // end the class import |
| @@ -2960,7 +2960,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 2960 | // begin BeeThree ugen | 2960 | // begin BeeThree ugen |
| 2961 | //------------------------------------------------------------------------ | 2961 | //------------------------------------------------------------------------ |
| 2962 | | 2962 | |
| 2963 | doc = " This class implements a simple 4 operator topology, also referred to as algorithm 8 of the TX81Z.\n\ | 2963 | doc = "a simple 4-operator FM topology, also referred to as algorithm 8 of the TX81Z.\n\ |
| 2964 | \n\ | 2964 | \n\ |
| 2965 | Algorithm 8 is :\n\ | 2965 | Algorithm 8 is :\n\ |
| 2966 | \n\ | 2966 | \n\ |
| @@ -2994,7 +2994,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 27 unmodified lines |
| 2994 | // begin FMVoices ugen | 2994 | // begin FMVoices ugen |
| 2995 | //------------------------------------------------------------------------ | 2995 | //------------------------------------------------------------------------ |
| 2996 | | 2996 | |
| 2997 | doc = "This class implements 3 carriers and a common modulator, also referred to as algorithm 6 of the TX81Z.\n\ | 2997 | doc = "a FM instrument with 3 carriers and a common modulator, also referred to as algorithm 6 of the TX81Z.\n\ |
| 2998 | \n\ | 2998 | \n\ |
| 2999 | Algorithm 6 is :\n\ | 2999 | Algorithm 6 is :\n\ |
| 3000 | \n\ | 3000 | \n\ |
| @@ -3020,29 +3020,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 19 unmodified lines |
| 3020 | | 3020 | |
| 3021 | func = make_new_mfun( "float", "vowel", FMVoices_ctrl_vowel ); //!select vowel | 3021 | func = make_new_mfun( "float", "vowel", FMVoices_ctrl_vowel ); //!select vowel |
| 3022 | func->add_arg( "float", "value" ); | 3022 | func->add_arg( "float", "value" ); |
| 3023 | func->doc = "Set vowel, [0.0-1.0]."; | 3023 | func->doc = "set vowel, [0.0-1.0]."; |
| 3024 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3024 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3025 | | 3025 | |
| 3026 | func = make_new_mfun( "float", "vowel", FMVoices_cget_vowel ); //!select vowel | 3026 | func = make_new_mfun( "float", "vowel", FMVoices_cget_vowel ); //!select vowel |
| 3027 | func->doc = "Get vowel, [0.0-1.0]."; | 3027 | func->doc = "get vowel, [0.0-1.0]."; |
| 3028 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3028 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3029 | | 3029 | |
| 3030 | func = make_new_mfun( "float", "spectralTilt", FMVoices_ctrl_spectralTilt ); //! spectral tilt | 3030 | func = make_new_mfun( "float", "spectralTilt", FMVoices_ctrl_spectralTilt ); //! spectral tilt |
| 3031 | func->add_arg( "float", "value" ); | 3031 | func->add_arg( "float", "value" ); |
| 3032 | func->doc = "Set spectral tilt, [0.0-1.0]."; | 3032 | func->doc = "set spectral tilt, [0.0-1.0]."; |
| 3033 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3033 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3034 | | 3034 | |
| 3035 | func = make_new_mfun( "float", "spectralTilt", FMVoices_cget_spectralTilt ); //! spectral tilt | 3035 | func = make_new_mfun( "float", "spectralTilt", FMVoices_cget_spectralTilt ); //! spectral tilt |
| 3036 | func->doc = "Get spectral tilt, [0.0-1.0]."; | 3036 | func->doc = "get spectral tilt, [0.0-1.0]."; |
| 3037 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3037 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3038 | | 3038 | |
| 3039 | func = make_new_mfun( "float", "adsrTarget", FMVoices_ctrl_adsrTarget ); //!adsr targets | 3039 | func = make_new_mfun( "float", "adsrTarget", FMVoices_ctrl_adsrTarget ); //!adsr targets |
| 3040 | func->add_arg( "float", "value" ); | 3040 | func->add_arg( "float", "value" ); |
| 3041 | func->doc = "Set ADSR targets, [0.0-1.0]."; | 3041 | func->doc = "set ADSR targets, [0.0-1.0]."; |
| 3042 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3042 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3043 | | 3043 | |
| 3044 | func = make_new_mfun( "float", "adsrTarget", FMVoices_cget_adsrTarget ); //!adsr targets | 3044 | func = make_new_mfun( "float", "adsrTarget", FMVoices_cget_adsrTarget ); //!adsr targets |
| 3045 | func->doc = "Get ADSR targets, [0.0-1.0]."; | 3045 | func->doc = "get ADSR targets, [0.0-1.0]."; |
| 3046 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3046 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3047 | | 3047 | |
| 3048 | // end the class import | 3048 | // end the class import |
| @@ -3053,7 +3053,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 3053 | // begin HevyMetl ugen | 3053 | // begin HevyMetl ugen |
| 3054 | //------------------------------------------------------------------------ | 3054 | //------------------------------------------------------------------------ |
| 3055 | | 3055 | |
| 3056 | doc = "This class implements 3 cascade operators with feedback modulation, also referred to as algorithm 3 of the TX81Z.\n\ | 3056 | doc = "a FM instrument containing 3 cascade operators with feedback modulation, also referred to as algorithm 3 of the TX81Z.\n\ |
| 3057 | \n\ | 3057 | \n\ |
| 3058 | Algorithm 3 is :\n\ | 3058 | Algorithm 3 is :\n\ |
| 3059 | \n\ | 3059 | \n\ |
| @@ -3084,7 +3084,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 24 unmodified lines |
| 3084 | // begin PercFlut ugen | 3084 | // begin PercFlut ugen |
| 3085 | //------------------------------------------------------------------------ | 3085 | //------------------------------------------------------------------------ |
| 3086 | | 3086 | |
| 3087 | doc = "This class implements algorithm 4 of the TX81Z.\n\ | 3087 | doc = "a FM instrument corresponding to algorithm 4 of the TX81Z.\n\ |
| 3088 | \n\ | 3088 | \n\ |
| 3089 | Algorithm 4 is :\n\ | 3089 | Algorithm 4 is :\n\ |
| 3090 | \n\ | 3090 | \n\ |
| @@ -3115,7 +3115,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 24 unmodified lines |
| 3115 | // begin Rhodey ugen | 3115 | // begin Rhodey ugen |
| 3116 | //------------------------------------------------------------------------ | 3116 | //------------------------------------------------------------------------ |
| 3117 | | 3117 | |
| 3118 | doc = " This class implements two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z.\n\ | 3118 | doc = "two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z.\n\ |
| 3119 | \n\ | 3119 | \n\ |
| 3120 | Algorithm 5 is :\n\ | 3120 | Algorithm 5 is :\n\ |
| 3121 | \n\ | 3121 | \n\ |
| @@ -3150,7 +3150,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 28 unmodified lines |
| 3150 | // begin TubeBell ugen | 3150 | // begin TubeBell ugen |
| 3151 | //------------------------------------------------------------------------ | 3151 | //------------------------------------------------------------------------ |
| 3152 | | 3152 | |
| 3153 | doc = "This class implements two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z.\n\ | 3153 | doc = "two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z.\n\ |
| 3154 | \n\ | 3154 | \n\ |
| 3155 | Algorithm 5 is :\n\ | 3155 | Algorithm 5 is :\n\ |
| 3156 | \n\ | 3156 | \n\ |
| @@ -3182,7 +3182,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 25 unmodified lines |
| 3182 | // begin Wurley ugen | 3182 | // begin Wurley ugen |
| 3183 | //------------------------------------------------------------------------ | 3183 | //------------------------------------------------------------------------ |
| 3184 | | 3184 | |
| 3185 | doc = "This class implements two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z.\n\ | 3185 | doc = "two simple FM Pairs summed together, also referred to as algorithm 5 of the TX81Z.\n\ |
| 3186 | \n\ | 3186 | \n\ |
| 3187 | Algorithm 5 is :\n\ | 3187 | Algorithm 5 is :\n\ |
| 3188 | \n\ | 3188 | \n\ |
| @@ -3222,7 +3222,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 33 unmodified lines |
| 3222 | // begin Delay ugen | 3222 | // begin Delay ugen |
| 3223 | //------------------------------------------------------------------------ | 3223 | //------------------------------------------------------------------------ |
| 3224 | | 3224 | |
| 3225 | doc = "This protected Filter subclass implements a non-interpolating digital delay-line. A fixed maximum length of 4095 and a delay of zero is set using the default constructor. Alternatively, the delay and maximum length can be set during instantiation with an overloaded constructor.\n\ | 3225 | doc = "a non-interpolating digital delay-line. A fixed maximum length of 4095 and a delay of zero is set using the default constructor. Alternatively, the delay and maximum length can be set during instantiation with an overloaded constructor.\n\ |
| 3226 | \n\ | 3226 | \n\ |
| 3227 | A non-interpolating delay line is typically used in fixed delay-length applications, such as for reverberation.\n\ | 3227 | A non-interpolating delay line is typically used in fixed delay-length applications, such as for reverberation.\n\ |
| 3228 | \n\ | 3228 | \n\ |
| @@ -3238,24 +3238,24 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 9 unmodified lines |
| 3238 | if( Delay_offset_data == CK_INVALID_OFFSET ) goto error; | 3238 | if( Delay_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3239 | func = make_new_mfun( "dur", "delay", Delay_ctrl_delay ); //! length of delay | 3239 | func = make_new_mfun( "dur", "delay", Delay_ctrl_delay ); //! length of delay |
| 3240 | func->add_arg( "dur", "value" ); | 3240 | func->add_arg( "dur", "value" ); |
| 3241 | func->doc = "Set length of delay."; | 3241 | func->doc = "set length of delay."; |
| 3242 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3242 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3243 | | 3243 | |
| 3244 | func = make_new_mfun( "dur", "delay", Delay_cget_delay ); //! length of delay | 3244 | func = make_new_mfun( "dur", "delay", Delay_cget_delay ); //! length of delay |
| 3245 | func->doc = "Get length of delay."; | 3245 | func->doc = "get length of delay."; |
| 3246 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3246 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3247 | | 3247 | |
| 3248 | func = make_new_mfun( "dur", "max", Delay_ctrl_max ); //! max delay (buffer size) | 3248 | func = make_new_mfun( "dur", "max", Delay_ctrl_max ); //! max delay (buffer size) |
| 3249 | func->add_arg( "dur", "value" ); | 3249 | func->add_arg( "dur", "value" ); |
| 3250 | func->doc = "Set max delay (buffer size)."; | 3250 | func->doc = "set max delay (buffer size)."; |
| 3251 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3251 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3252 | | 3252 | |
| 3253 | func = make_new_mfun( "dur", "max", Delay_cget_max ); //! max delay (buffer size) | 3253 | func = make_new_mfun( "dur", "max", Delay_cget_max ); //! max delay (buffer size) |
| 3254 | func->doc = "Get max delay (buffer size)."; | 3254 | func->doc = "get max delay (buffer size)."; |
| 3255 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3255 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3256 | | 3256 | |
| 3257 | func = make_new_mfun( "void", "clear", Delay_clear ); //! clear delay | 3257 | func = make_new_mfun( "void", "clear", Delay_clear ); //! clear delay |
| 3258 | func->doc = "Clear delay line."; | 3258 | func->doc = "clear delay line."; |
| 3259 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3259 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3260 | | 3260 | |
| 3261 | // delay 'subs' not actually extending . | 3261 | // delay 'subs' not actually extending . |
| @@ -3268,7 +3268,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 3268 | // begin DelayA ugen | 3268 | // begin DelayA ugen |
| 3269 | //------------------------------------------------------------------------ | 3269 | //------------------------------------------------------------------------ |
| 3270 | | 3270 | |
| 3271 | doc = "This Delay subclass implements a fractional-length digital delay-line using a first-order allpass filter. A fixed maximum length of 4095 and a delay of 0.5 is set using the default constructor. Alternatively, the delay and maximum length can be set during instantiation with an overloaded constructor.\n\ | 3271 | doc = "a fractional-length digital delay-line using a first-order allpass filter. A fixed maximum length of 4095 and a delay of 0.5 is set using the default constructor. Alternatively, the delay and maximum length can be set during instantiation with an overloaded constructor.\n\ |
| 3272 | \n\ | 3272 | \n\ |
| 3273 | An allpass filter has unity magnitude gain but variable phase delay properties, making it useful in achieving fractional delays without affecting a signal's frequency magnitude response. In order to achieve a maximally flat phase delay response, the minimum delay possible in this implementation is limited to a value of 0.5.\n\ | 3273 | An allpass filter has unity magnitude gain but variable phase delay properties, making it useful in achieving fractional delays without affecting a signal's frequency magnitude response. In order to achieve a maximally flat phase delay response, the minimum delay possible in this implementation is limited to a value of 0.5.\n\ |
| 3274 | \n\ | 3274 | \n\ |
| @@ -3282,24 +3282,24 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 7 unmodified lines |
| 3282 | if( DelayA_offset_data == CK_INVALID_OFFSET ) goto error; | 3282 | if( DelayA_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3283 | func = make_new_mfun( "dur", "delay", DelayA_ctrl_delay ); //! length of delay | 3283 | func = make_new_mfun( "dur", "delay", DelayA_ctrl_delay ); //! length of delay |
| 3284 | func->add_arg( "dur", "value" ); | 3284 | func->add_arg( "dur", "value" ); |
| 3285 | func->doc = "Set length of delay."; | 3285 | func->doc = "set length of delay."; |
| 3286 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3286 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3287 | | 3287 | |
| 3288 | func = make_new_mfun( "dur", "delay", DelayA_cget_delay ); //! length of delay | 3288 | func = make_new_mfun( "dur", "delay", DelayA_cget_delay ); //! length of delay |
| 3289 | func->doc = "Get length of delay."; | 3289 | func->doc = "get length of delay."; |
| 3290 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3290 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3291 | | 3291 | |
| 3292 | func = make_new_mfun( "dur", "max", DelayA_ctrl_max ); //! max delay ( buffer size ) | 3292 | func = make_new_mfun( "dur", "max", DelayA_ctrl_max ); //! max delay ( buffer size ) |
| 3293 | func->add_arg( "dur", "value" ); | 3293 | func->add_arg( "dur", "value" ); |
| 3294 | func->doc = "Set max delay (buffer size)."; | 3294 | func->doc = "set max delay (buffer size)."; |
| 3295 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3295 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3296 | | 3296 | |
| 3297 | func = make_new_mfun( "dur", "max", DelayA_cget_max ); //! max delay ( buffer size ) | 3297 | func = make_new_mfun( "dur", "max", DelayA_cget_max ); //! max delay ( buffer size ) |
| 3298 | func->doc = "Get max delay (buffer size)."; | 3298 | func->doc = "get max delay (buffer size)."; |
| 3299 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3299 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3300 | | 3300 | |
| 3301 | func = make_new_mfun( "void", "clear", DelayA_clear ); //! clear delay | 3301 | func = make_new_mfun( "void", "clear", DelayA_clear ); //! clear delay |
| 3302 | func->doc = "Clear delay line."; | 3302 | func->doc = "clear delay line."; |
| 3303 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3303 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3304 | | 3304 | |
| 3305 | // end the class import | 3305 | // end the class import |
| @@ -3310,7 +3310,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 3310 | // begin DelayL ugen | 3310 | // begin DelayL ugen |
| 3311 | //------------------------------------------------------------------------ | 3311 | //------------------------------------------------------------------------ |
| 3312 | | 3312 | |
| 3313 | doc = "This Delay subclass implements a fractional-length digital delay-line using first-order linear interpolation. A fixed maximum length of 4095 and a delay of zero is set using the default constructor. Alternatively, the delay and maximum length can be set during instantiation with an overloaded constructor.\n\ | 3313 | doc = "a fractional-length digital delay-line using first-order linear interpolation. A fixed maximum length of 4095 and a delay of zero is set using the default constructor. Alternatively, the delay and maximum length can be set during instantiation with an overloaded constructor.\n\ |
| 3314 | \n\ | 3314 | \n\ |
| 3315 | Linear interpolation is an efficient technique for achieving fractional delay lengths, though it does introduce high-frequency signal attenuation to varying degrees depending on the fractional delay setting. The use of higher order Lagrange interpolators can typically improve (minimize) this attenuation characteristic.\n\ | 3315 | Linear interpolation is an efficient technique for achieving fractional delay lengths, though it does introduce high-frequency signal attenuation to varying degrees depending on the fractional delay setting. The use of higher order Lagrange interpolators can typically improve (minimize) this attenuation characteristic.\n\ |
| 3316 | \n\ | 3316 | \n\ |
| @@ -3329,24 +3329,24 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 12 unmodified lines |
| 3329 | if( DelayL_offset_data == CK_INVALID_OFFSET ) goto error; | 3329 | if( DelayL_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3330 | func = make_new_mfun( "dur", "delay", DelayL_ctrl_delay ); //! length of delay | 3330 | func = make_new_mfun( "dur", "delay", DelayL_ctrl_delay ); //! length of delay |
| 3331 | func->add_arg( "dur", "value" ); | 3331 | func->add_arg( "dur", "value" ); |
| 3332 | func->doc = "Set length of delay."; | 3332 | func->doc = "set length of delay."; |
| 3333 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3333 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3334 | | 3334 | |
| 3335 | func = make_new_mfun( "dur", "delay", DelayL_cget_delay ); //! length of delay | 3335 | func = make_new_mfun( "dur", "delay", DelayL_cget_delay ); //! length of delay |
| 3336 | func->doc = "Get length of delay."; | 3336 | func->doc = "get length of delay."; |
| 3337 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3337 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3338 | | 3338 | |
| 3339 | func = make_new_mfun( "dur", "max", DelayL_ctrl_max ); //! max delay ( buffer size ) | 3339 | func = make_new_mfun( "dur", "max", DelayL_ctrl_max ); //! max delay ( buffer size ) |
| 3340 | func->add_arg( "dur", "value" ); | 3340 | func->add_arg( "dur", "value" ); |
| 3341 | func->doc = "Set max delay (buffer size)."; | 3341 | func->doc = "set max delay (buffer size)."; |
| 3342 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3342 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3343 | | 3343 | |
| 3344 | func = make_new_mfun( "dur", "max", DelayL_cget_max ); //! max delay ( buffer size ) | 3344 | func = make_new_mfun( "dur", "max", DelayL_cget_max ); //! max delay ( buffer size ) |
| 3345 | func->doc = "Get max delay (buffer size)."; | 3345 | func->doc = "get max delay (buffer size)."; |
| 3346 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3346 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3347 | | 3347 | |
| 3348 | func = make_new_mfun( "void", "clear", DelayL_clear ); //! clear delay | 3348 | func = make_new_mfun( "void", "clear", DelayL_clear ); //! clear delay |
| 3349 | func->doc = "Clear delay line."; | 3349 | func->doc = "clear delay line."; |
| 3350 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3350 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3351 | | 3351 | |
| 3352 | // end the class import | 3352 | // end the class import |
| @@ -3357,7 +3357,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 3357 | // begin Echo ugen | 3357 | // begin Echo ugen |
| 3358 | //------------------------------------------------------------------------ | 3358 | //------------------------------------------------------------------------ |
| 3359 | | 3359 | |
| 3360 | doc = "This class implements a echo effect.\n\ | 3360 | doc = "an echo effect.\n\ |
| 3361 | \n\ | 3361 | \n\ |
| 3362 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3362 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3363 | | 3363 | |
| @@ -3372,29 +3372,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 8 unmodified lines |
| 3372 | if( Echo_offset_data == CK_INVALID_OFFSET ) goto error; | 3372 | if( Echo_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3373 | func = make_new_mfun( "dur", "delay", Echo_ctrl_delay ); //! length of echo | 3373 | func = make_new_mfun( "dur", "delay", Echo_ctrl_delay ); //! length of echo |
| 3374 | func->add_arg( "dur", "value" ); | 3374 | func->add_arg( "dur", "value" ); |
| 3375 | func->doc = "Set length of echo."; | 3375 | func->doc = "set length of echo."; |
| 3376 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3376 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3377 | | 3377 | |
| 3378 | func = make_new_mfun( "dur", "delay", Echo_cget_delay ); //! length of echo | 3378 | func = make_new_mfun( "dur", "delay", Echo_cget_delay ); //! length of echo |
| 3379 | func->doc = "Get length of echo."; | 3379 | func->doc = "get length of echo."; |
| 3380 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3380 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3381 | | 3381 | |
| 3382 | func = make_new_mfun( "dur", "max", Echo_ctrl_max ); //! max delay | 3382 | func = make_new_mfun( "dur", "max", Echo_ctrl_max ); //! max delay |
| 3383 | func->add_arg( "dur", "value" ); | 3383 | func->add_arg( "dur", "value" ); |
| 3384 | func->doc = "Set max delay (buffer size)."; | 3384 | func->doc = "set max delay (buffer size)."; |
| 3385 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3385 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3386 | | 3386 | |
| 3387 | func = make_new_mfun( "dur", "max", Echo_cget_max ); //! max delay | 3387 | func = make_new_mfun( "dur", "max", Echo_cget_max ); //! max delay |
| 3388 | func->doc = "Get max delay (buffer size)."; | 3388 | func->doc = "get max delay (buffer size)."; |
| 3389 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3389 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3390 | | 3390 | |
| 3391 | func = make_new_mfun( "float", "mix", Echo_ctrl_mix ); //! mix level ( wet/dry ) | 3391 | func = make_new_mfun( "float", "mix", Echo_ctrl_mix ); //! mix level ( wet/dry ) |
| 3392 | func->add_arg( "float", "value" ); | 3392 | func->add_arg( "float", "value" ); |
| 3393 | func->doc = "Set mix level (wet/dry)."; | 3393 | func->doc = "set mix level (wet/dry)."; |
| 3394 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3394 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3395 | | 3395 | |
| 3396 | func = make_new_mfun( "float", "mix", Echo_cget_mix ); //! mix level ( wet/dry ) | 3396 | func = make_new_mfun( "float", "mix", Echo_cget_mix ); //! mix level ( wet/dry ) |
| 3397 | func->doc = "Get mix level (wet/dry)."; | 3397 | func->doc = "get mix level (wet/dry)."; |
| 3398 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3398 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3399 | | 3399 | |
| 3400 | // end the class import | 3400 | // end the class import |
| @@ -3407,7 +3407,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 3407 | //------------------------------------------------------------------------ | 3407 | //------------------------------------------------------------------------ |
| 3408 | // begin Envelope ugen | 3408 | // begin Envelope ugen |
| 3409 | //------------------------------------------------------------------------ | 3409 | //------------------------------------------------------------------------ |
| 3410 | doc = "This class implements a simple envelope generator which is capable of ramping to a target value by a specified rate. It also responds to simple `keyOn` and `keyOff` messages, ramping to 1.0 on `keyOn` and to 0.0 on `keyOff`.\n\ | 3410 | doc = "a simple envelope generator which is capable of ramping to a target value by a specified rate. It also responds to simple `keyOn` and `keyOff` messages, ramping to 1.0 on `keyOn` and to 0.0 on `keyOff`.\n\ |
| 3411 | \n\ | 3411 | \n\ |
| 3412 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3412 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3413 | | 3413 | |
| @@ -3423,66 +3423,66 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 9 unmodified lines |
| 3423 | if( Envelope_offset_data == CK_INVALID_OFFSET ) goto error; | 3423 | if( Envelope_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3424 | | 3424 | |
| 3425 | func = make_new_mfun( "int", "keyOn", Envelope_ctrl_keyOn0 ); //! ramp to 1.0 | 3425 | func = make_new_mfun( "int", "keyOn", Envelope_ctrl_keyOn0 ); //! ramp to 1.0 |
| 3426 | func->doc = "Get keyOn state."; | 3426 | func->doc = "get keyOn state."; |
| 3427 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3427 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3428 | | 3428 | |
| 3429 | func = make_new_mfun( "int", "keyOn", Envelope_ctrl_keyOn ); //! ramp to 1.0 | 3429 | func = make_new_mfun( "int", "keyOn", Envelope_ctrl_keyOn ); //! ramp to 1.0 |
| 3430 | func->add_arg( "int", "value" ); | 3430 | func->add_arg( "int", "value" ); |
| 3431 | func->doc = "Ramp to 1.0."; | 3431 | func->doc = "ramp to 1.0."; |
| 3432 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3432 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3433 | | 3433 | |
| 3434 | func = make_new_mfun( "int", "keyOff", Envelope_ctrl_keyOff0 ); //! ramp to 0.0 | 3434 | func = make_new_mfun( "int", "keyOff", Envelope_ctrl_keyOff0 ); //! ramp to 0.0 |
| 3435 | func->doc = "Get keyOff state."; | 3435 | func->doc = "get keyOff state."; |
| 3436 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3436 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3437 | | 3437 | |
| 3438 | func = make_new_mfun( "int", "keyOff", Envelope_ctrl_keyOff ); //! ramp to 0.0 | 3438 | func = make_new_mfun( "int", "keyOff", Envelope_ctrl_keyOff ); //! ramp to 0.0 |
| 3439 | func->add_arg( "int", "value" ); | 3439 | func->add_arg( "int", "value" ); |
| 3440 | func->doc = "Ramp to 0.0."; | 3440 | func->doc = "ramp to 0.0."; |
| 3441 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3441 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3442 | | 3442 | |
| 3443 | func = make_new_mfun( "float", "target", Envelope_ctrl_target ); //! ramp to arbitrary value. | 3443 | func = make_new_mfun( "float", "target", Envelope_ctrl_target ); //! ramp to arbitrary value. |
| 3444 | func->add_arg( "float", "value" ); | 3444 | func->add_arg( "float", "value" ); |
| 3445 | func->doc = "Set value to ramp to."; | 3445 | func->doc = "set value to ramp to."; |
| 3446 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3446 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3447 | | 3447 | |
| 3448 | func = make_new_mfun( "float", "target", Envelope_cget_target ); //! ramp to arbitrary value. | 3448 | func = make_new_mfun( "float", "target", Envelope_cget_target ); //! ramp to arbitrary value. |
| 3449 | func->doc = "Get value to ramp to."; | 3449 | func->doc = "get value to ramp to."; |
| 3450 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3450 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3451 | | 3451 | |
| 3452 | func = make_new_mfun( "float", "time", Envelope_ctrl_time ); //! time to reach target | 3452 | func = make_new_mfun( "float", "time", Envelope_ctrl_time ); //! time to reach target |
| 3453 | func->add_arg( "float", "value" ); | 3453 | func->add_arg( "float", "value" ); |
| 3454 | func->doc = "Set time to reach target (in seconds)."; | 3454 | func->doc = "set time to reach target (in seconds)."; |
| 3455 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3455 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3456 | | 3456 | |
| 3457 | func = make_new_mfun( "float", "time", Envelope_cget_time ); //! time to reach target | 3457 | func = make_new_mfun( "float", "time", Envelope_cget_time ); //! time to reach target |
| 3458 | func->doc = "Get time to reach target (in seconds)."; | 3458 | func->doc = "get time to reach target (in seconds)."; |
| 3459 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3459 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3460 | | 3460 | |
| 3461 | func = make_new_mfun( "dur", "duration", Envelope_ctrl_duration ); //! time to reach target | 3461 | func = make_new_mfun( "dur", "duration", Envelope_ctrl_duration ); //! time to reach target |
| 3462 | func->add_arg( "dur", "value" ); | 3462 | func->add_arg( "dur", "value" ); |
| 3463 | func->doc = "Set duration to reach target."; | 3463 | func->doc = "set duration to reach target."; |
| 3464 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3464 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3465 | | 3465 | |
| 3466 | func = make_new_mfun( "dur", "duration", Envelope_cget_duration ); //! time to reach target | 3466 | func = make_new_mfun( "dur", "duration", Envelope_cget_duration ); //! time to reach target |
| 3467 | func->doc = "Get duration to reach target."; | 3467 | func->doc = "get duration to reach target."; |
| 3468 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3468 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3469 | | 3469 | |
| 3470 | func = make_new_mfun( "float", "rate", Envelope_ctrl_rate ); //! attack rate | 3470 | func = make_new_mfun( "float", "rate", Envelope_ctrl_rate ); //! attack rate |
| 3471 | func->add_arg( "float", "value" ); | 3471 | func->add_arg( "float", "value" ); |
| 3472 | func->doc = "Set rate of change."; | 3472 | func->doc = "set rate of change."; |
| 3473 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3473 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3474 | | 3474 | |
| 3475 | func = make_new_mfun( "float", "rate", Envelope_cget_rate ); //! attack rate | 3475 | func = make_new_mfun( "float", "rate", Envelope_cget_rate ); //! attack rate |
| 3476 | func->doc = "Get rate of change."; | 3476 | func->doc = "get rate of change."; |
| 3477 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3477 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3478 | | 3478 | |
| 3479 | func = make_new_mfun( "float", "value", Envelope_ctrl_value ); //! set immediate value | 3479 | func = make_new_mfun( "float", "value", Envelope_ctrl_value ); //! set immediate value |
| 3480 | func->add_arg( "float", "value" ); | 3480 | func->add_arg( "float", "value" ); |
| 3481 | func->doc = "Set immediate value."; | 3481 | func->doc = "set immediate value."; |
| 3482 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3482 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3483 | | 3483 | |
| 3484 | func = make_new_mfun( "float", "value", Envelope_cget_value ); //! set immediate value | 3484 | func = make_new_mfun( "float", "value", Envelope_cget_value ); //! set immediate value |
| 3485 | func->doc = "Get immediate value."; | 3485 | func->doc = "get immediate value."; |
| 3486 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3486 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3487 | | 3487 | |
| 3488 | | 3488 | |
| @@ -3494,7 +3494,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 3494 | // begin ADSR ugen | 3494 | // begin ADSR ugen |
| 3495 | //------------------------------------------------------------------------ | 3495 | //------------------------------------------------------------------------ |
| 3496 | | 3496 | |
| 3497 | doc = "This Envelope subclass implements a traditional ADSR (Attack, Decay, Sustain, Release) envelope. It responds to simple `keyOn` and `keyOff` messages, keeping track of its state.\n\ | 3497 | doc = "a traditional ADSR (Attack, Decay, Sustain, Release) envelope. It responds to simple `keyOn` and `keyOff` messages, keeping track of its state.\n\ |
| 3498 | \n\ | 3498 | \n\ |
| 3499 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3499 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3500 | | 3500 | |
| @@ -3507,65 +3507,65 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 3507 | | 3507 | |
| 3508 | func = make_new_mfun( "dur", "attackTime", ADSR_ctrl_attackTime ); //! attack time | 3508 | func = make_new_mfun( "dur", "attackTime", ADSR_ctrl_attackTime ); //! attack time |
| 3509 | func->add_arg( "dur", "value" ); | 3509 | func->add_arg( "dur", "value" ); |
| 3510 | func->doc = "Set attack time."; | 3510 | func->doc = "set attack time."; |
| 3511 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3511 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3512 | | 3512 | |
| 3513 | func = make_new_mfun( "dur", "attackTime", ADSR_cget_attackTime ); //! attack time | 3513 | func = make_new_mfun( "dur", "attackTime", ADSR_cget_attackTime ); //! attack time |
| 3514 | func->doc = "Get attack time."; | 3514 | func->doc = "get attack time."; |
| 3515 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3515 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3516 | | 3516 | |
| 3517 | func = make_new_mfun( "float", "attackRate", ADSR_ctrl_attackRate ); //! attack rate | 3517 | func = make_new_mfun( "float", "attackRate", ADSR_ctrl_attackRate ); //! attack rate |
| 3518 | func->add_arg( "float", "value" ); | 3518 | func->add_arg( "float", "value" ); |
| 3519 | func->doc = "Set attack rate."; | 3519 | func->doc = "set attack rate."; |
| 3520 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3520 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3521 | | 3521 | |
| 3522 | func = make_new_mfun( "float", "attackRate", ADSR_cget_attackRate ); //! attack rate | 3522 | func = make_new_mfun( "float", "attackRate", ADSR_cget_attackRate ); //! attack rate |
| 3523 | func->doc = "Get attack rate."; | 3523 | func->doc = "get attack rate."; |
| 3524 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3524 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3525 | | 3525 | |
| 3526 | func = make_new_mfun( "dur", "decayTime", ADSR_ctrl_decayTime ); //! decay time | 3526 | func = make_new_mfun( "dur", "decayTime", ADSR_ctrl_decayTime ); //! decay time |
| 3527 | func->add_arg( "dur", "value" ); | 3527 | func->add_arg( "dur", "value" ); |
| 3528 | func->doc = "Set decay time."; | 3528 | func->doc = "set decay time."; |
| 3529 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3529 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3530 | | 3530 | |
| 3531 | func = make_new_mfun( "dur", "decayTime", ADSR_cget_decayTime ); //! decay time | 3531 | func = make_new_mfun( "dur", "decayTime", ADSR_cget_decayTime ); //! decay time |
| 3532 | func->doc = "Get decay time."; | 3532 | func->doc = "get decay time."; |
| 3533 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3533 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3534 | | 3534 | |
| 3535 | func = make_new_mfun( "float", "decayRate", ADSR_ctrl_decayRate ); //! decay rate | 3535 | func = make_new_mfun( "float", "decayRate", ADSR_ctrl_decayRate ); //! decay rate |
| 3536 | func->add_arg( "float", "value" ); | 3536 | func->add_arg( "float", "value" ); |
| 3537 | func->doc = "Set decay rate."; | 3537 | func->doc = "set decay rate."; |
| 3538 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3538 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3539 | | 3539 | |
| 3540 | func = make_new_mfun( "float", "decayRate", ADSR_cget_decayRate ); //! decay rate | 3540 | func = make_new_mfun( "float", "decayRate", ADSR_cget_decayRate ); //! decay rate |
| 3541 | func->doc = "Get decay rate."; | 3541 | func->doc = "get decay rate."; |
| 3542 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3542 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3543 | | 3543 | |
| 3544 | func = make_new_mfun( "float", "sustainLevel", ADSR_ctrl_sustainLevel ); //! sustain level | 3544 | func = make_new_mfun( "float", "sustainLevel", ADSR_ctrl_sustainLevel ); //! sustain level |
| 3545 | func->add_arg( "float", "value" ); | 3545 | func->add_arg( "float", "value" ); |
| 3546 | func->doc = "Set sustain level."; | 3546 | func->doc = "set sustain level."; |
| 3547 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3547 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3548 | | 3548 | |
| 3549 | func = make_new_mfun( "float", "sustainLevel", ADSR_cget_sustainLevel ); //! sustain level | 3549 | func = make_new_mfun( "float", "sustainLevel", ADSR_cget_sustainLevel ); //! sustain level |
| 3550 | func->doc = "Get sustain level."; | 3550 | func->doc = "get sustain level."; |
| 3551 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3551 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3552 | | 3552 | |
| 3553 | func = make_new_mfun( "dur", "releaseTime", ADSR_ctrl_releaseTime ); //! release time | 3553 | func = make_new_mfun( "dur", "releaseTime", ADSR_ctrl_releaseTime ); //! release time |
| 3554 | func->add_arg( "dur", "value" ); | 3554 | func->add_arg( "dur", "value" ); |
| 3555 | func->doc = "Set release time."; | 3555 | func->doc = "set release time."; |
| 3556 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3556 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3557 | | 3557 | |
| 3558 | func = make_new_mfun( "dur", "releaseTime", ADSR_cget_releaseTime ); //! release time | 3558 | func = make_new_mfun( "dur", "releaseTime", ADSR_cget_releaseTime ); //! release time |
| 3559 | func->doc = "Get release time."; | 3559 | func->doc = "get release time."; |
| 3560 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3560 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3561 | | 3561 | |
| 3562 | func = make_new_mfun( "float", "releaseRate", ADSR_ctrl_releaseRate ); //! release rate | 3562 | func = make_new_mfun( "float", "releaseRate", ADSR_ctrl_releaseRate ); //! release rate |
| 3563 | func->add_arg( "float", "value" ); | 3563 | func->add_arg( "float", "value" ); |
| 3564 | func->doc = "Set release rate."; | 3564 | func->doc = "set release rate."; |
| 3565 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3565 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3566 | | 3566 | |
| 3567 | func = make_new_mfun( "float", "releaseRate", ADSR_cget_releaseRate ); //! release rate | 3567 | func = make_new_mfun( "float", "releaseRate", ADSR_cget_releaseRate ); //! release rate |
| 3568 | func->doc = "Get release rate."; | 3568 | func->doc = "get release rate."; |
| 3569 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3569 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3570 | | 3570 | |
| 3571 | func = make_new_mfun( "void", "set", ADSR_ctrl_set ); //! set | 3571 | func = make_new_mfun( "void", "set", ADSR_ctrl_set ); //! set |
| @@ -3573,7 +3573,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 1 unmodified line |
| 3573 | func->add_arg( "float", "decayTime" ); | 3573 | func->add_arg( "float", "decayTime" ); |
| 3574 | func->add_arg( "float", "sustainLevel" ); | 3574 | func->add_arg( "float", "sustainLevel" ); |
| 3575 | func->add_arg( "float", "releaseTime" ); | 3575 | func->add_arg( "float", "releaseTime" ); |
| 3576 | func->doc = "Set attack, decay, sustain, and release all at once (in seconds)."; | 3576 | func->doc = "set attack, decay, sustain, and release all at once (in seconds)."; |
| 3577 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3577 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3578 | | 3578 | |
| 3579 | func = make_new_mfun( "void", "set", ADSR_ctrl_set2 ); //! set | 3579 | func = make_new_mfun( "void", "set", ADSR_ctrl_set2 ); //! set |
| @@ -3581,11 +3581,11 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 1 unmodified line |
| 3581 | func->add_arg( "dur", "decayDuration" ); | 3581 | func->add_arg( "dur", "decayDuration" ); |
| 3582 | func->add_arg( "float", "sustainLevel" ); | 3582 | func->add_arg( "float", "sustainLevel" ); |
| 3583 | func->add_arg( "dur", "releaseDuration" ); | 3583 | func->add_arg( "dur", "releaseDuration" ); |
| 3584 | func->doc = "Set attack, decay, sustain, and release all at once."; | 3584 | func->doc = "set attack, decay, sustain, and release all at once."; |
| 3585 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3585 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3586 | | 3586 | |
| 3587 | func = make_new_mfun( "int", "state", ADSR_cget_state ); //! attack=0, decay=1 , sustain=2, release=3, done=4 | 3587 | func = make_new_mfun( "int", "state", ADSR_cget_state ); //! attack=0, decay=1 , sustain=2, release=3, done=4 |
| 3588 | func->doc = "Get state; attack=0, decay=1, sustain=2, release=3, done=4"; | 3588 | func->doc = "get state; attack=0, decay=1, sustain=2, release=3, done=4"; |
| 3589 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3589 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3590 | | 3590 | |
| 3591 | if( !type_engine_import_svar( env, "int", "ATTACK", TRUE, (t_CKUINT) &ADSR_state_ATTACK) ) goto error; | 3591 | if( !type_engine_import_svar( env, "int", "ATTACK", TRUE, (t_CKUINT) &ADSR_state_ATTACK) ) goto error; |
| @@ -3718,7 +3718,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 126 unmodified lines |
| 3718 | // begin OnePole ugen | 3718 | // begin OnePole ugen |
| 3719 | //------------------------------------------------------------------------ | 3719 | //------------------------------------------------------------------------ |
| 3720 | | 3720 | |
| 3721 | doc = "This protected Filter subclass implements a one-pole digital filter. A method is provided for setting the pole position along the real axis of the z-plane while maintaining a constant peak filter gain.\n\ | 3721 | doc = "a one-pole digital filter. A method is provided for setting the pole position along the real axis of the z-plane while maintaining a constant peak filter gain.\n\ |
| 3722 | \n\ | 3722 | \n\ |
| 3723 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3723 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3724 | | 3724 | |
| @@ -3732,29 +3732,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 7 unmodified lines |
| 3732 | | 3732 | |
| 3733 | func = make_new_mfun( "float", "a1", OnePole_ctrl_a1 ); //! filter coefficient | 3733 | func = make_new_mfun( "float", "a1", OnePole_ctrl_a1 ); //! filter coefficient |
| 3734 | func->add_arg( "float", "value" ); | 3734 | func->add_arg( "float", "value" ); |
| 3735 | func->doc = "Set filter coefficient."; | 3735 | func->doc = "set filter coefficient."; |
| 3736 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3736 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3737 | | 3737 | |
| 3738 | func = make_new_mfun( "float", "a1", OnePole_cget_a1 ); //! filter coefficient | 3738 | func = make_new_mfun( "float", "a1", OnePole_cget_a1 ); //! filter coefficient |
| 3739 | func->doc = "Get filter coefficient."; | 3739 | func->doc = "get filter coefficient."; |
| 3740 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3740 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3741 | | 3741 | |
| 3742 | func = make_new_mfun( "float", "b0", OnePole_ctrl_b0 ); //! filter coefficient | 3742 | func = make_new_mfun( "float", "b0", OnePole_ctrl_b0 ); //! filter coefficient |
| 3743 | func->add_arg( "float", "value" ); | 3743 | func->add_arg( "float", "value" ); |
| 3744 | func->doc = "Set filter coefficient."; | 3744 | func->doc = "set filter coefficient."; |
| 3745 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3745 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3746 | | 3746 | |
| 3747 | func = make_new_mfun( "float", "b0", OnePole_cget_b0 ); //! filter coefficient | 3747 | func = make_new_mfun( "float", "b0", OnePole_cget_b0 ); //! filter coefficient |
| 3748 | func->doc = "Get filter coefficient."; | 3748 | func->doc = "get filter coefficient."; |
| 3749 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3749 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3750 | | 3750 | |
| 3751 | func = make_new_mfun( "float", "pole", OnePole_ctrl_pole ); //! set pole position along real axis of z-plane | 3751 | func = make_new_mfun( "float", "pole", OnePole_ctrl_pole ); //! set pole position along real axis of z-plane |
| 3752 | func->add_arg( "float", "value" ); | 3752 | func->add_arg( "float", "value" ); |
| 3753 | func->doc = "Set pole position along real axis of z-plane."; | 3753 | func->doc = "set pole position along real axis of z-plane."; |
| 3754 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3754 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3755 | | 3755 | |
| 3756 | func = make_new_mfun( "float", "pole", OnePole_cget_pole ); //! set pole position along real axis of z-plane | 3756 | func = make_new_mfun( "float", "pole", OnePole_cget_pole ); //! set pole position along real axis of z-plane |
| 3757 | func->doc = "Get pole position along real axis of z-plane."; | 3757 | func->doc = "get pole position along real axis of z-plane."; |
| 3758 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3758 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3759 | | 3759 | |
| 3760 | | 3760 | |
| @@ -3765,7 +3765,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 3765 | //------------------------------------------------------------------------ | 3765 | //------------------------------------------------------------------------ |
| 3766 | // begin TwoPole ugen | 3766 | // begin TwoPole ugen |
| 3767 | //------------------------------------------------------------------------ | 3767 | //------------------------------------------------------------------------ |
| 3768 | doc = "This protected Filter subclass implements a two-pole digital filter. A method is provided for creating a resonance in the frequency response while maintaining a nearly constant filter gain.\n\ | 3768 | doc = "a two-pole digital filter. A method is provided for creating a resonance in the frequency response while maintaining a nearly constant filter gain.\n\ |
| 3769 | \n\ | 3769 | \n\ |
| 3770 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3770 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3771 | | 3771 | |
| @@ -3780,56 +3780,56 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 8 unmodified lines |
| 3780 | if( TwoPole_offset_data == CK_INVALID_OFFSET ) goto error; | 3780 | if( TwoPole_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3781 | func = make_new_mfun( "float", "a1", TwoPole_ctrl_a1 ); //! filter coefficient | 3781 | func = make_new_mfun( "float", "a1", TwoPole_ctrl_a1 ); //! filter coefficient |
| 3782 | func->add_arg( "float", "value" ); | 3782 | func->add_arg( "float", "value" ); |
| 3783 | func->doc = "Set filter coefficient."; | 3783 | func->doc = "set filter coefficient."; |
| 3784 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3784 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3785 | | 3785 | |
| 3786 | func = make_new_mfun( "float", "a1", TwoPole_cget_a1 ); //! filter coefficient | 3786 | func = make_new_mfun( "float", "a1", TwoPole_cget_a1 ); //! filter coefficient |
| 3787 | func->doc = "Get filter coefficient."; | 3787 | func->doc = "get filter coefficient."; |
| 3788 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3788 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3789 | | 3789 | |
| 3790 | func = make_new_mfun( "float", "a2", TwoPole_ctrl_a2 ); //! filter coefficient | 3790 | func = make_new_mfun( "float", "a2", TwoPole_ctrl_a2 ); //! filter coefficient |
| 3791 | func->add_arg( "float", "value" ); | 3791 | func->add_arg( "float", "value" ); |
| 3792 | func->doc = "Set filter coefficient."; | 3792 | func->doc = "set filter coefficient."; |
| 3793 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3793 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3794 | | 3794 | |
| 3795 | func = make_new_mfun( "float", "a2", TwoPole_cget_a2 ); //! filter coefficient | 3795 | func = make_new_mfun( "float", "a2", TwoPole_cget_a2 ); //! filter coefficient |
| 3796 | func->doc = "Get filter coefficient."; | 3796 | func->doc = "get filter coefficient."; |
| 3797 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3797 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3798 | | 3798 | |
| 3799 | func = make_new_mfun( "float", "b0", TwoPole_ctrl_b0 ); //! filter coefficient | 3799 | func = make_new_mfun( "float", "b0", TwoPole_ctrl_b0 ); //! filter coefficient |
| 3800 | func->add_arg( "float", "value" ); | 3800 | func->add_arg( "float", "value" ); |
| 3801 | func->doc = "Set filter coefficient."; | 3801 | func->doc = "set filter coefficient."; |
| 3802 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3802 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3803 | | 3803 | |
| 3804 | func = make_new_mfun( "float", "b0", TwoPole_cget_b0 ); //! filter coefficient | 3804 | func = make_new_mfun( "float", "b0", TwoPole_cget_b0 ); //! filter coefficient |
| 3805 | func->doc = "Get filter coefficient."; | 3805 | func->doc = "get filter coefficient."; |
| 3806 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3806 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3807 | | 3807 | |
| 3808 | func = make_new_mfun( "float", "freq", TwoPole_ctrl_freq ); //! filter resonance frequency | 3808 | func = make_new_mfun( "float", "freq", TwoPole_ctrl_freq ); //! filter resonance frequency |
| 3809 | func->add_arg( "float", "value" ); | 3809 | func->add_arg( "float", "value" ); |
| 3810 | func->doc = "Set filter resonance frequency."; | 3810 | func->doc = "set filter resonance frequency."; |
| 3811 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3811 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3812 | | 3812 | |
| 3813 | func = make_new_mfun( "float", "freq", TwoPole_cget_freq ); //! filter resonance frequency | 3813 | func = make_new_mfun( "float", "freq", TwoPole_cget_freq ); //! filter resonance frequency |
| 3814 | func->doc = "Get filter resonance frequency."; | 3814 | func->doc = "get filter resonance frequency."; |
| 3815 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3815 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3816 | | 3816 | |
| 3817 | func = make_new_mfun( "float", "radius", TwoPole_ctrl_radius ); //! filter resonance radius | 3817 | func = make_new_mfun( "float", "radius", TwoPole_ctrl_radius ); //! filter resonance radius |
| 3818 | func->add_arg( "float", "value" ); | 3818 | func->add_arg( "float", "value" ); |
| 3819 | func->doc = "Set filter radius resonance."; | 3819 | func->doc = "set filter radius resonance."; |
| 3820 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3820 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3821 | | 3821 | |
| 3822 | func = make_new_mfun( "float", "radius", TwoPole_cget_radius ); //! filter resonance radius | 3822 | func = make_new_mfun( "float", "radius", TwoPole_cget_radius ); //! filter resonance radius |
| 3823 | func->doc = "Get filter radius resonance."; | 3823 | func->doc = "get filter radius resonance."; |
| 3824 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3824 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3825 | | 3825 | |
| 3826 | func = make_new_mfun( "int", "norm", TwoPole_ctrl_norm ); //! toggle filter normalization | 3826 | func = make_new_mfun( "int", "norm", TwoPole_ctrl_norm ); //! toggle filter normalization |
| 3827 | func->add_arg( "int", "value" ); | 3827 | func->add_arg( "int", "value" ); |
| 3828 | func->doc = "Set filter normalization"; | 3828 | func->doc = "set filter normalization."; |
| 3829 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3829 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3830 | | 3830 | |
| 3831 | func = make_new_mfun( "int", "norm", TwoPole_cget_norm ); //! toggle filter normalization | 3831 | func = make_new_mfun( "int", "norm", TwoPole_cget_norm ); //! toggle filter normalization |
| 3832 | func->doc = "Get filter normalization"; | 3832 | func->doc = "get filter normalization."; |
| 3833 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3833 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3834 | | 3834 | |
| 3835 | | 3835 | |
| @@ -3840,7 +3840,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 3840 | //------------------------------------------------------------------------ | 3840 | //------------------------------------------------------------------------ |
| 3841 | // begin OneZero ugen | 3841 | // begin OneZero ugen |
| 3842 | //------------------------------------------------------------------------ | 3842 | //------------------------------------------------------------------------ |
| 3843 | doc = " This protected Filter subclass implements a one-zero digital filter. A method is provided for setting the zero position along the real axis of the z-plane while maintaining a constant filter gain.\n\ | 3843 | doc = "a one-zero digital filter. A method is provided for setting the zero position along the real axis of the z-plane while maintaining a constant filter gain.\n\ |
| 3844 | \n\ | 3844 | \n\ |
| 3845 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3845 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3846 | | 3846 | |
| @@ -3853,29 +3853,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 3853 | if( OneZero_offset_data == CK_INVALID_OFFSET ) goto error; | 3853 | if( OneZero_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3854 | func = make_new_mfun( "float", "zero", OneZero_ctrl_zero ); //! set zero position | 3854 | func = make_new_mfun( "float", "zero", OneZero_ctrl_zero ); //! set zero position |
| 3855 | func->add_arg( "float", "value" ); | 3855 | func->add_arg( "float", "value" ); |
| 3856 | func->doc = "Set zero position"; | 3856 | func->doc = "set zero position."; |
| 3857 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3857 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3858 | | 3858 | |
| 3859 | func = make_new_mfun( "float", "zero", OneZero_cget_zero ); //! set zero position | 3859 | func = make_new_mfun( "float", "zero", OneZero_cget_zero ); //! set zero position |
| 3860 | func->doc = "Get zero position"; | 3860 | func->doc = "get zero position."; |
| 3861 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3861 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3862 | | 3862 | |
| 3863 | func = make_new_mfun( "float", "b0", OneZero_ctrl_b0 ); //! filter coefficient | 3863 | func = make_new_mfun( "float", "b0", OneZero_ctrl_b0 ); //! filter coefficient |
| 3864 | func->add_arg( "float", "value" ); | 3864 | func->add_arg( "float", "value" ); |
| 3865 | func->doc = "Set filter coefficient."; | 3865 | func->doc = "set filter coefficient."; |
| 3866 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3866 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3867 | | 3867 | |
| 3868 | func = make_new_mfun( "float", "b0", OneZero_cget_b0 ); //! filter coefficient | 3868 | func = make_new_mfun( "float", "b0", OneZero_cget_b0 ); //! filter coefficient |
| 3869 | func->doc = "Get filter coefficient."; | 3869 | func->doc = "get filter coefficient."; |
| 3870 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3870 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3871 | | 3871 | |
| 3872 | func = make_new_mfun( "float", "b1", OneZero_ctrl_b1 ); //! filter coefficient | 3872 | func = make_new_mfun( "float", "b1", OneZero_ctrl_b1 ); //! filter coefficient |
| 3873 | func->add_arg( "float", "value" ); | 3873 | func->add_arg( "float", "value" ); |
| 3874 | func->doc = "Set filter coefficient."; | 3874 | func->doc = "set filter coefficient."; |
| 3875 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3875 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3876 | | 3876 | |
| 3877 | func = make_new_mfun( "float", "b1", OneZero_cget_b1 ); //! filter coefficient | 3877 | func = make_new_mfun( "float", "b1", OneZero_cget_b1 ); //! filter coefficient |
| 3878 | func->doc = "Get filter coefficient."; | 3878 | func->doc = "get filter coefficient."; |
| 3879 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3879 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3880 | | 3880 | |
| 3881 | | 3881 | |
| @@ -3887,7 +3887,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 3887 | // begin TwoZero ugen | 3887 | // begin TwoZero ugen |
| 3888 | //------------------------------------------------------------------------ | 3888 | //------------------------------------------------------------------------ |
| 3889 | | 3889 | |
| 3890 | doc = "This protected Filter subclass implements a two-zero digital filter. A method is provided for creating a 'notch' in the frequency response while maintaining a constant filter gain.\n\ | 3890 | doc = "a two-zero digital filter. A method is provided for creating a 'notch' in the frequency response while maintaining a constant filter gain.\n\ |
| 3891 | \n\ | 3891 | \n\ |
| 3892 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3892 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3893 | | 3893 | |
| @@ -3900,47 +3900,47 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 3900 | if( TwoZero_offset_data == CK_INVALID_OFFSET ) goto error; | 3900 | if( TwoZero_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3901 | func = make_new_mfun( "float", "b0", TwoZero_ctrl_b0 ); //! filter coefficient | 3901 | func = make_new_mfun( "float", "b0", TwoZero_ctrl_b0 ); //! filter coefficient |
| 3902 | func->add_arg( "float", "value" ); | 3902 | func->add_arg( "float", "value" ); |
| 3903 | func->doc = "Set filter coefficient."; | 3903 | func->doc = "set filter coefficient."; |
| 3904 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3904 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3905 | | 3905 | |
| 3906 | func = make_new_mfun( "float", "b0", TwoZero_cget_b0 ); //! filter coefficient | 3906 | func = make_new_mfun( "float", "b0", TwoZero_cget_b0 ); //! filter coefficient |
| 3907 | func->doc = "Get filter coefficient."; | 3907 | func->doc = "get filter coefficient."; |
| 3908 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3908 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3909 | | 3909 | |
| 3910 | func = make_new_mfun( "float", "b1", TwoZero_ctrl_b1 ); //! filter coefficient | 3910 | func = make_new_mfun( "float", "b1", TwoZero_ctrl_b1 ); //! filter coefficient |
| 3911 | func->add_arg( "float", "value" ); | 3911 | func->add_arg( "float", "value" ); |
| 3912 | func->doc = "Set filter coefficient."; | 3912 | func->doc = "set filter coefficient."; |
| 3913 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3913 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3914 | | 3914 | |
| 3915 | func = make_new_mfun( "float", "b1", TwoZero_cget_b1 ); //! filter coefficient | 3915 | func = make_new_mfun( "float", "b1", TwoZero_cget_b1 ); //! filter coefficient |
| 3916 | func->doc = "Get filter coefficient."; | 3916 | func->doc = "get filter coefficient."; |
| 3917 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3917 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3918 | | 3918 | |
| 3919 | func = make_new_mfun( "float", "b2", TwoZero_ctrl_b2 ); //! filter coefficient | 3919 | func = make_new_mfun( "float", "b2", TwoZero_ctrl_b2 ); //! filter coefficient |
| 3920 | func->add_arg( "float", "value" ); | 3920 | func->add_arg( "float", "value" ); |
| 3921 | func->doc = "Set filter coefficient."; | 3921 | func->doc = "set filter coefficient."; |
| 3922 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3922 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3923 | | 3923 | |
| 3924 | func = make_new_mfun( "float", "b2", TwoZero_cget_b2 ); //! filter coefficient | 3924 | func = make_new_mfun( "float", "b2", TwoZero_cget_b2 ); //! filter coefficient |
| 3925 | func->doc = "Get filter coefficient."; | 3925 | func->doc = "get filter coefficient."; |
| 3926 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3926 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3927 | | 3927 | |
| 3928 | func = make_new_mfun( "float", "freq", TwoZero_ctrl_freq ); //! filter notch frequency | 3928 | func = make_new_mfun( "float", "freq", TwoZero_ctrl_freq ); //! filter notch frequency |
| 3929 | func->add_arg( "float", "value" ); | 3929 | func->add_arg( "float", "value" ); |
| 3930 | func->doc = "Set filter notch frequency."; | 3930 | func->doc = "set filter notch frequency."; |
| 3931 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3931 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3932 | | 3932 | |
| 3933 | func = make_new_mfun( "float", "freq", TwoZero_cget_freq ); //! filter notch frequency | 3933 | func = make_new_mfun( "float", "freq", TwoZero_cget_freq ); //! filter notch frequency |
| 3934 | func->doc = "Get filter notch frequency."; | 3934 | func->doc = "get filter notch frequency."; |
| 3935 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3935 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3936 | | 3936 | |
| 3937 | func = make_new_mfun( "float", "radius", TwoZero_ctrl_radius ); //! filter notch radius | 3937 | func = make_new_mfun( "float", "radius", TwoZero_ctrl_radius ); //! filter notch radius |
| 3938 | func->add_arg( "float", "value" ); | 3938 | func->add_arg( "float", "value" ); |
| 3939 | func->doc = "Set filter notch radius."; | 3939 | func->doc = "set filter notch radius."; |
| 3940 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3940 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3941 | | 3941 | |
| 3942 | func = make_new_mfun( "float", "radius", TwoZero_cget_radius ); //! filter notch radius | 3942 | func = make_new_mfun( "float", "radius", TwoZero_cget_radius ); //! filter notch radius |
| 3943 | func->doc = "Get filter notch radius."; | 3943 | func->doc = "get filter notch radius."; |
| 3944 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3944 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3945 | | 3945 | |
| 3946 | | 3946 | |
| @@ -3952,7 +3952,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 3952 | // begin PoleZero ugen | 3952 | // begin PoleZero ugen |
| 3953 | //------------------------------------------------------------------------ | 3953 | //------------------------------------------------------------------------ |
| 3954 | | 3954 | |
| 3955 | doc = "This protected Filter subclass implements a one-pole, one-zero digital filter. A method is provided for creating an allpass filter with a given coefficient. Another method is provided to create a DC blocking filter.\n\ | 3955 | doc = "a one-pole, one-zero digital filter. A method is provided for creating an allpass filter with a given coefficient. Another method is provided to create a DC blocking filter.\n\ |
| 3956 | \n\ | 3956 | \n\ |
| 3957 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 3957 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 3958 | | 3958 | |
| @@ -3965,47 +3965,47 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 3965 | if( PoleZero_offset_data == CK_INVALID_OFFSET ) goto error; | 3965 | if( PoleZero_offset_data == CK_INVALID_OFFSET ) goto error; |
| 3966 | func = make_new_mfun( "float", "a1", PoleZero_ctrl_a1 ); //! filter coefficient | 3966 | func = make_new_mfun( "float", "a1", PoleZero_ctrl_a1 ); //! filter coefficient |
| 3967 | func->add_arg( "float", "value" ); | 3967 | func->add_arg( "float", "value" ); |
| 3968 | func->doc = "Set filter coefficient."; | 3968 | func->doc = "set filter coefficient."; |
| 3969 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3969 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3970 | | 3970 | |
| 3971 | func = make_new_mfun( "float", "a1", PoleZero_cget_a1 ); //! filter coefficient | 3971 | func = make_new_mfun( "float", "a1", PoleZero_cget_a1 ); //! filter coefficient |
| 3972 | func->doc = "Get filter coefficient."; | 3972 | func->doc = "get filter coefficient."; |
| 3973 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3973 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3974 | | 3974 | |
| 3975 | func = make_new_mfun( "float", "b0", PoleZero_ctrl_b0 ); //! filter coefficient | 3975 | func = make_new_mfun( "float", "b0", PoleZero_ctrl_b0 ); //! filter coefficient |
| 3976 | func->add_arg( "float", "value" ); | 3976 | func->add_arg( "float", "value" ); |
| 3977 | func->doc = "Set filter coefficient."; | 3977 | func->doc = "set filter coefficient."; |
| 3978 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3978 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3979 | | 3979 | |
| 3980 | func = make_new_mfun( "float", "b0", PoleZero_cget_b0 ); //! filter coefficient | 3980 | func = make_new_mfun( "float", "b0", PoleZero_cget_b0 ); //! filter coefficient |
| 3981 | func->doc = "Get filter coefficient."; | 3981 | func->doc = "get filter coefficient."; |
| 3982 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3982 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3983 | | 3983 | |
| 3984 | func = make_new_mfun( "float", "b1", PoleZero_ctrl_b1 ); //! filter coefficient | 3984 | func = make_new_mfun( "float", "b1", PoleZero_ctrl_b1 ); //! filter coefficient |
| 3985 | func->add_arg( "float", "value" ); | 3985 | func->add_arg( "float", "value" ); |
| 3986 | func->doc = "Set filter coefficient."; | 3986 | func->doc = "set filter coefficient."; |
| 3987 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3987 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3988 | | 3988 | |
| 3989 | func = make_new_mfun( "float", "b1", PoleZero_cget_b1 ); //! filter coefficient | 3989 | func = make_new_mfun( "float", "b1", PoleZero_cget_b1 ); //! filter coefficient |
| 3990 | func->doc = "Get filter coefficient."; | 3990 | func->doc = "get filter coefficient."; |
| 3991 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3991 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3992 | | 3992 | |
| 3993 | func = make_new_mfun( "float", "blockZero", PoleZero_ctrl_blockZero ); //! DC blocking filter with given pole position | 3993 | func = make_new_mfun( "float", "blockZero", PoleZero_ctrl_blockZero ); //! DC blocking filter with given pole position |
| 3994 | func->add_arg( "float", "value" ); | 3994 | func->add_arg( "float", "value" ); |
| 3995 | func->doc = "Set DC blocking filter with given pole position."; | 3995 | func->doc = "set DC blocking filter with given pole position."; |
| 3996 | if( !type_engine_import_mfun( env, func ) ) goto error; | 3996 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 3997 | | 3997 | |
| 3998 | func = make_new_mfun( "float", "blockZero", PoleZero_cget_blockZero ); //! DC blocking filter with given pole position | 3998 | func = make_new_mfun( "float", "blockZero", PoleZero_cget_blockZero ); //! DC blocking filter with given pole position |
| 3999 | func->doc = "Get DC blocking filter with given pole position."; | 3999 | func->doc = "get DC blocking filter with given pole position."; |
| 4000 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4000 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4001 | | 4001 | |
| 4002 | func = make_new_mfun( "float", "allpass", PoleZero_ctrl_allpass ); //!allpass filter with given coefficient | 4002 | func = make_new_mfun( "float", "allpass", PoleZero_ctrl_allpass ); //!allpass filter with given coefficient |
| 4003 | func->add_arg( "float", "value" ); | 4003 | func->add_arg( "float", "value" ); |
| 4004 | func->doc = "Set allpass filter with given coefficient."; | 4004 | func->doc = "set allpass filter with given coefficient."; |
| 4005 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4005 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4006 | | 4006 | |
| 4007 | func = make_new_mfun( "float", "allpass", PoleZero_cget_allpass ); //!allpass filter with given coefficient | 4007 | func = make_new_mfun( "float", "allpass", PoleZero_cget_allpass ); //!allpass filter with given coefficient |
| 4008 | func->doc = "Get allpass filter with given coefficient."; | 4008 | func->doc = "get allpass filter with given coefficient."; |
| 4009 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4009 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4010 | | 4010 | |
| 4011 | // end the class import | 4011 | // end the class import |
| @@ -4021,7 +4021,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 9 unmodified lines |
| 4021 | // begin JCRev ugen | 4021 | // begin JCRev ugen |
| 4022 | //------------------------------------------------------------------------ | 4022 | //------------------------------------------------------------------------ |
| 4023 | | 4023 | |
| 4024 | doc = "John Chowning's reverberator class. This class is derived from the CLM NRev function, which is based on the use of networks of simple allpass and comb delay filters. This particular arrangement consists of 6 comb filters in parallel, followed by 3 allpass filters, a lowpass filter, and another allpass in series, followed by two allpass filters in parallel with corresponding right and left outputs.\n\ | 4024 | doc = "John Chowning's reverberator class. This class is derived from the CLM NRev function, which is based on the use of networks of simple allpass and comb delay filters. This particular arrangement consists of 6 comb filters in parallel, followed by 3 allpass filters, a lowpass filter, and another allpass in series, followed by two allpass filters in parallel with corresponding right and left outputs.\n\ |
| 4025 | \n\ | 4025 | \n\ |
| 4026 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4026 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4027 | | 4027 | |
| @@ -4034,11 +4034,11 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4034 | if( JCRev_offset_data == CK_INVALID_OFFSET ) goto error; | 4034 | if( JCRev_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4035 | func = make_new_mfun( "float", "mix", JCRev_ctrl_mix ); //! mix level | 4035 | func = make_new_mfun( "float", "mix", JCRev_ctrl_mix ); //! mix level |
| 4036 | func->add_arg( "float", "value" ); | 4036 | func->add_arg( "float", "value" ); |
| 4037 | func->doc = "Set mix level."; | 4037 | func->doc = "set mix level."; |
| 4038 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4038 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4039 | | 4039 | |
| 4040 | func = make_new_mfun( "float", "mix", JCRev_cget_mix ); //! mix level | 4040 | func = make_new_mfun( "float", "mix", JCRev_cget_mix ); //! mix level |
| 4041 | func->doc = "Get mix level."; | 4041 | func->doc = "get mix level."; |
| 4042 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4042 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4043 | | 4043 | |
| 4044 | | 4044 | |
| @@ -4050,7 +4050,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 4050 | // begin NRev ugen | 4050 | // begin NRev ugen |
| 4051 | //------------------------------------------------------------------------ | 4051 | //------------------------------------------------------------------------ |
| 4052 | | 4052 | |
| 4053 | doc = "CCRMA's NRev reverberator class. This class is derived from the CLM NRev function, which is based on the use of networks of simple allpass and comb delay filters. This particular arrangement consists of 6 comb filters in parallel, followed by 3 allpass filters, a lowpass filter, and another allpass in series, followed by two allpass filters in parallel with corresponding rightand left outputs.\n\ | 4053 | doc = "CCRMA's NRev reverberator class. This class is derived from the CLM NRev function, which is based on the use of networks of simple allpass and comb delay filters. This particular arrangement consists of 6 comb filters in parallel, followed by 3 allpass filters, a lowpass filter, and another allpass in series, followed by two allpass filters in parallel with corresponding rightand left outputs.\n\ |
| 4054 | \n\ | 4054 | \n\ |
| 4055 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4055 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4056 | | 4056 | |
| @@ -4063,11 +4063,11 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4063 | if( NRev_offset_data == CK_INVALID_OFFSET ) goto error; | 4063 | if( NRev_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4064 | func = make_new_mfun( "float", "mix", NRev_ctrl_mix ); // set effect mix | 4064 | func = make_new_mfun( "float", "mix", NRev_ctrl_mix ); // set effect mix |
| 4065 | func->add_arg( "float", "value" ); | 4065 | func->add_arg( "float", "value" ); |
| 4066 | func->doc = "Set mix level."; | 4066 | func->doc = "set mix level."; |
| 4067 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4067 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4068 | | 4068 | |
| 4069 | func = make_new_mfun( "float", "mix", NRev_cget_mix ); // set effect mix | 4069 | func = make_new_mfun( "float", "mix", NRev_cget_mix ); // set effect mix |
| 4070 | func->doc = "Get mix level."; | 4070 | func->doc = "get mix level."; |
| 4071 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4071 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4072 | | 4072 | |
| 4073 | // end the class import | 4073 | // end the class import |
| @@ -4078,7 +4078,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 4078 | // begin PRCRev ugen | 4078 | // begin PRCRev ugen |
| 4079 | //------------------------------------------------------------------------ | 4079 | //------------------------------------------------------------------------ |
| 4080 | | 4080 | |
| 4081 | doc = "Perry's simple reverberator class. This class is based on some of the famous Stanford/CCRMA reverbs (NRev, KipRev), which were based on the Chowning/Moorer/Schroeder reverberators using networks of simple allpass and comb delay filters. This class implements two series allpass units and two parallel comb filters.\n\ | 4081 | doc = "Perry's simple reverberator class. This class is based on some of the famous Stanford/CCRMA reverbs (NRev, KipRev), which were based on the Chowning/Moorer/Schroeder reverberators using networks of simple allpass and comb delay filters. This class implements two series allpass units and two parallel comb filters.\n\ |
| 4082 | \n\ | 4082 | \n\ |
| 4083 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4083 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4084 | | 4084 | |
| @@ -4091,11 +4091,11 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4091 | if( PRCRev_offset_data == CK_INVALID_OFFSET ) goto error; | 4091 | if( PRCRev_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4092 | func = make_new_mfun( "float", "mix", PRCRev_ctrl_mix ); //! mix level | 4092 | func = make_new_mfun( "float", "mix", PRCRev_ctrl_mix ); //! mix level |
| 4093 | func->add_arg( "float", "value" ); | 4093 | func->add_arg( "float", "value" ); |
| 4094 | func->doc = "Set mix level."; | 4094 | func->doc = "set mix level."; |
| 4095 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4095 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4096 | | 4096 | |
| 4097 | func = make_new_mfun( "float", "mix", PRCRev_cget_mix ); //! mix level | 4097 | func = make_new_mfun( "float", "mix", PRCRev_cget_mix ); //! mix level |
| 4098 | func->doc = "Get mix level."; | 4098 | func->doc = "get mix level."; |
| 4099 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4099 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4100 | | 4100 | |
| 4101 | // end the class import | 4101 | // end the class import |
| @@ -4107,7 +4107,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 4107 | // begin Chorus ugen | 4107 | // begin Chorus ugen |
| 4108 | //------------------------------------------------------------------------ | 4108 | //------------------------------------------------------------------------ |
| 4109 | | 4109 | |
| 4110 | doc = "Implements a chorus effect.\n\ | 4110 | doc = "a chorus effect.\n\ |
| 4111 | \n\ | 4111 | \n\ |
| 4112 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4112 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4113 | | 4113 | |
| @@ -4120,38 +4120,38 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4120 | if( Chorus_offset_data == CK_INVALID_OFFSET ) goto error; | 4120 | if( Chorus_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4121 | func = make_new_mfun( "float", "modFreq", Chorus_ctrl_modFreq ); //! modulation frequency | 4121 | func = make_new_mfun( "float", "modFreq", Chorus_ctrl_modFreq ); //! modulation frequency |
| 4122 | func->add_arg( "float", "value" ); | 4122 | func->add_arg( "float", "value" ); |
| 4123 | func->doc = "Set modulation frequency."; | 4123 | func->doc = "set modulation frequency."; |
| 4124 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4124 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4125 | | 4125 | |
| 4126 | func = make_new_mfun( "float", "modFreq", Chorus_cget_modFreq ); //! modulation frequency | 4126 | func = make_new_mfun( "float", "modFreq", Chorus_cget_modFreq ); //! modulation frequency |
| 4127 | func->doc = "Get modulation frequency."; | 4127 | func->doc = "get modulation frequency."; |
| 4128 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4128 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4129 | | 4129 | |
| 4130 | func = make_new_mfun( "float", "modDepth", Chorus_ctrl_modDepth ); //! modulation depth | 4130 | func = make_new_mfun( "float", "modDepth", Chorus_ctrl_modDepth ); //! modulation depth |
| 4131 | func->add_arg( "float", "value" ); | 4131 | func->add_arg( "float", "value" ); |
| 4132 | func->doc = "Set modulation depth."; | 4132 | func->doc = "set modulation depth."; |
| 4133 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4133 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4134 | | 4134 | |
| 4135 | func = make_new_mfun( "float", "modDepth", Chorus_cget_modDepth ); //! modulation depth | 4135 | func = make_new_mfun( "float", "modDepth", Chorus_cget_modDepth ); //! modulation depth |
| 4136 | func->doc = "Get modulation depth."; | 4136 | func->doc = "get modulation depth."; |
| 4137 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4137 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4138 | | 4138 | |
| 4139 | func = make_new_mfun( "dur", "baseDelay", Chorus_ctrl_baseDelay ); //! base delay | 4139 | func = make_new_mfun( "dur", "baseDelay", Chorus_ctrl_baseDelay ); //! base delay |
| 4140 | func->add_arg( "dur", "value" ); | 4140 | func->add_arg( "dur", "value" ); |
| 4141 | func->doc = "Set base delay."; | 4141 | func->doc = "set base delay."; |
| 4142 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4142 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4143 | | 4143 | |
| 4144 | func = make_new_mfun( "dur", "baseDelay", Chorus_cget_baseDelay ); //! base delay | 4144 | func = make_new_mfun( "dur", "baseDelay", Chorus_cget_baseDelay ); //! base delay |
| 4145 | func->doc = "Get base delay."; | 4145 | func->doc = "get base delay."; |
| 4146 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4146 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4147 | | 4147 | |
| 4148 | func = make_new_mfun( "float", "mix", Chorus_ctrl_mix ); //! effect mix | 4148 | func = make_new_mfun( "float", "mix", Chorus_ctrl_mix ); //! effect mix |
| 4149 | func->add_arg( "float", "value" ); | 4149 | func->add_arg( "float", "value" ); |
| 4150 | func->doc = "Set effect mix."; | 4150 | func->doc = "set effect mix."; |
| 4151 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4151 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4152 | | 4152 | |
| 4153 | func = make_new_mfun( "float", "mix", Chorus_cget_mix ); //! effect mix | 4153 | func = make_new_mfun( "float", "mix", Chorus_cget_mix ); //! effect mix |
| 4154 | func->doc = "Get effect mix."; | 4154 | func->doc = "get effect mix."; |
| 4155 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4155 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4156 | | 4156 | |
| 4157 | func = make_new_mfun( "void", "max", Chorus_ctrl_set ); | 4157 | func = make_new_mfun( "void", "max", Chorus_ctrl_set ); |
| @@ -4168,7 +4168,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 10 unmodified lines |
| 4168 | // begin Modulate ugen | 4168 | // begin Modulate ugen |
| 4169 | //------------------------------------------------------------------------ | 4169 | //------------------------------------------------------------------------ |
| 4170 | | 4170 | |
| 4171 | doc = "This class combines random and periodic modulations to give a nice, natural human modulation function.\n\ | 4171 | doc = "combines random and periodic modulations to give a nice, natural human modulation function.\n\ |
| 4172 | \n\ | 4172 | \n\ |
| 4173 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4173 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4174 | | 4174 | |
| @@ -4181,29 +4181,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4181 | if( Modulate_offset_data == CK_INVALID_OFFSET ) goto error; | 4181 | if( Modulate_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4182 | func = make_new_mfun( "float", "vibratoRate", Modulate_ctrl_vibratoRate ); //! set rate of vibrato | 4182 | func = make_new_mfun( "float", "vibratoRate", Modulate_ctrl_vibratoRate ); //! set rate of vibrato |
| 4183 | func->add_arg( "float", "value" ); | 4183 | func->add_arg( "float", "value" ); |
| 4184 | func->doc = "Set rate for vibrato."; | 4184 | func->doc = "set rate for vibrato."; |
| 4185 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4185 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4186 | | 4186 | |
| 4187 | func = make_new_mfun( "float", "vibratoRate", Modulate_cget_vibratoRate ); //! set rate of vibrato | 4187 | func = make_new_mfun( "float", "vibratoRate", Modulate_cget_vibratoRate ); //! set rate of vibrato |
| 4188 | func->doc = "Get rate for vibrato."; | 4188 | func->doc = "get rate for vibrato."; |
| 4189 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4189 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4190 | | 4190 | |
| 4191 | func = make_new_mfun( "float", "vibratoGain", Modulate_ctrl_vibratoGain ); //! gain for vibrato | 4191 | func = make_new_mfun( "float", "vibratoGain", Modulate_ctrl_vibratoGain ); //! gain for vibrato |
| 4192 | func->add_arg( "float", "value" ); | 4192 | func->add_arg( "float", "value" ); |
| 4193 | func->doc = "Set gain for vibrato."; | 4193 | func->doc = "set gain for vibrato."; |
| 4194 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4194 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4195 | | 4195 | |
| 4196 | func = make_new_mfun( "float", "vibratoGain", Modulate_cget_vibratoGain ); //! gain for vibrato | 4196 | func = make_new_mfun( "float", "vibratoGain", Modulate_cget_vibratoGain ); //! gain for vibrato |
| 4197 | func->doc = "Get gain for vibrato."; | 4197 | func->doc = "get gain for vibrato."; |
| 4198 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4198 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4199 | | 4199 | |
| 4200 | func = make_new_mfun( "float", "randomGain", Modulate_ctrl_randomGain ); //! gain for random contribution | 4200 | func = make_new_mfun( "float", "randomGain", Modulate_ctrl_randomGain ); //! gain for random contribution |
| 4201 | func->add_arg( "float", "value" ); | 4201 | func->add_arg( "float", "value" ); |
| 4202 | func->doc = "Set gain for random contribution"; | 4202 | func->doc = "set gain for random contribution."; |
| 4203 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4203 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4204 | | 4204 | |
| 4205 | func = make_new_mfun( "float", "randomGain", Modulate_cget_randomGain ); //! gain for random contribution | 4205 | func = make_new_mfun( "float", "randomGain", Modulate_cget_randomGain ); //! gain for random contribution |
| 4206 | func->doc = "Get gain for random contribution"; | 4206 | func->doc = "get gain for random contribution."; |
| 4207 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4207 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4208 | | 4208 | |
| 4209 | | 4209 | |
| @@ -4215,7 +4215,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 4215 | // begin PitShift ugen | 4215 | // begin PitShift ugen |
| 4216 | //------------------------------------------------------------------------ | 4216 | //------------------------------------------------------------------------ |
| 4217 | | 4217 | |
| 4218 | doc = "This class implements a simple pitch shifter using delay lines.\n\ | 4218 | doc = "a simple pitch shifter using delay lines.\n\ |
| 4219 | \n\ | 4219 | \n\ |
| 4220 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4220 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4221 | | 4221 | |
| @@ -4228,30 +4228,30 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4228 | if( PitShift_offset_data == CK_INVALID_OFFSET ) goto error; | 4228 | if( PitShift_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4229 | func = make_new_mfun( "float", "shift", PitShift_ctrl_shift ); //! degree of pitch shifting | 4229 | func = make_new_mfun( "float", "shift", PitShift_ctrl_shift ); //! degree of pitch shifting |
| 4230 | func->add_arg( "float", "value" ); | 4230 | func->add_arg( "float", "value" ); |
| 4231 | func->doc = "Set degree of pitch shifting"; | 4231 | func->doc = "set degree of pitch shifting"; |
| 4232 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4232 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4233 | | 4233 | |
| 4234 | func = make_new_mfun( "float", "shift", PitShift_cget_shift ); //! degree of pitch shifting | 4234 | func = make_new_mfun( "float", "shift", PitShift_cget_shift ); //! degree of pitch shifting |
| 4235 | func->doc = "Get degree of pitch shifting"; | 4235 | func->doc = "get degree of pitch shifting"; |
| 4236 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4236 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4237 | | 4237 | |
| 4238 | func = make_new_mfun( "float", "mix", PitShift_ctrl_effectMix ); //! mix level | 4238 | func = make_new_mfun( "float", "mix", PitShift_ctrl_effectMix ); //! mix level |
| 4239 | func->add_arg( "float", "value" ); | 4239 | func->add_arg( "float", "value" ); |
| 4240 | func->doc = "Set mix level"; | 4240 | func->doc = "set mix level"; |
| 4241 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4241 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4242 | | 4242 | |
| 4243 | func = make_new_mfun( "float", "mix", PitShift_cget_effectMix ); //! mix level | 4243 | func = make_new_mfun( "float", "mix", PitShift_cget_effectMix ); //! mix level |
| 4244 | func->doc = "Get mix level"; | 4244 | func->doc = "get mix level"; |
| 4245 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4245 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4246 | | 4246 | |
| 4247 | func = make_new_mfun( "float", "effectMix", PitShift_ctrl_effectMix ); //! mix level | 4247 | func = make_new_mfun( "float", "effectMix", PitShift_ctrl_effectMix ); //! mix level |
| 4248 | func->doc = "Set effect mix level"; | 4248 | func->doc = "set effect mix level"; |
| 4249 | func->add_arg( "float", "value" ); | 4249 | func->add_arg( "float", "value" ); |
| 4250 | | 4250 | |
| 4251 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4251 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4252 | | 4252 | |
| 4253 | func = make_new_mfun( "float", "effectMix", PitShift_cget_effectMix ); //! mix level | 4253 | func = make_new_mfun( "float", "effectMix", PitShift_cget_effectMix ); //! mix level |
| 4254 | func->doc = "Get effect mix level"; | 4254 | func->doc = "get effect mix level"; |
| 4255 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4255 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4256 | | 4256 | |
| 4257 | | 4257 | |
| @@ -4263,7 +4263,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 4263 | // begin SubNoise ugen | 4263 | // begin SubNoise ugen |
| 4264 | //------------------------------------------------------------------------ | 4264 | //------------------------------------------------------------------------ |
| 4265 | | 4265 | |
| 4266 | doc = "Generates a new random number every 'rate' ticks using the C `rand()` function. The quality of the r`and()` function varies from one OS to another.\n\ | 4266 | doc = "generates a new random number every 'rate' ticks using the C `rand()` function. The quality of the r`and()` function varies from one OS to another.\n\ |
| 4267 | \n\ | 4267 | \n\ |
| 4268 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; | 4268 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; |
| 4269 | | 4269 | |
| @@ -4276,11 +4276,11 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4276 | if( SubNoise_offset_data == CK_INVALID_OFFSET ) goto error; | 4276 | if( SubNoise_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4277 | func = make_new_mfun( "int", "rate", SubNoise_ctrl_rate ); //! subsampling rate | 4277 | func = make_new_mfun( "int", "rate", SubNoise_ctrl_rate ); //! subsampling rate |
| 4278 | func->add_arg( "int", "value" ); | 4278 | func->add_arg( "int", "value" ); |
| 4279 | func->doc = "Set subsampling rate"; | 4279 | func->doc = "set subsampling rate"; |
| 4280 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4280 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4281 | | 4281 | |
| 4282 | func = make_new_mfun( "int", "rate", SubNoise_cget_rate ); //! subsampling rate | 4282 | func = make_new_mfun( "int", "rate", SubNoise_cget_rate ); //! subsampling rate |
| 4283 | func->doc = "Get subsampling rate"; | 4283 | func->doc = "get subsampling rate"; |
| 4284 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4284 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4285 | | 4285 | |
| 4286 | // end the class import | 4286 | // end the class import |
| @@ -4293,7 +4293,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4293 | // begin WvIn ugen | 4293 | // begin WvIn ugen |
| 4294 | //------------------------------------------------------------------------ | 4294 | //------------------------------------------------------------------------ |
| 4295 | | 4295 | |
| 4296 | doc = "This class provides input support for various audio file formats. It also serves as a base class for 'realtime' streaming subclasses.\n\ | 4296 | doc = "input support for various audio file formats. It also serves as a base class for 'realtime' streaming subclasses.\n\ |
| 4297 | \n\ | 4297 | \n\ |
| 4298 | WvIn loads the contents of an audio file for subsequent output. Linear interpolation is used for fractional 'read rates'.\n\ | 4298 | WvIn loads the contents of an audio file for subsequent output. Linear interpolation is used for fractional 'read rates'.\n\ |
| 4299 | \n\ | 4299 | \n\ |
| @@ -4312,20 +4312,20 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 12 unmodified lines |
| 4312 | if( WvIn_offset_data == CK_INVALID_OFFSET ) goto error; | 4312 | if( WvIn_offset_data == CK_INVALID_OFFSET ) goto error; |
| 4313 | func = make_new_mfun( "float", "rate", WvIn_ctrl_rate ); //! playback rate | 4313 | func = make_new_mfun( "float", "rate", WvIn_ctrl_rate ); //! playback rate |
| 4314 | func->add_arg( "float", "value" ); | 4314 | func->add_arg( "float", "value" ); |
| 4315 | func->doc = "Set playback rate."; | 4315 | func->doc = "set playback rate."; |
| 4316 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4316 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4317 | | 4317 | |
| 4318 | func = make_new_mfun( "float", "rate", WvIn_cget_rate ); //! playback rate | 4318 | func = make_new_mfun( "float", "rate", WvIn_cget_rate ); //! playback rate |
| 4319 | func->doc = "Get playback rate."; | 4319 | func->doc = "get playback rate."; |
| 4320 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4320 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4321 | | 4321 | |
| 4322 | func = make_new_mfun( "string", "path", WvIn_ctrl_path ); //! specifies file to be played | 4322 | func = make_new_mfun( "string", "path", WvIn_ctrl_path ); //! specifies file to be played |
| 4323 | func->add_arg( "string", "value" ); | 4323 | func->add_arg( "string", "value" ); |
| 4324 | func->doc = "Set file to be played."; | 4324 | func->doc = "set file to be played."; |
| 4325 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4325 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4326 | | 4326 | |
| 4327 | func = make_new_mfun( "string", "path", WvIn_cget_path ); //! specifies file to be played | 4327 | func = make_new_mfun( "string", "path", WvIn_cget_path ); //! specifies file to be played |
| 4328 | func->doc = "Get file to be played."; | 4328 | func->doc = "get file to be played."; |
| 4329 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4329 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4330 | | 4330 | |
| 4331 | | 4331 | |
| @@ -4337,7 +4337,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 4337 | // begin WaveLoop ugen | 4337 | // begin WaveLoop ugen |
| 4338 | //------------------------------------------------------------------------ | 4338 | //------------------------------------------------------------------------ |
| 4339 | | 4339 | |
| 4340 | doc = "This class inherits from WvIn and provides audio file looping functionality.\n\ | 4340 | doc = "inherits from WvIn and provides audio file looping functionality.\n\ |
| 4341 | \n\ | 4341 | \n\ |
| 4342 | WaveLoop supports multi-channel data in interleaved format. It is important to distinguish the `tick()` methods, which return samples produced by averaging across sample frames, from the `tickFrame()` methods, which return pointers to multi-channel sample frames. For single-channel data, these methods return equivalent values.\n\ | 4342 | WaveLoop supports multi-channel data in interleaved format. It is important to distinguish the `tick()` methods, which return samples produced by averaging across sample frames, from the `tickFrame()` methods, which return pointers to multi-channel sample frames. For single-channel data, these methods return equivalent values.\n\ |
| 4343 | \n\ | 4343 | \n\ |
| @@ -4350,29 +4350,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 6 unmodified lines |
| 4350 | | 4350 | |
| 4351 | func = make_new_mfun( "float", "freq", WaveLoop_ctrl_freq ); //! set frequency of playback ( loops / second ) | 4351 | func = make_new_mfun( "float", "freq", WaveLoop_ctrl_freq ); //! set frequency of playback ( loops / second ) |
| 4352 | func->add_arg( "float", "value" ); | 4352 | func->add_arg( "float", "value" ); |
| 4353 | func->doc = "Set frequency of playback (loops/second)."; | 4353 | func->doc = "set frequency of playback (loops/second)."; |
| 4354 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4354 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4355 | | 4355 | |
| 4356 | func = make_new_mfun( "float", "freq", WaveLoop_cget_freq ); //! set frequency of playback ( loops / second ) | 4356 | func = make_new_mfun( "float", "freq", WaveLoop_cget_freq ); //! set frequency of playback ( loops / second ) |
| 4357 | func->doc = "Get frequency of playback (loops/second)."; | 4357 | func->doc = "get frequency of playback (loops/second)."; |
| 4358 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4358 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4359 | | 4359 | |
| 4360 | func = make_new_mfun( "float", "addPhase", WaveLoop_ctrl_phase ); //! offset by phase | 4360 | func = make_new_mfun( "float", "addPhase", WaveLoop_ctrl_phase ); //! offset by phase |
| 4361 | func->add_arg( "float", "value" ); | 4361 | func->add_arg( "float", "value" ); |
| 4362 | func->doc = "Set offset by phase."; | 4362 | func->doc = "set offset by phase."; |
| 4363 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4363 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4364 | | 4364 | |
| 4365 | func = make_new_mfun( "float", "addPhase", WaveLoop_cget_phase ); //! offset by phase | 4365 | func = make_new_mfun( "float", "addPhase", WaveLoop_cget_phase ); //! offset by phase |
| 4366 | func->doc = "Get offset by phase."; | 4366 | func->doc = "get offset by phase."; |
| 4367 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4367 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4368 | | 4368 | |
| 4369 | func = make_new_mfun( "float", "addPhaseOffset", WaveLoop_ctrl_phaseOffset ); //! set phase offset | 4369 | func = make_new_mfun( "float", "addPhaseOffset", WaveLoop_ctrl_phaseOffset ); //! set phase offset |
| 4370 | func->add_arg( "float", "value" ); | 4370 | func->add_arg( "float", "value" ); |
| 4371 | func->doc = "Set phase offset."; | 4371 | func->doc = "set phase offset."; |
| 4372 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4372 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4373 | | 4373 | |
| 4374 | func = make_new_mfun( "float", "addPhaseOffset", WaveLoop_cget_phaseOffset ); //! set phase offset | 4374 | func = make_new_mfun( "float", "addPhaseOffset", WaveLoop_cget_phaseOffset ); //! set phase offset |
| 4375 | func->doc = "Get phase offset."; | 4375 | func->doc = "get phase offset."; |
| 4376 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4376 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4377 | | 4377 | |
| 4378 | // end the class import | 4378 | // end the class import |
| @@ -4384,11 +4384,11 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 5 unmodified lines |
| 4384 | // begin WvOut ugen | 4384 | // begin WvOut ugen |
| 4385 | //------------------------------------------------------------------------ | 4385 | //------------------------------------------------------------------------ |
| 4386 | | 4386 | |
| 4387 | doc = "This class provides output support for various audio file formats. It also serves as a base class for 'realtime' streaming subclasses.\n\ | 4387 | doc = "output support for various audio file formats. It also serves as a base class for 'realtime' streaming subclasses.\n\ |
| 4388 | \n\ | 4388 | \n\ |
| 4389 | WvOut writes samples to an audio file. It supports multi-channel data in interleaved format. It is important to distinguish the `tick()` methods, which output single samples to all channels in a sample frame, from the `tickFrame()` method, which takes a pointer to multi-channel sample frame data.\n\ | 4389 | WvOut writes samples to an audio file. It supports multi-channel data in interleaved format. It is important to distinguish the `tick()` methods, which output single samples to all channels in a sample frame, from the `tickFrame()` method, which takes a pointer to multi-channel sample frame data.\n\ |
| 4390 | \n\ | 4390 | \n\ |
| 4391 | WvOut currently supports WAV, AIFF, AIFC, SND (AU), MAT-file (Matlab), and STK RAW file formats. Signed integer (8-, 16-, and 32-bit) and floating- point (32- and 64-bit) data types are supported. STK RAW files use 16-bit integers by definition. MAT-files will always be written as 64-bit floats. If a data type specification does not match the specified file type, the data type will automatically be modified. Uncompressed data types are not supported.\n\ | 4391 | WvOut currently supports WAV, AIFF, AIFC, SND (AU), MAT-file (Matlab), and STK RAW file formats. Signed integer (8-, 16-, and 32-bit) and floating- point (32- and 64-bit) data types are supported. STK RAW files use 16-bit integers by definition. MAT-files will always be written as 64-bit floats. If a data type specification does not match the specified file type, the data type will automatically be modified. Uncompressed data types are not supported.\n\ |
| 4392 | \n\ | 4392 | \n\ |
| 4393 | Currently, WvOut is non-interpolating and the output rate is always `Stk::sampleRate()`.\n\ | 4393 | Currently, WvOut is non-interpolating and the output rate is always `Stk::sampleRate()`.\n\ |
| 4394 | \n\ | 4394 | \n\ |
| @@ -4404,67 +4404,67 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 9 unmodified lines |
| 4404 | | 4404 | |
| 4405 | func = make_new_mfun( "string", "matFilename", WvOut_ctrl_matFilename ); //!open matlab file for writing | 4405 | func = make_new_mfun( "string", "matFilename", WvOut_ctrl_matFilename ); //!open matlab file for writing |
| 4406 | func->add_arg( "string", "value" ); | 4406 | func->add_arg( "string", "value" ); |
| 4407 | func->doc = "Open MatLab file for writing."; | 4407 | func->doc = "open MATLAB file for writing."; |
| 4408 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4408 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4409 | | 4409 | |
| 4410 | func = make_new_mfun( "string", "sndFilename", WvOut_ctrl_sndFilename ); //!open snd file for writing | 4410 | func = make_new_mfun( "string", "sndFilename", WvOut_ctrl_sndFilename ); //!open snd file for writing |
| 4411 | func->add_arg( "string", "value" ); | 4411 | func->add_arg( "string", "value" ); |
| 4412 | func->doc = "Open SND file for writing."; | 4412 | func->doc = "open SND file for writing."; |
| 4413 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4413 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4414 | | 4414 | |
| 4415 | func = make_new_mfun( "string", "wavFilename", WvOut_ctrl_wavFilename ); //!open WAVE file for writing | 4415 | func = make_new_mfun( "string", "wavFilename", WvOut_ctrl_wavFilename ); //!open WAVE file for writing |
| 4416 | func->add_arg( "string", "value" ); | 4416 | func->add_arg( "string", "value" ); |
| 4417 | func->doc = "Open WAVE file for writing."; | 4417 | func->doc = "open WAVE file for writing."; |
| 4418 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4418 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4419 | | 4419 | |
| 4420 | func = make_new_mfun( "string", "rawFilename", WvOut_ctrl_rawFilename ); //!open raw file for writing | 4420 | func = make_new_mfun( "string", "rawFilename", WvOut_ctrl_rawFilename ); //!open raw file for writing |
| 4421 | func->add_arg( "string", "value" ); | 4421 | func->add_arg( "string", "value" ); |
| 4422 | func->doc = "Open a raw file for writing."; | 4422 | func->doc = "open a raw file for writing."; |
| 4423 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4423 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4424 | | 4424 | |
| 4425 | func = make_new_mfun( "string", "aifFilename", WvOut_ctrl_aifFilename ); //!open AIFF file for writing | 4425 | func = make_new_mfun( "string", "aifFilename", WvOut_ctrl_aifFilename ); //!open AIFF file for writing |
| 4426 | func->add_arg( "string", "value" ); | 4426 | func->add_arg( "string", "value" ); |
| 4427 | func->doc = "Open an AIFF file for writing."; | 4427 | func->doc = "open an AIFF file for writing."; |
| 4428 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4428 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4429 | | 4429 | |
| 4430 | func = make_new_mfun( "string", "filename", WvOut_cget_filename ); //!get filename | 4430 | func = make_new_mfun( "string", "filename", WvOut_cget_filename ); //!get filename |
| 4431 | func->doc = "Get filename."; | 4431 | func->doc = "get filename."; |
| 4432 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4432 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4433 | | 4433 | |
| 4434 | func = make_new_mfun( "int", "record", WvOut_ctrl_record ); // !start/stop output | 4434 | func = make_new_mfun( "int", "record", WvOut_ctrl_record ); // !start/stop output |
| 4435 | func->add_arg( "int", "value" ); | 4435 | func->add_arg( "int", "value" ); |
| 4436 | func->doc = "Start/stop output."; | 4436 | func->doc = "start/stop output."; |
| 4437 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4437 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4438 | | 4438 | |
| 4439 | func = make_new_mfun( "int", "record", WvOut_cget_record ); // !start/stop output | 4439 | func = make_new_mfun( "int", "record", WvOut_cget_record ); // !start/stop output |
| 4440 | func->doc = "Start/stop output."; | 4440 | func->doc = "start/stop output."; |
| 4441 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4441 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4442 | | 4442 | |
| 4443 | func = make_new_mfun( "string", "closeFile", WvOut_ctrl_closeFile ); //! close file properly | 4443 | func = make_new_mfun( "string", "closeFile", WvOut_ctrl_closeFile ); //! close file properly |
| 4444 | func->add_arg( "string", "value" ); | 4444 | func->add_arg( "string", "value" ); |
| 4445 | func->doc = "Close the file properly."; | 4445 | func->doc = "close the file properly."; |
| 4446 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4446 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4447 | | 4447 | |
| 4448 | func = make_new_mfun( "string", "closeFile", WvOut_ctrl_closeFile ); //! close file properly | 4448 | func = make_new_mfun( "string", "closeFile", WvOut_ctrl_closeFile ); //! close file properly |
| 4449 | func->doc = "Close the file properly."; | 4449 | func->doc = "close the file properly."; |
| 4450 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4450 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4451 | | 4451 | |
| 4452 | func = make_new_mfun( "string", "autoPrefix", WvOut_ctrl_autoPrefix ); //! set/get auto prefix string | 4452 | func = make_new_mfun( "string", "autoPrefix", WvOut_ctrl_autoPrefix ); //! set/get auto prefix string |
| 4453 | func->add_arg( "string", "value" ); | 4453 | func->add_arg( "string", "value" ); |
| 4454 | func->doc = "Set auto prefix string."; | 4454 | func->doc = "set auto prefix string."; |
| 4455 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4455 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4456 | | 4456 | |
| 4457 | func = make_new_mfun( "string", "autoPrefix", WvOut_cget_autoPrefix ); //! set/get auto prefix string | 4457 | func = make_new_mfun( "string", "autoPrefix", WvOut_cget_autoPrefix ); //! set/get auto prefix string |
| 4458 | func->doc = "Get auto prefix string."; | 4458 | func->doc = "get auto prefix string."; |
| 4459 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4459 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4460 | | 4460 | |
| 4461 | func = make_new_mfun( "float", "fileGain", WvOut_ctrl_fileGain ); //! set/get auto prefix string | 4461 | func = make_new_mfun( "float", "fileGain", WvOut_ctrl_fileGain ); //! set/get auto prefix string |
| 4462 | func->add_arg( "float", "value" ); | 4462 | func->add_arg( "float", "value" ); |
| 4463 | func->doc = "Set file gain."; | 4463 | func->doc = "set file gain."; |
| 4464 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4464 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4465 | | 4465 | |
| 4466 | func = make_new_mfun( "float", "fileGain", WvOut_cget_fileGain ); //! set/get auto prefix string | 4466 | func = make_new_mfun( "float", "fileGain", WvOut_cget_fileGain ); //! set/get auto prefix string |
| 4467 | func->doc = "Get file gain."; | 4467 | func->doc = "get file gain."; |
| 4468 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4468 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4469 | | 4469 | |
| 4470 | // end the class import | 4470 | // end the class import |
| @@ -4504,7 +4504,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 33 unmodified lines |
| 4504 | // begin BLT (BandLtd) | 4504 | // begin BLT (BandLtd) |
| 4505 | //------------------------------------------------------------------------ | 4505 | //------------------------------------------------------------------------ |
| 4506 | | 4506 | |
| 4507 | doc = "Super-class for band-limited oscillators."; | 4507 | doc = "super-class for band-limited oscillators."; |
| 4508 | | 4508 | |
| 4509 | if( !type_engine_import_ugen_begin( env, "BLT", "UGen", env->global(), | 4509 | if( !type_engine_import_ugen_begin( env, "BLT", "UGen", env->global(), |
| 4510 | BLT_ctor, BLT_dtor, | 4510 | BLT_ctor, BLT_dtor, |
| @@ -4520,29 +4520,29 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 9 unmodified lines |
| 4520 | | 4520 | |
| 4521 | func = make_new_mfun( "float", "phase", BLT_ctrl_phase ); //!set phase | 4521 | func = make_new_mfun( "float", "phase", BLT_ctrl_phase ); //!set phase |
| 4522 | func->add_arg( "float", "value" ); | 4522 | func->add_arg( "float", "value" ); |
| 4523 | func->doc = "Set phase."; | 4523 | func->doc = "set phase."; |
| 4524 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4524 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4525 | | 4525 | |
| 4526 | func = make_new_mfun( "float", "phase", BLT_cget_phase ); //!get phase | 4526 | func = make_new_mfun( "float", "phase", BLT_cget_phase ); //!get phase |
| 4527 | func->doc = "Get phase."; | 4527 | func->doc = "get phase."; |
| 4528 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4528 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4529 | | 4529 | |
| 4530 | func = make_new_mfun( "float", "freq", BLT_ctrl_freq ); //!set freq | 4530 | func = make_new_mfun( "float", "freq", BLT_ctrl_freq ); //!set freq |
| 4531 | func->add_arg( "float", "value" ); | 4531 | func->add_arg( "float", "value" ); |
| 4532 | func->doc = "Set frequency."; | 4532 | func->doc = "set frequency."; |
| 4533 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4533 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4534 | | 4534 | |
| 4535 | func = make_new_mfun( "float", "freq", BLT_cget_freq ); //!get freq | 4535 | func = make_new_mfun( "float", "freq", BLT_cget_freq ); //!get freq |
| 4536 | func->doc = "Set frequency."; | 4536 | func->doc = "set frequency."; |
| 4537 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4537 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4538 | | 4538 | |
| 4539 | func = make_new_mfun( "int", "harmonics", BLT_ctrl_harmonics ); //!set harmonics | 4539 | func = make_new_mfun( "int", "harmonics", BLT_ctrl_harmonics ); //!set harmonics |
| 4540 | func->add_arg( "int", "value" ); | 4540 | func->add_arg( "int", "value" ); |
| 4541 | func->doc = "Set harmonics."; | 4541 | func->doc = "set harmonics."; |
| 4542 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4542 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4543 | | 4543 | |
| 4544 | func = make_new_mfun( "int", "harmonics", BLT_cget_harmonics ); //!get harmonics | 4544 | func = make_new_mfun( "int", "harmonics", BLT_cget_harmonics ); //!get harmonics |
| 4545 | func->doc = "Get harmonics."; | 4545 | func->doc = "get harmonics."; |
| 4546 | if( !type_engine_import_mfun( env, func ) ) goto error; | 4546 | if( !type_engine_import_mfun( env, func ) ) goto error; |
| 4547 | | 4547 | |
| 4548 | // end the class import | 4548 | // end the class import |
| @@ -4553,7 +4553,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002."; · 4 unmodified lines |
| 4553 | // begin Blit | 4553 | // begin Blit |
| 4554 | //------------------------------------------------------------------------ | 4554 | //------------------------------------------------------------------------ |
| 4555 | | 4555 | |
| 4556 | doc = "This class generates a band-limited impulse train using a closed-form algorithm reported by Stilson and Smith in 'Alias-Free Digital Synthesis of Classic Analog Waveforms', 1996. The user can specify both the fundamental frequency of the impulse train and the number of harmonics contained in the resulting signal.\n\ | 4556 | doc = "a band-limited impulse train using a closed-form algorithm reported by Stilson and Smith in 'Alias-Free Digital Synthesis of Classic Analog Waveforms', 1996. The user can specify both the fundamental frequency of the impulse train and the number of harmonics contained in the resulting signal.\n\ |
| 4557 | \n\ | 4557 | \n\ |
| 4558 | The signal is normalized so that the peak value is +/-1.0.\n\ | 4558 | The signal is normalized so that the peak value is +/-1.0.\n\ |
| 4559 | \n\ | 4559 | \n\ |
| @@ -4575,7 +4575,7 @@ Revisions by Gary Scavone for STK, 2005."; · 15 unmodified lines |
| 4575 | // begin BlitSaw | 4575 | // begin BlitSaw |
| 4576 | //------------------------------------------------------------------------ | 4576 | //------------------------------------------------------------------------ |
| 4577 | | 4577 | |
| 4578 | doc = "This class generates a band-limited sawtooth waveform using a closed-form algorithm reported by Stilson and Smith in 'Alias-Free Digital Synthesis of Classic Analog Waveforms', 1996. The user can specify both the fundamental frequency of the sawtooth and the number of harmonics contained in the resulting signal.\n\ | 4578 | doc = "a band-limited sawtooth waveform using a closed-form algorithm reported by Stilson and Smith in 'Alias-Free Digital Synthesis of Classic Analog Waveforms', 1996. The user can specify both the fundamental frequency of the sawtooth and the number of harmonics contained in the resulting signal.\n\ |
| 4579 | \n\ | 4579 | \n\ |
| 4580 | If `nHarmonics` is 0, then the signal will contain all harmonics up to half the sample rate. Note, however, that this setting may produce aliasing in the signal when the frequency is changing (no automatic modification of the number of harmonics is performed by the `setFrequency()` function).\n\ | 4580 | If `nHarmonics` is 0, then the signal will contain all harmonics up to half the sample rate. Note, however, that this setting may produce aliasing in the signal when the frequency is changing (no automatic modification of the number of harmonics is performed by the `setFrequency()` function).\n\ |
| 4581 | \n\ | 4581 | \n\ |
| @@ -4593,7 +4593,7 @@ Modified algorithm code by Gary Scavone, 2005."; · 11 unmodified lines |
| 4593 | // begin BlitSquare | 4593 | // begin BlitSquare |
| 4594 | //------------------------------------------------------------------------ | 4594 | //------------------------------------------------------------------------ |
| 4595 | | 4595 | |
| 4596 | doc = "This class generates a band-limited square wave signal. It is derived in part from the approach reported by Stilson and Smith in 'Alias-Free Digital Synthesis of Classic Analog Waveforms', 1996. The algorithm implemented in this class uses a SincM function with an even M value to achieve a bipolar bandlimited impulse train. This signal is then integrated to achieve a square waveform. The integration process has an associated DC offset but that is subtracted off the output signal.\n\ | 4596 | doc = "a band-limited square wave signal. It is derived in part from the approach reported by Stilson and Smith in 'Alias-Free Digital Synthesis of Classic Analog Waveforms', 1996. The algorithm implemented in this class uses a SincM function with an even M value to achieve a bipolar bandlimited impulse train. This signal is then integrated to achieve a square waveform. The integration process has an associated DC offset but that is subtracted off the output signal.\n\ |
| 4597 | \n\ | 4597 | \n\ |
| 4598 | The user can specify both the fundamental frequency of the waveform and the number of harmonics contained in the resulting signal.\n\ | 4598 | The user can specify both the fundamental frequency of the waveform and the number of harmonics contained in the resulting signal.\n\ |
| 4599 | \n\ | 4599 | \n\ |
| @@ -4828,22 +4828,22 @@ struct SKINISpec skini_msgs[__SK_MaxMsgTypes_] = · 228 unmodified lines |
| 4828 | /* type is the message type sent back from the SKINI line parser. */ | 4828 | /* type is the message type sent back from the SKINI line parser. */ |
| 4829 | /* data<n> is either */ | 4829 | /* data<n> is either */ |
| 4830 | /* NOPE : field not used, specifically, there aren't going */ | 4830 | /* NOPE : field not used, specifically, there aren't going */ |
| 4831 | /* to be any more fields on this line. So if there */ | 4831 | /* to be any more fields on this line. So if there */ |
| 4832 | /* is is NOPE in data2, data3 won't even be checked */ | 4832 | /* is is NOPE in data2, data3 won't even be checked */ |
| 4833 | /* SK_INT : byte (actually scanned as 32 bit signed integer) */ | 4833 | /* SK_INT : byte (actually scanned as 32 bit signed integer) */ |
| 4834 | /* If it's a MIDI data field which is required to */ | 4834 | /* If it's a MIDI data field which is required to */ |
| 4835 | /* be an integer, like a controller number, it's */ | 4835 | /* be an integer, like a controller number, it's */ |
| 4836 | /* 0-127. Otherwise) get creative with SK_INTs */ | 4836 | /* 0-127. Otherwise) get creative with SK_INTs */ |
| 4837 | /* SK_DBL : double precision floating point. SKINI uses these */ | 4837 | /* SK_DBL : double precision floating point. SKINI uses these */ |
| 4838 | /* in the MIDI context for note numbers with micro */ | 4838 | /* in the MIDI context for note numbers with micro */ |
| 4839 | /* tuning, velocities, controller values, etc. */ | 4839 | /* tuning, velocities, controller values, etc. */ |
| 4840 | /* SK_STR : only valid in final field. This allows (nearly) */ | 4840 | /* SK_STR : only valid in final field. This allows (nearly) */ |
| 4841 | /* arbitrary message types to be supported by simply */ | 4841 | /* arbitrary message types to be supported by simply */ |
| 4842 | /* scanning the string to EndOfLine and then passing */ | 4842 | /* scanning the string to EndOfLine and then passing */ |
| 4843 | /* it to a more intellegent handler. For example, */ | 4843 | /* it to a more intellegent handler. For example, */ |
| 4844 | /* MIDI SYSEX (system exclusive) messages of up to */ | 4844 | /* MIDI SYSEX (system exclusive) messages of up to */ |
| 4845 | /* 256bytes can be read as space-delimited integers */ | 4845 | /* 256bytes can be read as space-delimited integers */ |
| 4846 | /* into the 1K SK_STR buffer. Longer bulk dumps, */ | 4846 | /* into the 1K SK_STR buffer. Longer bulk dumps, */ |
| 4847 | /* soundfiles, etc. should be handled as a new */ | 4847 | /* soundfiles, etc. should be handled as a new */ |
| 4848 | /* message type pointing to a FileName stored in the */ | 4848 | /* message type pointing to a FileName stored in the */ |
| 4849 | /* SK_STR field, or as a new type of multi-line */ | 4849 | /* SK_STR field, or as a new type of multi-line */ |
| @@ -4858,7 +4858,7 @@ struct SKINISpec skini_msgs[__SK_MaxMsgTypes_] = · 8 unmodified lines |
| 4858 | | 4858 | |
| 4859 | This Envelope subclass implements a | 4859 | This Envelope subclass implements a |
| 4860 | traditional ADSR (Attack, Decay, | 4860 | traditional ADSR (Attack, Decay, |
| 4861 | Sustain, Release) envelope. It | 4861 | Sustain, Release) envelope. It |
| 4862 | responds to simple keyOn and keyOff | 4862 | responds to simple keyOn and keyOff |
| 4863 | messages, keeping track of its state. | 4863 | messages, keeping track of its state. |
| 4864 | The \e state = ADSR::DONE after the | 4864 | The \e state = ADSR::DONE after the |
| @@ -5033,7 +5033,7 @@ void ADSR :: setValue(MY_FLOAT aValue) · 168 unmodified lines |
| 5033 | target = aValue; | 5033 | target = aValue; |
| 5034 | value = aValue; | 5034 | value = aValue; |
| 5035 | this->setSustainLevel(aValue); | 5035 | this->setSustainLevel(aValue); |
| 5036 | rate = (MY_FLOAT) 0.0; | 5036 | rate = (MY_FLOAT)0.0; |
| 5037 | } | 5037 | } |
| 5038 | | 5038 | |
| 5039 | int ADSR :: getState(void) const | 5039 | int ADSR :: getState(void) const |
| @@ -5107,7 +5107,7 @@ MY_FLOAT *ADSR :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 67 unmodified lines |
| 5107 | | 5107 | |
| 5108 | This class uses banded waveguide techniques to | 5108 | This class uses banded waveguide techniques to |
| 5109 | model a variety of sounds, including bowed | 5109 | model a variety of sounds, including bowed |
| 5110 | bars, glasses, and bowls. For more | 5110 | bars, glasses, and bowls. For more |
| 5111 | information, see Essl, G. and Cook, P. "Banded | 5111 | information, see Essl, G. and Cook, P. "Banded |
| 5112 | Waveguides: Towards Physical Modelling of Bar | 5112 | Waveguides: Towards Physical Modelling of Bar |
| 5113 | Percussion Instruments", Proceedings of the | 5113 | Percussion Instruments", Proceedings of the |
| @@ -5321,7 +5321,7 @@ void BandedWG :: setFrequency(MY_FLOAT frequency) · 207 unmodified lines |
| 5321 | } | 5321 | } |
| 5322 | // CK_STDCERR << CK_STDENDL; | 5322 | // CK_STDCERR << CK_STDENDL; |
| 5323 | | 5323 | |
| 5324 | // Set the bandpass filter resonances | 5324 | // set the bandpass filter resonances |
| 5325 | radius = 1.0 - ONE_PI * 32 / Stk::sampleRate(); //freakency * modes[i] / Stk::sampleRate()/32; | 5325 | radius = 1.0 - ONE_PI * 32 / Stk::sampleRate(); //freakency * modes[i] / Stk::sampleRate()/32; |
| 5326 | if ( radius < 0.0 ) radius = 0.0; | 5326 | if ( radius < 0.0 ) radius = 0.0; |
| 5327 | bandpass[i].setResonance(freakency * modes[i], radius, true); | 5327 | bandpass[i].setResonance(freakency * modes[i], radius, true); |
| @@ -5528,7 +5528,7 @@ void BandedWG :: controlChange(int number, MY_FLOAT value) · 200 unmodified lines |
| 5528 | | 5528 | |
| 5529 | The basic Chowning/Stanford FM patent expired | 5529 | The basic Chowning/Stanford FM patent expired |
| 5530 | in 1995, but there exist follow-on patents, | 5530 | in 1995, but there exist follow-on patents, |
| 5531 | mostly assigned to Yamaha. If you are of the | 5531 | mostly assigned to Yamaha. If you are of the |
| 5532 | type who should worry about this (making | 5532 | type who should worry about this (making |
| 5533 | money) worry away. | 5533 | money) worry away. |
| 5534 | | 5534 | |
| @@ -5611,7 +5611,7 @@ MY_FLOAT BeeThree :: tick() · 76 unmodified lines |
| 5611 | \brief STK biquad (two-pole, two-zero) filter class. | 5611 | \brief STK biquad (two-pole, two-zero) filter class. |
| 5612 | | 5612 | |
| 5613 | This protected Filter subclass implements a | 5613 | This protected Filter subclass implements a |
| 5614 | two-pole, two-zero digital filter. A method | 5614 | two-pole, two-zero digital filter. A method |
| 5615 | is provided for creating a resonance in the | 5615 | is provided for creating a resonance in the |
| 5616 | frequency response while maintaining a constant | 5616 | frequency response while maintaining a constant |
| 5617 | filter gain. | 5617 | filter gain. |
| @@ -5737,14 +5737,14 @@ MY_FLOAT *BiQuad :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 119 unmodified lines |
| 5737 | | 5737 | |
| 5738 | This class generates a band-limited impulse train using a | 5738 | This class generates a band-limited impulse train using a |
| 5739 | closed-form algorithm reported by Stilson and Smith in "Alias-Free | 5739 | closed-form algorithm reported by Stilson and Smith in "Alias-Free |
| 5740 | Digital Synthesis of Classic Analog Waveforms", 1996. The user | 5740 | Digital Synthesis of Classic Analog Waveforms", 1996. The user |
| 5741 | can specify both the fundamental frequency of the impulse train | 5741 | can specify both the fundamental frequency of the impulse train |
| 5742 | and the number of harmonics contained in the resulting signal. | 5742 | and the number of harmonics contained in the resulting signal. |
| 5743 | | 5743 | |
| 5744 | The signal is normalized so that the peak value is +/-1.0. | 5744 | The signal is normalized so that the peak value is +/-1.0. |
| 5745 | | 5745 | |
| 5746 | If nHarmonics is 0, then the signal will contain all harmonics up | 5746 | If nHarmonics is 0, then the signal will contain all harmonics up |
| 5747 | to half the sample rate. Note, however, that this setting may | 5747 | to half the sample rate. Note, however, that this setting may |
| 5748 | produce aliasing in the signal when the frequency is changing (no | 5748 | produce aliasing in the signal when the frequency is changing (no |
| 5749 | automatic modification of the number of harmonics is performed by | 5749 | automatic modification of the number of harmonics is performed by |
| 5750 | the setFrequency() function). | 5750 | the setFrequency() function). |
| @@ -5844,12 +5844,12 @@ MY_FLOAT Blit :: tick( void ) · 93 unmodified lines |
| 5844 | | 5844 | |
| 5845 | This class generates a band-limited sawtooth waveform using a | 5845 | This class generates a band-limited sawtooth waveform using a |
| 5846 | closed-form algorithm reported by Stilson and Smith in "Alias-Free | 5846 | closed-form algorithm reported by Stilson and Smith in "Alias-Free |
| 5847 | Digital Synthesis of Classic Analog Waveforms", 1996. The user | 5847 | Digital Synthesis of Classic Analog Waveforms", 1996. The user |
| 5848 | can specify both the fundamental frequency of the sawtooth and the | 5848 | can specify both the fundamental frequency of the sawtooth and the |
| 5849 | number of harmonics contained in the resulting signal. | 5849 | number of harmonics contained in the resulting signal. |
| 5850 | | 5850 | |
| 5851 | If nHarmonics is 0, then the signal will contain all harmonics up | 5851 | If nHarmonics is 0, then the signal will contain all harmonics up |
| 5852 | to half the sample rate. Note, however, that this setting may | 5852 | to half the sample rate. Note, however, that this setting may |
| 5853 | produce aliasing in the signal when the frequency is changing (no | 5853 | produce aliasing in the signal when the frequency is changing (no |
| 5854 | automatic modification of the number of harmonics is performed by | 5854 | automatic modification of the number of harmonics is performed by |
| 5855 | the setFrequency() function). | 5855 | the setFrequency() function). |
| @@ -5896,11 +5896,11 @@ void BlitSaw :: setHarmonics( unsigned int nHarmonics ) · 40 unmodified lines |
| 5896 | this->updateHarmonics(); | 5896 | this->updateHarmonics(); |
| 5897 | | 5897 | |
| 5898 | // I found that the initial DC offset could be minimized with an | 5898 | // I found that the initial DC offset could be minimized with an |
| 5899 | // initial state setting as given below. This initialization should | 5899 | // initial state setting as given below. This initialization should |
| 5900 | // only happen before starting the oscillator for the first time | 5900 | // only happen before starting the oscillator for the first time |
| 5901 | // (but after setting the frequency and number of harmonics). I | 5901 | // (but after setting the frequency and number of harmonics). I |
| 5902 | // struggled a bit to decide where best to put this and finally | 5902 | // struggled a bit to decide where best to put this and finally |
| 5903 | // settled on here. In general, the user shouldn't be messing with | 5903 | // settled on here. In general, the user shouldn't be messing with |
| 5904 | // the number of harmonics once the oscillator is running because | 5904 | // the number of harmonics once the oscillator is running because |
| 5905 | // this is automatically taken care of in the setFrequency() | 5905 | // this is automatically taken care of in the setFrequency() |
| 5906 | // function. (GPS - 1 October 2005) | 5906 | // function. (GPS - 1 October 2005) |
| @@ -5928,10 +5928,10 @@ MY_FLOAT BlitSaw :: tick( void ) · 21 unmodified lines |
| 5928 | { | 5928 | { |
| 5929 | // The code below implements the BLIT algorithm of Stilson and | 5929 | // The code below implements the BLIT algorithm of Stilson and |
| 5930 | // Smith, followed by a summation and filtering operation to produce | 5930 | // Smith, followed by a summation and filtering operation to produce |
| 5931 | // a sawtooth waveform. After experimenting with various approaches | 5931 | // a sawtooth waveform. After experimenting with various approaches |
| 5932 | // to calculate the average value of the BLIT over one period, I | 5932 | // to calculate the average value of the BLIT over one period, I |
| 5933 | // found that an estimate of C2_ = 1.0 / period (in samples) worked | 5933 | // found that an estimate of C2_ = 1.0 / period (in samples) worked |
| 5934 | // most consistently. A "leaky integrator" is then applied to the | 5934 | // most consistently. A "leaky integrator" is then applied to the |
| 5935 | // difference of the BLIT output and C2_. (GPS - 1 October 2005) | 5935 | // difference of the BLIT output and C2_. (GPS - 1 October 2005) |
| 5936 | | 5936 | |
| 5937 | // A fully optimized version of this code would replace the two sin | 5937 | // A fully optimized version of this code would replace the two sin |
| @@ -5966,12 +5966,12 @@ MY_FLOAT BlitSaw :: tick( void ) · 28 unmodified lines |
| 5966 | /*! \class BlitSquare | 5966 | /*! \class BlitSquare |
| 5967 | \brief STK band-limited square wave class. | 5967 | \brief STK band-limited square wave class. |
| 5968 | | 5968 | |
| 5969 | This class generates a band-limited square wave signal. It is | 5969 | This class generates a band-limited square wave signal. It is |
| 5970 | derived in part from the approach reported by Stilson and Smith in | 5970 | derived in part from the approach reported by Stilson and Smith in |
| 5971 | "Alias-Free Digital Synthesis of Classic Analog Waveforms", 1996. | 5971 | "Alias-Free Digital Synthesis of Classic Analog Waveforms", 1996. |
| 5972 | The algorithm implemented in this class uses a SincM function with | 5972 | The algorithm implemented in this class uses a SincM function with |
| 5973 | an even M value to achieve a bipolar bandlimited impulse train. | 5973 | an even M value to achieve a bipolar bandlimited impulse train. |
| 5974 | This signal is then integrated to achieve a square waveform. The | 5974 | This signal is then integrated to achieve a square waveform. The |
| 5975 | integration process has an associated DC offset but that is | 5975 | integration process has an associated DC offset but that is |
| 5976 | subtracted off the output signal. | 5976 | subtracted off the output signal. |
| 5977 | | 5977 | |
| @@ -5980,7 +5980,7 @@ MY_FLOAT BlitSaw :: tick( void ) · 2 unmodified lines |
| 5980 | signal. | 5980 | signal. |
| 5981 | | 5981 | |
| 5982 | If nHarmonics is 0, then the signal will contain all harmonics up | 5982 | If nHarmonics is 0, then the signal will contain all harmonics up |
| 5983 | to half the sample rate. Note, however, that this setting may | 5983 | to half the sample rate. Note, however, that this setting may |
| 5984 | produce aliasing in the signal when the frequency is changing (no | 5984 | produce aliasing in the signal when the frequency is changing (no |
| 5985 | automatic modification of the number of harmonics is performed by | 5985 | automatic modification of the number of harmonics is performed by |
| 5986 | the setFrequency() function). | 5986 | the setFrequency() function). |
| @@ -6017,7 +6017,7 @@ void BlitSquare :: setFrequency( MY_FLOAT frequency ) · 30 unmodified lines |
| 6017 | #endif | 6017 | #endif |
| 6018 | | 6018 | |
| 6019 | // By using an even value of the parameter M, we get a bipolar blit | 6019 | // By using an even value of the parameter M, we get a bipolar blit |
| 6020 | // waveform at half the blit frequency. Thus, we need to scale the | 6020 | // waveform at half the blit frequency. Thus, we need to scale the |
| 6021 | // frequency value here by 0.5. (GPS, 2006). | 6021 | // frequency value here by 0.5. (GPS, 2006). |
| 6022 | p_ = 0.5 * Stk::sampleRate() / frequency; | 6022 | p_ = 0.5 * Stk::sampleRate() / frequency; |
| 6023 | rate_ = ONE_PI / p_; | 6023 | rate_ = ONE_PI / p_; |
| @@ -6283,10 +6283,10 @@ void BlowBotl :: controlChange(int number, MY_FLOAT value) · 259 unmodified lines |
| 6283 | | 6283 | |
| 6284 | In this implementation, the distances between | 6284 | In this implementation, the distances between |
| 6285 | the reed/register hole and tonehole/bell are | 6285 | the reed/register hole and tonehole/bell are |
| 6286 | fixed. As a result, both the tonehole and | 6286 | fixed. As a result, both the tonehole and |
| 6287 | register hole will have variable influence on | 6287 | register hole will have variable influence on |
| 6288 | the playing frequency, which is dependent on | 6288 | the playing frequency, which is dependent on |
| 6289 | the length of the air column. In addition, | 6289 | the length of the air column. In addition, |
| 6290 | the highest playing freqeuency is limited by | 6290 | the highest playing freqeuency is limited by |
| 6291 | these fixed lengths. | 6291 | these fixed lengths. |
| 6292 | This is a digital waveguide model, making its | 6292 | This is a digital waveguide model, making its |
| @@ -6599,12 +6599,12 @@ MY_FLOAT BowTabl :: tick(MY_FLOAT input) · 306 unmodified lines |
| 6599 | MY_FLOAT sample; | 6599 | MY_FLOAT sample; |
| 6600 | sample = input + offSet; // add bias to input | 6600 | sample = input + offSet; // add bias to input |
| 6601 | sample *= slope; // then scale it | 6601 | sample *= slope; // then scale it |
| 6602 | lastOutput = (MY_FLOAT) fabs((double) sample) + (MY_FLOAT) 0.75; | 6602 | lastOutput = (MY_FLOAT)fabs((double) sample) + (MY_FLOAT) 0.75; |
| 6603 | lastOutput = (MY_FLOAT) pow( lastOutput,(MY_FLOAT) -4.0 ); | 6603 | lastOutput = (MY_FLOAT)pow( lastOutput,(MY_FLOAT) -4.0 ); |
| 6604 | | 6604 | |
| 6605 | // Set minimum friction to 0.0 | 6605 | // set minimum friction to 0.0 |
| 6606 | //if (lastOutput < 0.0 ) lastOutput = 0.0; | 6606 | //if (lastOutput < 0.0 ) lastOutput = 0.0; |
| 6607 | // Set maximum friction to 1.0. | 6607 | // set maximum friction to 1.0. |
| 6608 | if (lastOutput > 1.0 ) lastOutput = (MY_FLOAT) 1.0; | 6608 | if (lastOutput > 1.0 ) lastOutput = (MY_FLOAT) 1.0; |
| 6609 | | 6609 | |
| 6610 | return lastOutput; | 6610 | return lastOutput; |
| @@ -7515,16 +7515,16 @@ MY_FLOAT *Delay :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 904 unmodified lines |
| 7515 | | 7515 | |
| 7516 | This Delay subclass implements a fractional- | 7516 | This Delay subclass implements a fractional- |
| 7517 | length digital delay-line using a first-order | 7517 | length digital delay-line using a first-order |
| 7518 | allpass filter. A fixed maximum length | 7518 | allpass filter. A fixed maximum length |
| 7519 | of 4095 and a delay of 0.5 is set using the | 7519 | of 4095 and a delay of 0.5 is set using the |
| 7520 | default constructor. Alternatively, the | 7520 | default constructor. Alternatively, the |
| 7521 | delay and maximum length can be set during | 7521 | delay and maximum length can be set during |
| 7522 | instantiation with an overloaded constructor. | 7522 | instantiation with an overloaded constructor. |
| 7523 | | 7523 | |
| 7524 | An allpass filter has unity magnitude gain but | 7524 | An allpass filter has unity magnitude gain but |
| 7525 | variable phase delay properties, making it useful | 7525 | variable phase delay properties, making it useful |
| 7526 | in achieving fractional delays without affecting | 7526 | in achieving fractional delays without affecting |
| 7527 | a signal's frequency magnitude response. In | 7527 | a signal's frequency magnitude response. In |
| 7528 | order to achieve a maximally flat phase delay | 7528 | order to achieve a maximally flat phase delay |
| 7529 | response, the minimum delay possible in this | 7529 | response, the minimum delay possible in this |
| 7530 | implementation is limited to a value of 0.5. | 7530 | implementation is limited to a value of 0.5. |
| @@ -7664,9 +7664,9 @@ MY_FLOAT DelayA :: tick(MY_FLOAT sample) · 133 unmodified lines |
| 7664 | | 7664 | |
| 7665 | This Delay subclass implements a fractional- | 7665 | This Delay subclass implements a fractional- |
| 7666 | length digital delay-line using first-order | 7666 | length digital delay-line using first-order |
| 7667 | linear interpolation. A fixed maximum length | 7667 | linear interpolation. A fixed maximum length |
| 7668 | of 4095 and a delay of zero is set using the | 7668 | of 4095 and a delay of zero is set using the |
| 7669 | default constructor. Alternatively, the | 7669 | default constructor. Alternatively, the |
| 7670 | delay and maximum length can be set during | 7670 | delay and maximum length can be set during |
| 7671 | instantiation with an overloaded constructor. | 7671 | instantiation with an overloaded constructor. |
| 7672 | | 7672 | |
| @@ -7674,7 +7674,7 @@ MY_FLOAT DelayA :: tick(MY_FLOAT sample) · 1 unmodified line |
| 7674 | for achieving fractional delay lengths, though | 7674 | for achieving fractional delay lengths, though |
| 7675 | it does introduce high-frequency signal | 7675 | it does introduce high-frequency signal |
| 7676 | attenuation to varying degrees depending on the | 7676 | attenuation to varying degrees depending on the |
| 7677 | fractional delay setting. The use of higher | 7677 | fractional delay setting. The use of higher |
| 7678 | order Lagrange interpolators can typically | 7678 | order Lagrange interpolators can typically |
| 7679 | improve (minimize) this attenuation characteristic. | 7679 | improve (minimize) this attenuation characteristic. |
| 7680 | | 7680 | |
| @@ -7794,9 +7794,9 @@ MY_FLOAT DelayL :: tick(MY_FLOAT sample) · 113 unmodified lines |
| 7794 | | 7794 | |
| 7795 | This class implements a drum sampling | 7795 | This class implements a drum sampling |
| 7796 | synthesizer using WvIn objects and one-pole | 7796 | synthesizer using WvIn objects and one-pole |
| 7797 | filters. The drum rawwave files are sampled | 7797 | filters. The drum rawwave files are sampled |
| 7798 | at 22050 Hz, but will be appropriately | 7798 | at 22050 Hz, but will be appropriately |
| 7799 | interpolated for other sample rates. You can | 7799 | interpolated for other sample rates. You can |
| 7800 | specify the maximum polyphony (maximum number | 7800 | specify the maximum polyphony (maximum number |
| 7801 | of simultaneous voices) via a #define in the | 7801 | of simultaneous voices) via a #define in the |
| 7802 | Drummer.h. | 7802 | Drummer.h. |
| @@ -7807,7 +7807,7 @@ MY_FLOAT DelayL :: tick(MY_FLOAT sample) · 4 unmodified lines |
| 7807 | | 7807 | |
| 7808 | #include <math.h> | 7808 | #include <math.h> |
| 7809 | | 7809 | |
| 7810 | // Not really General MIDI yet. Coming soon. | 7810 | // Not really General MIDI yet. Coming soon. |
| 7811 | unsigned char genMIDIMap[128] = | 7811 | unsigned char genMIDIMap[128] = |
| 7812 | { 0,0,0,0,0,0,0,0, // 0-7 | 7812 | { 0,0,0,0,0,0,0,0, // 0-7 |
| 7813 | 0,0,0,0,0,0,0,0, // 8-15 | 7813 | 0,0,0,0,0,0,0,0, // 8-15 |
| @@ -8207,7 +8207,7 @@ MY_FLOAT Envelope :: lastOut(void) const · 393 unmodified lines |
| 8207 | | 8207 | |
| 8208 | The basic Chowning/Stanford FM patent expired | 8208 | The basic Chowning/Stanford FM patent expired |
| 8209 | in 1995, but there exist follow-on patents, | 8209 | in 1995, but there exist follow-on patents, |
| 8210 | mostly assigned to Yamaha. If you are of the | 8210 | mostly assigned to Yamaha. If you are of the |
| 8211 | type who should worry about this (making | 8211 | type who should worry about this (making |
| 8212 | money) worry away. | 8212 | money) worry away. |
| 8213 | | 8213 | |
| @@ -8436,7 +8436,7 @@ void FM :: controlChange(int number, MY_FLOAT value) · 222 unmodified lines |
| 8436 | | 8436 | |
| 8437 | The basic Chowning/Stanford FM patent expired | 8437 | The basic Chowning/Stanford FM patent expired |
| 8438 | in 1995, but there exist follow-on patents, | 8438 | in 1995, but there exist follow-on patents, |
| 8439 | mostly assigned to Yamaha. If you are of the | 8439 | mostly assigned to Yamaha. If you are of the |
| 8440 | type who should worry about this (making | 8440 | type who should worry about this (making |
| 8441 | money) worry away. | 8441 | money) worry away. |
| 8442 | | 8442 | |
| @@ -8618,7 +8618,7 @@ void FMVoices :: controlChange(int number, MY_FLOAT value) · 175 unmodified lines |
| 8618 | | 8618 | |
| 8619 | The \e gain parameter is applied at the filter | 8619 | The \e gain parameter is applied at the filter |
| 8620 | input and does not affect the coefficient values. | 8620 | input and does not affect the coefficient values. |
| 8621 | The default gain value is 1.0. This structure | 8621 | The default gain value is 1.0. This structure |
| 8622 | results in one extra multiply per computed sample, | 8622 | results in one extra multiply per computed sample, |
| 8623 | but allows easy control of the overall filter gain. | 8623 | but allows easy control of the overall filter gain. |
| 8624 | | 8624 | |
| @@ -8849,7 +8849,7 @@ MY_FLOAT *FilterStk :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 224 unmodified lines |
| 8849 | | 8849 | |
| 8850 | This class implements a simple flute | 8850 | This class implements a simple flute |
| 8851 | physical model, as discussed by Karjalainen, | 8851 | physical model, as discussed by Karjalainen, |
| 8852 | Smith, Waryznyk, etc. The jet model uses | 8852 | Smith, Waryznyk, etc. The jet model uses |
| 8853 | a polynomial, a la Cook. | 8853 | a polynomial, a la Cook. |
| 8854 | | 8854 | |
| 8855 | This is a digital waveguide model, making its | 8855 | This is a digital waveguide model, making its |
| @@ -9103,7 +9103,7 @@ FormSwep :: FormSwep() : BiQuad() · 247 unmodified lines |
| 9103 | deltaGain = (MY_FLOAT) 0.0; | 9103 | deltaGain = (MY_FLOAT) 0.0; |
| 9104 | deltaFrequency = (MY_FLOAT) 0.0; | 9104 | deltaFrequency = (MY_FLOAT) 0.0; |
| 9105 | deltaRadius = (MY_FLOAT) 0.0; | 9105 | deltaRadius = (MY_FLOAT) 0.0; |
| 9106 | sweepState = (MY_FLOAT) 0.0; | 9106 | sweepState = (MY_FLOAT) 0.0; |
| 9107 | sweepRate = (MY_FLOAT) 0.002; | 9107 | sweepRate = (MY_FLOAT) 0.002; |
| 9108 | dirty = false; | 9108 | dirty = false; |
| 9109 | this->clear(); | 9109 | this->clear(); |
| @@ -9215,7 +9215,7 @@ MY_FLOAT *FormSwep :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 105 unmodified lines |
| 9215 | | 9215 | |
| 9216 | The basic Chowning/Stanford FM patent expired | 9216 | The basic Chowning/Stanford FM patent expired |
| 9217 | in 1995, but there exist follow-on patents, | 9217 | in 1995, but there exist follow-on patents, |
| 9218 | mostly assigned to Yamaha. If you are of the | 9218 | mostly assigned to Yamaha. If you are of the |
| 9219 | type who should worry about this (making | 9219 | type who should worry about this (making |
| 9220 | money) worry away. | 9220 | money) worry away. |
| 9221 | | 9221 | |
| @@ -9369,7 +9369,7 @@ void Instrmnt :: controlChange(int number, MY_FLOAT value) · 147 unmodified lines |
| 9369 | This class is derived from the CLM JCRev | 9369 | This class is derived from the CLM JCRev |
| 9370 | function, which is based on the use of | 9370 | function, which is based on the use of |
| 9371 | networks of simple allpass and comb delay | 9371 | networks of simple allpass and comb delay |
| 9372 | filters. This class implements three series | 9372 | filters. This class implements three series |
| 9373 | allpass units, followed by four parallel comb | 9373 | allpass units, followed by four parallel comb |
| 9374 | filters, and two decorrelation delay lines in | 9374 | filters, and two decorrelation delay lines in |
| 9375 | parallel at the output. | 9375 | parallel at the output. |
| @@ -9537,7 +9537,7 @@ MY_FLOAT JetTabl :: tick( MY_FLOAT input ) · 161 unmodified lines |
| 9537 | // Perform "table lookup" using a polynomial | 9537 | // Perform "table lookup" using a polynomial |
| 9538 | // calculation (x^3 - x), which approximates | 9538 | // calculation (x^3 - x), which approximates |
| 9539 | // the jet sigmoid behavior. | 9539 | // the jet sigmoid behavior. |
| 9540 | lastOutput = input * (input * input - (MY_FLOAT) 1.0); | 9540 | lastOutput = input * (input * input - (MY_FLOAT)1.0); |
| 9541 | | 9541 | |
| 9542 | // Saturate at +/- 1.0. | 9542 | // Saturate at +/- 1.0. |
| 9543 | if (lastOutput > 1.0) | 9543 | if (lastOutput > 1.0) |
| @@ -9568,8 +9568,8 @@ MY_FLOAT *JetTabl :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 24 unmodified lines |
| 9568 | Stanford University, Yamaha, and others. | 9568 | Stanford University, Yamaha, and others. |
| 9569 | Commuted Synthesis, in particular, is covered | 9569 | Commuted Synthesis, in particular, is covered |
| 9570 | by patents, granted, pending, and/or | 9570 | by patents, granted, pending, and/or |
| 9571 | applied-for. All are assigned to the Board of | 9571 | applied-for. All are assigned to the Board of |
| 9572 | Trustees, Stanford University. For | 9572 | Trustees, Stanford University. For |
| 9573 | information, contact the Office of Technology | 9573 | information, contact the Office of Technology |
| 9574 | Licensing, Stanford University. | 9574 | Licensing, Stanford University. |
| 9575 | | 9575 | |
| @@ -9758,7 +9758,7 @@ void Mandolin :: controlChange(int number, MY_FLOAT value) · 182 unmodified lines |
| 9758 | | 9758 | |
| 9759 | This class implements a rectilinear, | 9759 | This class implements a rectilinear, |
| 9760 | two-dimensional digital waveguide mesh | 9760 | two-dimensional digital waveguide mesh |
| 9761 | structure. For details, see Van Duyne and | 9761 | structure. For details, see Van Duyne and |
| 9762 | Smith, "Physical Modeling with the 2-D Digital | 9762 | Smith, "Physical Modeling with the 2-D Digital |
| 9763 | Waveguide Mesh", Proceedings of the 1993 | 9763 | Waveguide Mesh", Proceedings of the 1993 |
| 9764 | International Computer Music Conference. | 9764 | International Computer Music Conference. |
| @@ -10041,7 +10041,7 @@ MY_FLOAT Mesh2D :: tick0() · 276 unmodified lines |
| 10041 | } | 10041 | } |
| 10042 | | 10042 | |
| 10043 | // Loop over velocity-junction boundary faces, update edge | 10043 | // Loop over velocity-junction boundary faces, update edge |
| 10044 | // reflections, with filtering. We're only filtering on one x and y | 10044 | // reflections, with filtering. We're only filtering on one x and y |
| 10045 | // edge here and even this could be made much sparser. | 10045 | // edge here and even this could be made much sparser. |
| 10046 | for (y=0; y<NY-1; y++) { | 10046 | for (y=0; y<NY-1; y++) { |
| 10047 | vxp1[0][y] = filterY[y]->tick(vxm[0][y]); | 10047 | vxp1[0][y] = filterY[y]->tick(vxm[0][y]); |
| @@ -10052,9 +10052,9 @@ MY_FLOAT Mesh2D :: tick0() · 4 unmodified lines |
| 10052 | vym1[x][NY-1] = vyp[x][NY-1]; | 10052 | vym1[x][NY-1] = vyp[x][NY-1]; |
| 10053 | } | 10053 | } |
| 10054 | | 10054 | |
| 10055 | // Output = sum of outgoing waves at far corner. Note that the last | 10055 | // Output = sum of outgoing waves at far corner. Note that the last |
| 10056 | // index in each coordinate direction is used only with the other | 10056 | // index in each coordinate direction is used only with the other |
| 10057 | // coordinate indices at their next-to-last values. This is because | 10057 | // coordinate indices at their next-to-last values. This is because |
| 10058 | // the "unit strings" attached to each velocity node to terminate | 10058 | // the "unit strings" attached to each velocity node to terminate |
| 10059 | // the mesh are not themselves connected together. | 10059 | // the mesh are not themselves connected together. |
| 10060 | outsamp = vxp[NX-1][NY-2] + vyp[NX-2][NY-1]; | 10060 | outsamp = vxp[NX-1][NY-2] + vyp[NX-2][NY-1]; |
| @@ -10092,7 +10092,7 @@ MY_FLOAT Mesh2D :: tick1() · 31 unmodified lines |
| 10092 | } | 10092 | } |
| 10093 | | 10093 | |
| 10094 | // Loop over velocity-junction boundary faces, update edge | 10094 | // Loop over velocity-junction boundary faces, update edge |
| 10095 | // reflections, with filtering. We're only filtering on one x and y | 10095 | // reflections, with filtering. We're only filtering on one x and y |
| 10096 | // edge here and even this could be made much sparser. | 10096 | // edge here and even this could be made much sparser. |
| 10097 | for (y=0; y<NY-1; y++) { | 10097 | for (y=0; y<NY-1; y++) { |
| 10098 | vxp[0][y] = filterY[y]->tick(vxm1[0][y]); | 10098 | vxp[0][y] = filterY[y]->tick(vxm1[0][y]); |
| @@ -10375,7 +10375,7 @@ MY_FLOAT Modal :: tick() · 276 unmodified lines |
| 10375 | \brief STK resonant bar instrument class. | 10375 | \brief STK resonant bar instrument class. |
| 10376 | | 10376 | |
| 10377 | This class implements a number of different | 10377 | This class implements a number of different |
| 10378 | struck bar instruments. It inherits from the | 10378 | struck bar instruments. It inherits from the |
| 10379 | Modal class. | 10379 | Modal class. |
| 10380 | | 10380 | |
| 10381 | Control Change Numbers: | 10381 | Control Change Numbers: |
| @@ -10461,9 +10461,9 @@ void ModalBar :: setStrikePosition(MY_FLOAT position) · 79 unmodified lines |
| 10461 | this->setModeGain(0, 0.12 * temp); | 10461 | this->setModeGain(0, 0.12 * temp); |
| 10462 | | 10462 | |
| 10463 | temp = sin(0.05 + (3.9 * temp2)); | 10463 | temp = sin(0.05 + (3.9 * temp2)); |
| 10464 | this->setModeGain(1,(MY_FLOAT) -0.03 * temp); | 10464 | this->setModeGain(1, (MY_FLOAT)-0.03 * temp); |
| 10465 | | 10465 | |
| 10466 | temp = (MY_FLOAT) sin(-0.05 + (11 * temp2)); | 10466 | temp = (MY_FLOAT)sin(-0.05 + (11 * temp2)); |
| 10467 | this->setModeGain(2,(MY_FLOAT) 0.11 * temp); | 10467 | this->setModeGain(2,(MY_FLOAT) 0.11 * temp); |
| 10468 | } | 10468 | } |
| 10469 | | 10469 | |
| @@ -10606,7 +10606,7 @@ Modulate :: ~Modulate() · 136 unmodified lines |
| 10606 | | 10606 | |
| 10607 | void Modulate :: reset() | 10607 | void Modulate :: reset() |
| 10608 | { | 10608 | { |
| 10609 | lastOutput = (MY_FLOAT) 0.0; | 10609 | lastOutput = (MY_FLOAT)0.0; |
| 10610 | } | 10610 | } |
| 10611 | | 10611 | |
| 10612 | void Modulate :: setVibratoRate(MY_FLOAT aRate) | 10612 | void Modulate :: setVibratoRate(MY_FLOAT aRate) |
| @@ -10821,7 +10821,7 @@ void Moog :: controlChange(int number, MY_FLOAT value) · 208 unmodified lines |
| 10821 | This class is derived from the CLM NRev | 10821 | This class is derived from the CLM NRev |
| 10822 | function, which is based on the use of | 10822 | function, which is based on the use of |
| 10823 | networks of simple allpass and comb delay | 10823 | networks of simple allpass and comb delay |
| 10824 | filters. This particular arrangement consists | 10824 | filters. This particular arrangement consists |
| 10825 | of 6 comb filters in parallel, followed by 3 | 10825 | of 6 comb filters in parallel, followed by 3 |
| 10826 | allpass filters, a lowpass filter, and another | 10826 | allpass filters, a lowpass filter, and another |
| 10827 | allpass in series, followed by two allpass | 10827 | allpass in series, followed by two allpass |
| @@ -10944,7 +10944,7 @@ MY_FLOAT NRev :: tick(MY_FLOAT input) · 116 unmodified lines |
| 10944 | \brief STK noise generator. | 10944 | \brief STK noise generator. |
| 10945 | | 10945 | |
| 10946 | Generic random number generation using the | 10946 | Generic random number generation using the |
| 10947 | C rand() function. The quality of the rand() | 10947 | C rand() function. The quality of the rand() |
| 10948 | function varies from one OS to another. | 10948 | function varies from one OS to another. |
| 10949 | | 10949 | |
| 10950 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. | 10950 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. |
| @@ -11005,7 +11005,7 @@ MY_FLOAT Noise :: lastOut() const · 54 unmodified lines |
| 11005 | \brief STK one-pole filter class. | 11005 | \brief STK one-pole filter class. |
| 11006 | | 11006 | |
| 11007 | This protected Filter subclass implements | 11007 | This protected Filter subclass implements |
| 11008 | a one-pole digital filter. A method is | 11008 | a one-pole digital filter. A method is |
| 11009 | provided for setting the pole position along | 11009 | provided for setting the pole position along |
| 11010 | the real axis of the z-plane while maintaining | 11010 | the real axis of the z-plane while maintaining |
| 11011 | a constant peak filter gain. | 11011 | a constant peak filter gain. |
| @@ -11034,7 +11034,7 @@ OnePole :: OnePole(MY_FLOAT thePole) : FilterStk() · 22 unmodified lines |
| 11034 | B = (MY_FLOAT) (1.0 + thePole); | 11034 | B = (MY_FLOAT) (1.0 + thePole); |
| 11035 | | 11035 | |
| 11036 | A[1] = -thePole; | 11036 | A[1] = -thePole; |
| 11037 | FilterStk::setCoefficients( 1, &B, 2, A ); | 11037 | FilterStk::setCoefficients( 1, &B, 2, A ); |
| 11038 | } | 11038 | } |
| 11039 | | 11039 | |
| 11040 | OnePole :: ~OnePole() | 11040 | OnePole :: ~OnePole() |
| @@ -11106,7 +11106,7 @@ MY_FLOAT *OnePole :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 65 unmodified lines |
| 11106 | \brief STK one-zero filter class. | 11106 | \brief STK one-zero filter class. |
| 11107 | | 11107 | |
| 11108 | This protected Filter subclass implements | 11108 | This protected Filter subclass implements |
| 11109 | a one-zero digital filter. A method is | 11109 | a one-zero digital filter. A method is |
| 11110 | provided for setting the zero position | 11110 | provided for setting the zero position |
| 11111 | along the real axis of the z-plane while | 11111 | along the real axis of the z-plane while |
| 11112 | maintaining a constant filter gain. | 11112 | maintaining a constant filter gain. |
| @@ -11207,7 +11207,7 @@ MY_FLOAT *OneZero :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 94 unmodified lines |
| 11207 | Stanford/CCRMA reverbs (NRev, KipRev), which | 11207 | Stanford/CCRMA reverbs (NRev, KipRev), which |
| 11208 | were based on the Chowning/Moorer/Schroeder | 11208 | were based on the Chowning/Moorer/Schroeder |
| 11209 | reverberators using networks of simple allpass | 11209 | reverberators using networks of simple allpass |
| 11210 | and comb delay filters. This class implements | 11210 | and comb delay filters. This class implements |
| 11211 | two series allpass units and two parallel comb | 11211 | two series allpass units and two parallel comb |
| 11212 | filters. | 11212 | filters. |
| 11213 | | 11213 | |
| @@ -11323,7 +11323,7 @@ MY_FLOAT PRCRev :: tick(MY_FLOAT input) · 109 unmodified lines |
| 11323 | | 11323 | |
| 11324 | The basic Chowning/Stanford FM patent expired | 11324 | The basic Chowning/Stanford FM patent expired |
| 11325 | in 1995, but there exist follow-on patents, | 11325 | in 1995, but there exist follow-on patents, |
| 11326 | mostly assigned to Yamaha. If you are of the | 11326 | mostly assigned to Yamaha. If you are of the |
| 11327 | type who should worry about this (making | 11327 | type who should worry about this (making |
| 11328 | money) worry away. | 11328 | money) worry away. |
| 11329 | | 11329 | |
| @@ -11503,7 +11503,7 @@ const MY_FLOAT Phonemes :: phonemeParameters[32][4][3] = · 173 unmodified lines |
| 11503 | { 895, 0.900, -3}, | 11503 | { 895, 0.900, -3}, |
| 11504 | {2556, 0.950, -17}, | 11504 | {2556, 0.950, -17}, |
| 11505 | {3070, 0.910, -20}}, | 11505 | {3070, 0.910, -20}}, |
| 11506 | { { 637, 0.910, 0}, // ohh (bone) NOTE:: same as aww (bought) | 11506 | { { 637, 0.910, 0}, // ohh (bone) NOTE: same as aww (bought) |
| 11507 | { 895, 0.900, -3}, | 11507 | { 895, 0.900, -3}, |
| 11508 | {2556, 0.950, -17}, | 11508 | {2556, 0.950, -17}, |
| 11509 | {3070, 0.910, -20}}, | 11509 | {3070, 0.910, -20}}, |
| @@ -11793,7 +11793,7 @@ MY_FLOAT *PitShift :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 283 unmodified lines |
| 11793 | Smith, and others. | 11793 | Smith, and others. |
| 11794 | | 11794 | |
| 11795 | PluckTwo is an abstract class, with no excitation | 11795 | PluckTwo is an abstract class, with no excitation |
| 11796 | specified. Therefore, it can't be directly | 11796 | specified. Therefore, it can't be directly |
| 11797 | instantiated. | 11797 | instantiated. |
| 11798 | | 11798 | |
| 11799 | This is a digital waveguide model, making its | 11799 | This is a digital waveguide model, making its |
| @@ -12040,9 +12040,9 @@ MY_FLOAT Plucked :: tick() · 240 unmodified lines |
| 12040 | \brief STK one-pole, one-zero filter class. | 12040 | \brief STK one-pole, one-zero filter class. |
| 12041 | | 12041 | |
| 12042 | This protected Filter subclass implements | 12042 | This protected Filter subclass implements |
| 12043 | a one-pole, one-zero digital filter. A | 12043 | a one-pole, one-zero digital filter. A |
| 12044 | method is provided for creating an allpass | 12044 | method is provided for creating an allpass |
| 12045 | filter with a given coefficient. Another | 12045 | filter with a given coefficient. Another |
| 12046 | method is provided to create a DC blocking filter. | 12046 | method is provided to create a DC blocking filter. |
| 12047 | | 12047 | |
| 12048 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. | 12048 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. |
| @@ -12435,7 +12435,7 @@ bool Reverb :: isPrime(int number) · 386 unmodified lines |
| 12435 | | 12435 | |
| 12436 | The basic Chowning/Stanford FM patent expired | 12436 | The basic Chowning/Stanford FM patent expired |
| 12437 | in 1995, but there exist follow-on patents, | 12437 | in 1995, but there exist follow-on patents, |
| 12438 | mostly assigned to Yamaha. If you are of the | 12438 | mostly assigned to Yamaha. If you are of the |
| 12439 | type who should worry about this (making | 12439 | type who should worry about this (making |
| 12440 | money) worry away. | 12440 | money) worry away. |
| 12441 | | 12441 | |
| @@ -12528,7 +12528,7 @@ MY_FLOAT Rhodey :: tick() · 86 unmodified lines |
| 12528 | \brief STK SKINI parsing class | 12528 | \brief STK SKINI parsing class |
| 12529 | | 12529 | |
| 12530 | This class parses SKINI formatted text | 12530 | This class parses SKINI formatted text |
| 12531 | messages. It can be used to parse individual | 12531 | messages. It can be used to parse individual |
| 12532 | messages or it can be passed an entire file. | 12532 | messages or it can be passed an entire file. |
| 12533 | The file specification is Perry's and his | 12533 | The file specification is Perry's and his |
| 12534 | alone, but it's all text so it shouldn't be to | 12534 | alone, but it's all text so it shouldn't be to |
| @@ -12537,7 +12537,7 @@ MY_FLOAT Rhodey :: tick() · 2 unmodified lines |
| 12537 | SKINI (Synthesis toolKit Instrument Network | 12537 | SKINI (Synthesis toolKit Instrument Network |
| 12538 | Interface) is like MIDI, but allows for | 12538 | Interface) is like MIDI, but allows for |
| 12539 | floating-point control changes, note numbers, | 12539 | floating-point control changes, note numbers, |
| 12540 | etc. The following example causes a sharp | 12540 | etc. The following example causes a sharp |
| 12541 | middle C to be played with a velocity of 111.132: | 12541 | middle C to be played with a velocity of 111.132: |
| 12542 | | 12542 | |
| 12543 | noteOn 60.01 111.13 | 12543 | noteOn 60.01 111.13 |
| @@ -12552,7 +12552,7 @@ MY_FLOAT Rhodey :: tick() · 8 unmodified lines |
| 12552 | #include <stdlib.h> | 12552 | #include <stdlib.h> |
| 12553 | | 12553 | |
| 12554 | // Constructor for use when parsing SKINI strings (coming over socket | 12554 | // Constructor for use when parsing SKINI strings (coming over socket |
| 12555 | // for example. Use parseThis() method with string pointer. | 12555 | // for example. Use parseThis() method with string pointer. |
| 12556 | SKINI :: SKINI() | 12556 | SKINI :: SKINI() |
| 12557 | { | 12557 | { |
| 12558 | } | 12558 | } |
| @@ -12938,19 +12938,19 @@ MY_FLOAT Sampler :: tick() · 379 unmodified lines |
| 12938 | | 12938 | |
| 12939 | This class implements a "hybrid" digital | 12939 | This class implements a "hybrid" digital |
| 12940 | waveguide instrument that can generate a | 12940 | waveguide instrument that can generate a |
| 12941 | variety of wind-like sounds. It has also been | 12941 | variety of wind-like sounds. It has also been |
| 12942 | referred to as the "blowed string" model. The | 12942 | referred to as the "blowed string" model. The |
| 12943 | waveguide section is essentially that of a | 12943 | waveguide section is essentially that of a |
| 12944 | string, with one rigid and one lossy | 12944 | string, with one rigid and one lossy |
| 12945 | termination. The non-linear function is a | 12945 | termination. The non-linear function is a |
| 12946 | reed table. The string can be "blown" at any | 12946 | reed table. The string can be "blown" at any |
| 12947 | point between the terminations, though just as | 12947 | point between the terminations, though just as |
| 12948 | with strings, it is impossible to excite the | 12948 | with strings, it is impossible to excite the |
| 12949 | system at either end. If the excitation is | 12949 | system at either end. If the excitation is |
| 12950 | placed at the string mid-point, the sound is | 12950 | placed at the string mid-point, the sound is |
| 12951 | that of a clarinet. At points closer to the | 12951 | that of a clarinet. At points closer to the |
| 12952 | "bridge", the sound is closer to that of a | 12952 | "bridge", the sound is closer to that of a |
| 12953 | saxophone. See Scavone (2002) for more details. | 12953 | saxophone. See Scavone (2002) for more details. |
| 12954 | | 12954 | |
| 12955 | This is a digital waveguide model, making its | 12955 | This is a digital waveguide model, making its |
| 12956 | use possibly subject to patents held by Stanford | 12956 | use possibly subject to patents held by Stanford |
| @@ -13167,7 +13167,7 @@ void Saxofony :: controlChange(int number, MY_FLOAT value) · 210 unmodified lines |
| 13167 | PhISEM (Physically Informed Stochastic Event | 13167 | PhISEM (Physically Informed Stochastic Event |
| 13168 | Modeling) is an algorithmic approach for | 13168 | Modeling) is an algorithmic approach for |
| 13169 | simulating collisions of multiple independent | 13169 | simulating collisions of multiple independent |
| 13170 | sound producing objects. This class is a | 13170 | sound producing objects. This class is a |
| 13171 | meta-model that can simulate a Maraca, Sekere, | 13171 | meta-model that can simulate a Maraca, Sekere, |
| 13172 | Cabasa, Bamboo Wind Chimes, Water Drops, | 13172 | Cabasa, Bamboo Wind Chimes, Water Drops, |
| 13173 | Tambourine, Sleighbells, and a Guiro. | 13173 | Tambourine, Sleighbells, and a Guiro. |
| @@ -13175,7 +13175,7 @@ void Saxofony :: controlChange(int number, MY_FLOAT value) · 1 unmodified line |
| 13175 | PhOLIES (Physically-Oriented Library of | 13175 | PhOLIES (Physically-Oriented Library of |
| 13176 | Imitated Environmental Sounds) is a similar | 13176 | Imitated Environmental Sounds) is a similar |
| 13177 | approach for the synthesis of environmental | 13177 | approach for the synthesis of environmental |
| 13178 | sounds. This class implements simulations of | 13178 | sounds. This class implements simulations of |
| 13179 | breaking sticks, crunchy snow (or not), a | 13179 | breaking sticks, crunchy snow (or not), a |
| 13180 | wrench, sandpaper, and more. | 13180 | wrench, sandpaper, and more. |
| 13181 | | 13181 | |
| @@ -13298,11 +13298,11 @@ MY_FLOAT noise_tick() // Return random MY_FLOAT float between -1.0 and 1.0 · 116 unmodified lines |
| 13298 | #define WUTR_SYSTEM_DECAY 0.996 | 13298 | #define WUTR_SYSTEM_DECAY 0.996 |
| 13299 | #define WUTR_GAIN 1.0 | 13299 | #define WUTR_GAIN 1.0 |
| 13300 | #define WUTR_NUM_SOURCES 10 | 13300 | #define WUTR_NUM_SOURCES 10 |
| 13301 | #define WUTR_CENTER_FREQ0 450.0 | 13301 | #define WUTR_CENTER_FREQ0 450.0 |
| 13302 | #define WUTR_CENTER_FREQ1 600.0 | 13302 | #define WUTR_CENTER_FREQ1 600.0 |
| 13303 | #define WUTR_CENTER_FREQ2 750.0 | 13303 | #define WUTR_CENTER_FREQ2 750.0 |
| 13304 | #define WUTR_RESON 0.9985 | 13304 | #define WUTR_RESON 0.9985 |
| 13305 | #define WUTR_FREQ_SWEEP 1.0001 | 13305 | #define WUTR_FREQ_SWEEP 1.0001 |
| 13306 | | 13306 | |
| 13307 | // Tambourine | 13307 | // Tambourine |
| 13308 | #define TAMB_SOUND_DECAY 0.95 | 13308 | #define TAMB_SOUND_DECAY 0.95 |
| @@ -13312,7 +13312,7 @@ MY_FLOAT noise_tick() // Return random MY_FLOAT float between -1.0 and 1.0 · 3 unmodified lines |
| 13312 | #define TAMB_SHELL_FREQ 2300 | 13312 | #define TAMB_SHELL_FREQ 2300 |
| 13313 | #define TAMB_SHELL_GAIN 0.1 | 13313 | #define TAMB_SHELL_GAIN 0.1 |
| 13314 | #define TAMB_SHELL_RESON 0.96 | 13314 | #define TAMB_SHELL_RESON 0.96 |
| 13315 | #define TAMB_CYMB_FREQ1 5600 | 13315 | #define TAMB_CYMB_FREQ1 5600 |
| 13316 | #define TAMB_CYMB_FREQ2 8100 | 13316 | #define TAMB_CYMB_FREQ2 8100 |
| 13317 | #define TAMB_CYMB_RESON 0.99 | 13317 | #define TAMB_CYMB_RESON 0.99 |
| 13318 | | 13318 | |
| @@ -13332,18 +13332,18 @@ MY_FLOAT noise_tick() // Return random MY_FLOAT float between -1.0 and 1.0 · 13 unmodified lines |
| 13332 | #define GUIR_SOUND_DECAY 0.95 | 13332 | #define GUIR_SOUND_DECAY 0.95 |
| 13333 | #define GUIR_GAIN 10.0 | 13333 | #define GUIR_GAIN 10.0 |
| 13334 | #define GUIR_NUM_PARTS 128 | 13334 | #define GUIR_NUM_PARTS 128 |
| 13335 | #define GUIR_GOURD_FREQ 2500.0 | 13335 | #define GUIR_GOURD_FREQ 2500.0 |
| 13336 | #define GUIR_GOURD_RESON 0.97 | 13336 | #define GUIR_GOURD_RESON 0.97 |
| 13337 | #define GUIR_GOURD_FREQ2 4000.0 | 13337 | #define GUIR_GOURD_FREQ2 4000.0 |
| 13338 | #define GUIR_GOURD_RESON2 0.97 | 13338 | #define GUIR_GOURD_RESON2 0.97 |
| 13339 | | 13339 | |
| 13340 | // Wrench | 13340 | // Wrench |
| 13341 | #define WRENCH_SOUND_DECAY 0.95 | 13341 | #define WRENCH_SOUND_DECAY 0.95 |
| 13342 | #define WRENCH_GAIN 5 | 13342 | #define WRENCH_GAIN 5 |
| 13343 | #define WRENCH_NUM_PARTS 128 | 13343 | #define WRENCH_NUM_PARTS 128 |
| 13344 | #define WRENCH_FREQ 3200.0 | 13344 | #define WRENCH_FREQ 3200.0 |
| 13345 | #define WRENCH_RESON 0.99 | 13345 | #define WRENCH_RESON 0.99 |
| 13346 | #define WRENCH_FREQ2 8000.0 | 13346 | #define WRENCH_FREQ2 8000.0 |
| 13347 | #define WRENCH_RESON2 0.992 | 13347 | #define WRENCH_RESON2 0.992 |
| 13348 | | 13348 | |
| 13349 | // Cokecan | 13349 | // Cokecan |
| @@ -13352,7 +13352,7 @@ MY_FLOAT noise_tick() // Return random MY_FLOAT float between -1.0 and 1.0 · 2 unmodified lines |
| 13352 | #define COKECAN_GAIN 0.8 | 13352 | #define COKECAN_GAIN 0.8 |
| 13353 | #define COKECAN_NUM_PARTS 48 | 13353 | #define COKECAN_NUM_PARTS 48 |
| 13354 | #define COKECAN_HELMFREQ 370 | 13354 | #define COKECAN_HELMFREQ 370 |
| 13355 | #define COKECAN_HELM_RES 0.99 | 13355 | #define COKECAN_HELM_RES 0.99 |
| 13356 | #define COKECAN_METLFREQ0 1025 | 13356 | #define COKECAN_METLFREQ0 1025 |
| 13357 | #define COKECAN_METLFREQ1 1424 | 13357 | #define COKECAN_METLFREQ1 1424 |
| 13358 | #define COKECAN_METLFREQ2 2149 | 13358 | #define COKECAN_METLFREQ2 2149 |
| @@ -14441,9 +14441,9 @@ void Simple :: controlChange(int number, MY_FLOAT value) · 1082 unmodified lines |
| 14441 | | 14441 | |
| 14442 | This class contains all that is needed to make | 14442 | This class contains all that is needed to make |
| 14443 | a pitched musical sound, like a simple voice | 14443 | a pitched musical sound, like a simple voice |
| 14444 | or violin. In general, it will not be used | 14444 | or violin. In general, it will not be used |
| 14445 | alone because of munchkinification effects | 14445 | alone because of munchkinification effects |
| 14446 | from pitch shifting. It will be used as an | 14446 | from pitch shifting. It will be used as an |
| 14447 | excitation source for other instruments. | 14447 | excitation source for other instruments. |
| 14448 | | 14448 | |
| 14449 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. | 14449 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. |
| @@ -15021,7 +15021,7 @@ void StifKarp :: controlChange(int number, MY_FLOAT value) · 571 unmodified lines |
| 15021 | | 15021 | |
| 15022 | Nearly all STK classes inherit from this class. | 15022 | Nearly all STK classes inherit from this class. |
| 15023 | The global sample rate can be queried and | 15023 | The global sample rate can be queried and |
| 15024 | modified via Stk. In addition, this class | 15024 | modified via Stk. In addition, this class |
| 15025 | provides error handling and byte-swapping | 15025 | provides error handling and byte-swapping |
| 15026 | functions. | 15026 | functions. |
| 15027 | | 15027 | |
| @@ -15177,7 +15177,7 @@ void StkError :: printMessage(void) · 149 unmodified lines |
| 15177 | \brief STK sub-sampled noise generator. | 15177 | \brief STK sub-sampled noise generator. |
| 15178 | | 15178 | |
| 15179 | Generates a new random number every "rate" ticks | 15179 | Generates a new random number every "rate" ticks |
| 15180 | using the C rand() function. The quality of the | 15180 | using the C rand() function. The quality of the |
| 15181 | rand() function varies from one OS to another. | 15181 | rand() function varies from one OS to another. |
| 15182 | | 15182 | |
| 15183 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. | 15183 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. |
| @@ -15220,7 +15220,7 @@ MY_FLOAT SubNoise :: tick() · 36 unmodified lines |
| 15220 | | 15220 | |
| 15221 | This class loads a table of floating-point | 15221 | This class loads a table of floating-point |
| 15222 | doubles, which are assumed to be in big-endian | 15222 | doubles, which are assumed to be in big-endian |
| 15223 | format. Linear interpolation is performed for | 15223 | format. Linear interpolation is performed for |
| 15224 | fractional lookup indexes. | 15224 | fractional lookup indexes. |
| 15225 | | 15225 | |
| 15226 | An StkError will be thrown if the table file | 15226 | An StkError will be thrown if the table file |
| @@ -15343,7 +15343,7 @@ MY_FLOAT *Table :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 116 unmodified lines |
| 15343 | | 15343 | |
| 15344 | The basic Chowning/Stanford FM patent expired | 15344 | The basic Chowning/Stanford FM patent expired |
| 15345 | in 1995, but there exist follow-on patents, | 15345 | in 1995, but there exist follow-on patents, |
| 15346 | mostly assigned to Yamaha. If you are of the | 15346 | mostly assigned to Yamaha. If you are of the |
| 15347 | type who should worry about this (making | 15347 | type who should worry about this (making |
| 15348 | money) worry away. | 15348 | money) worry away. |
| 15349 | | 15349 | |
| @@ -15427,7 +15427,7 @@ MY_FLOAT TubeBell :: tick() · 77 unmodified lines |
| 15427 | \brief STK two-pole filter class. | 15427 | \brief STK two-pole filter class. |
| 15428 | | 15428 | |
| 15429 | This protected Filter subclass implements | 15429 | This protected Filter subclass implements |
| 15430 | a two-pole digital filter. A method is | 15430 | a two-pole digital filter. A method is |
| 15431 | provided for creating a resonance in the | 15431 | provided for creating a resonance in the |
| 15432 | frequency response while maintaining a nearly | 15432 | frequency response while maintaining a nearly |
| 15433 | constant filter gain. | 15433 | constant filter gain. |
| @@ -15526,7 +15526,7 @@ MY_FLOAT *TwoPole :: tick(MY_FLOAT *vec, unsigned int vectorSize) · 92 unmodified lines |
| 15526 | \brief STK two-zero filter class. | 15526 | \brief STK two-zero filter class. |
| 15527 | | 15527 | |
| 15528 | This protected Filter subclass implements | 15528 | This protected Filter subclass implements |
| 15529 | a two-zero digital filter. A method is | 15529 | a two-zero digital filter. A method is |
| 15530 | provided for creating a "notch" in the | 15530 | provided for creating a "notch" in the |
| 15531 | frequency response while maintaining a | 15531 | frequency response while maintaining a |
| 15532 | constant filter gain. | 15532 | constant filter gain. |
| @@ -15699,7 +15699,7 @@ void Vector3D :: setZ(double aval) · 166 unmodified lines |
| 15699 | | 15699 | |
| 15700 | Measured formant data is included, and enough | 15700 | Measured formant data is included, and enough |
| 15701 | data is there to support either parallel or | 15701 | data is there to support either parallel or |
| 15702 | cascade synthesis. In the floating point case | 15702 | cascade synthesis. In the floating point case |
| 15703 | cascade synthesis is the most natural so | 15703 | cascade synthesis is the most natural so |
| 15704 | that's what you'll find here. | 15704 | that's what you'll find here. |
| 15705 | | 15705 | |
| @@ -15955,14 +15955,14 @@ void VoicForm :: controlChange(int number, MY_FLOAT value) · 249 unmodified lines |
| 15955 | \brief STK voice manager class. | 15955 | \brief STK voice manager class. |
| 15956 | | 15956 | |
| 15957 | This class can be used to manage a group of | 15957 | This class can be used to manage a group of |
| 15958 | STK instrument classes. Individual voices can | 15958 | STK instrument classes. Individual voices can |
| 15959 | be controlled via unique note tags. | 15959 | be controlled via unique note tags. |
| 15960 | Instrument groups can be controlled by channel | 15960 | Instrument groups can be controlled by channel |
| 15961 | number. | 15961 | number. |
| 15962 | | 15962 | |
| 15963 | A previously constructed STK instrument class | 15963 | A previously constructed STK instrument class |
| 15964 | is linked with a voice manager using the | 15964 | is linked with a voice manager using the |
| 15965 | addInstrument() function. An optional channel | 15965 | addInstrument() function. An optional channel |
| 15966 | number argument can be specified to the | 15966 | number argument can be specified to the |
| 15967 | addInstrument() function as well (default | 15967 | addInstrument() function as well (default |
| 15968 | channel = 0). The voice manager does not | 15968 | channel = 0). The voice manager does not |
| @@ -15971,10 +15971,10 @@ void VoicForm :: controlChange(int number, MY_FLOAT value) · 2 unmodified lines |
| 15971 | deallocate all instruments. | 15971 | deallocate all instruments. |
| 15972 | | 15972 | |
| 15973 | The tick() function returns the mix of all | 15973 | The tick() function returns the mix of all |
| 15974 | sounding voices. Each noteOn returns a unique | 15974 | sounding voices. Each noteOn returns a unique |
| 15975 | tag (credits to the NeXT MusicKit), so you can | 15975 | tag (credits to the NeXT MusicKit), so you can |
| 15976 | send control changes to specific voices within | 15976 | send control changes to specific voices within |
| 15977 | an ensemble. Alternately, control changes can | 15977 | an ensemble. Alternately, control changes can |
| 15978 | be sent to all voices on a given channel. | 15978 | be sent to all voices on a given channel. |
| 15979 | | 15979 | |
| 15980 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. | 15980 | by Perry R. Cook and Gary P. Scavone, 1995 - 2002. |
| @@ -16223,7 +16223,7 @@ MY_FLOAT Voicer :: lastOutRight() const · 242 unmodified lines |
| 16223 | audio file looping functionality. | 16223 | audio file looping functionality. |
| 16224 | | 16224 | |
| 16225 | WaveLoop supports multi-channel data in | 16225 | WaveLoop supports multi-channel data in |
| 16226 | interleaved format. It is important to | 16226 | interleaved format. It is important to |
| 16227 | distinguish the tick() methods, which return | 16227 | distinguish the tick() methods, which return |
| 16228 | samples produced by averaging across sample | 16228 | samples produced by averaging across sample |
| 16229 | frames, from the tickFrame() methods, which | 16229 | frames, from the tickFrame() methods, which |
| @@ -16546,7 +16546,7 @@ MY_FLOAT Whistle :: tick() · 316 unmodified lines |
| 16546 | temp = -temp; // We know (hope) it's inside, just how much?? | 16546 | temp = -temp; // We know (hope) it's inside, just how much?? |
| 16547 | if (temp < (PEA_RADIUS * 1.25)) { | 16547 | if (temp < (PEA_RADIUS * 1.25)) { |
| 16548 | pea->getVelocity(tempVector); // This is the can/pea collision | 16548 | pea->getVelocity(tempVector); // This is the can/pea collision |
| 16549 | tempX = tempVectorP->getX(); // calculation. Could probably | 16549 | tempX = tempVectorP->getX(); // calculation. Could probably |
| 16550 | tempY = tempVectorP->getY(); // simplify using tables, etc. | 16550 | tempY = tempVectorP->getY(); // simplify using tables, etc. |
| 16551 | phi = -atan2(tempY,tempX); | 16551 | phi = -atan2(tempY,tempX); |
| 16552 | cosphi = cos(phi); | 16552 | cosphi = cos(phi); |
| @@ -16649,7 +16649,7 @@ void Whistle :: controlChange(int number, MY_FLOAT value) · 96 unmodified lines |
| 16649 | | 16649 | |
| 16650 | The basic Chowning/Stanford FM patent expired | 16650 | The basic Chowning/Stanford FM patent expired |
| 16651 | in 1995, but there exist follow-on patents, | 16651 | in 1995, but there exist follow-on patents, |
| 16652 | mostly assigned to Yamaha. If you are of the | 16652 | mostly assigned to Yamaha. If you are of the |
| 16653 | type who should worry about this (making | 16653 | type who should worry about this (making |
| 16654 | money) worry away. | 16654 | money) worry away. |
| 16655 | | 16655 | |
| @@ -16762,24 +16762,24 @@ void Wurley :: controlChange( int which, MY_FLOAT value ) · 106 unmodified lines |
| 16762 | \brief STK audio data input base class. | 16762 | \brief STK audio data input base class. |
| 16763 | | 16763 | |
| 16764 | This class provides input support for various | 16764 | This class provides input support for various |
| 16765 | audio file formats. It also serves as a base | 16765 | audio file formats. It also serves as a base |
| 16766 | class for "realtime" streaming subclasses. | 16766 | class for "realtime" streaming subclasses. |
| 16767 | | 16767 | |
| 16768 | WvIn loads the contents of an audio file for | 16768 | WvIn loads the contents of an audio file for |
| 16769 | subsequent output. Linear interpolation is | 16769 | subsequent output. Linear interpolation is |
| 16770 | used for fractional "read rates". | 16770 | used for fractional "read rates". |
| 16771 | | 16771 | |
| 16772 | WvIn supports multi-channel data in interleaved | 16772 | WvIn supports multi-channel data in interleaved |
| 16773 | format. It is important to distinguish the | 16773 | format. It is important to distinguish the |
| 16774 | tick() methods, which return samples produced | 16774 | tick() methods, which return samples produced |
| 16775 | by averaging across sample frames, from the | 16775 | by averaging across sample frames, from the |
| 16776 | tickFrame() methods, which return pointers to | 16776 | tickFrame() methods, which return pointers to |
| 16777 | multi-channel sample frames. For single-channel | 16777 | multi-channel sample frames. For single-channel |
| 16778 | data, these methods return equivalent values. | 16778 | data, these methods return equivalent values. |
| 16779 | | 16779 | |
| 16780 | Small files are completely read into local memory | 16780 | Small files are completely read into local memory |
| 16781 | during instantiation. Large files are read | 16781 | during instantiation. Large files are read |
| 16782 | incrementally from disk. The file size threshold | 16782 | incrementally from disk. The file size threshold |
| 16783 | and the increment size values are defined in | 16783 | and the increment size values are defined in |
| 16784 | WvIn.h. | 16784 | WvIn.h. |
| 16785 | | 16785 | |
| @@ -16787,7 +16787,7 @@ void Wurley :: controlChange( int which, MY_FLOAT value ) · 1 unmodified line |
| 16787 | MAT-file (Matlab), and STK RAW file formats. | 16787 | MAT-file (Matlab), and STK RAW file formats. |
| 16788 | Signed integer (8-, 16-, and 32-bit) and floating- | 16788 | Signed integer (8-, 16-, and 32-bit) and floating- |
| 16789 | point (32- and 64-bit) data types are supported. | 16789 | point (32- and 64-bit) data types are supported. |
| 16790 | Uncompressed data types are not supported. If | 16790 | Uncompressed data types are not supported. If |
| 16791 | using MAT-files, data should be saved in an array | 16791 | using MAT-files, data should be saved in an array |
| 16792 | with each data channel filling a matrix row. | 16792 | with each data channel filling a matrix row. |
| 16793 | | 16793 | |
| @@ -17319,7 +17319,7 @@ if( little_endian ) · 525 unmodified lines |
| 17319 | if( little_endian ) | 17319 | if( little_endian ) |
| 17320 | swap16((unsigned char *)&temp); | 17320 | swap16((unsigned char *)&temp); |
| 17321 | | 17321 | |
| 17322 | // Get file sample rate from the header. For AIFF files, this value | 17322 | // Get file sample rate from the header. For AIFF files, this value |
| 17323 | // is stored in a 10-byte, IEEE Standard 754 floating point number, | 17323 | // is stored in a 10-byte, IEEE Standard 754 floating point number, |
| 17324 | // so we need to convert it first. | 17324 | // so we need to convert it first. |
| 17325 | unsigned char srate[10]; | 17325 | unsigned char srate[10]; |
| @@ -17794,12 +17794,12 @@ MY_FLOAT *WvIn :: tickFrame(MY_FLOAT *frameVector, unsigned int frames) · 468 unmodified lines |
| 17794 | \brief STK audio data output base class. | 17794 | \brief STK audio data output base class. |
| 17795 | | 17795 | |
| 17796 | This class provides output support for various | 17796 | This class provides output support for various |
| 17797 | audio file formats. It also serves as a base | 17797 | audio file formats. It also serves as a base |
| 17798 | class for "realtime" streaming subclasses. | 17798 | class for "realtime" streaming subclasses. |
| 17799 | | 17799 | |
| 17800 | WvOut writes samples to an audio file. It | 17800 | WvOut writes samples to an audio file. It |
| 17801 | supports multi-channel data in interleaved | 17801 | supports multi-channel data in interleaved |
| 17802 | format. It is important to distinguish the | 17802 | format. It is important to distinguish the |
| 17803 | tick() methods, which output single samples | 17803 | tick() methods, which output single samples |
| 17804 | to all channels in a sample frame, from the | 17804 | to all channels in a sample frame, from the |
| 17805 | tickFrame() method, which takes a pointer | 17805 | tickFrame() method, which takes a pointer |
| @@ -17807,14 +17807,14 @@ MY_FLOAT *WvIn :: tickFrame(MY_FLOAT *frameVector, unsigned int frames) · 1 unmodified line |
| 17807 | | 17807 | |
| 17808 | WvOut currently supports WAV, AIFF, AIFC, SND | 17808 | WvOut currently supports WAV, AIFF, AIFC, SND |
| 17809 | (AU), MAT-file (Matlab), and STK RAW file | 17809 | (AU), MAT-file (Matlab), and STK RAW file |
| 17810 | formats. Signed integer (8-, 16-, and 32-bit) | 17810 | formats. Signed integer (8-, 16-, and 32-bit) |
| 17811 | and floating- point (32- and 64-bit) data types | 17811 | and floating- point (32- and 64-bit) data types |
| 17812 | are supported. STK RAW files use 16-bit | 17812 | are supported. STK RAW files use 16-bit |
| 17813 | integers by definition. MAT-files will always | 17813 | integers by definition. MAT-files will always |
| 17814 | be written as 64-bit floats. If a data type | 17814 | be written as 64-bit floats. If a data type |
| 17815 | specification does not match the specified file | 17815 | specification does not match the specified file |
| 17816 | type, the data type will automatically be | 17816 | type, the data type will automatically be |
| 17817 | modified. Uncompressed data types are not | 17817 | modified. Uncompressed data types are not |
| 17818 | supported. | 17818 | supported. |
| 17819 | | 17819 | |
| 17820 | Currently, WvOut is non-interpolating and the | 17820 | Currently, WvOut is non-interpolating and the |
| @@ -18442,7 +18442,7 @@ bool WvOut :: setMatFile( const char *fileName ) · 621 unmodified lines |
| 18442 | // 3. Array Name | 18442 | // 3. Array Name |
| 18443 | // We'll use fileName for the matlab array name (as well as the file name). | 18443 | // We'll use fileName for the matlab array name (as well as the file name). |
| 18444 | // If fileName is 4 characters or less, we have to use a compressed data element | 18444 | // If fileName is 4 characters or less, we have to use a compressed data element |
| 18445 | // format for the array name data element. Otherwise, the array name must | 18445 | // format for the array name data element. Otherwise, the array name must |
| 18446 | // be formatted in 8-byte increments (up to 31 characters + NULL). | 18446 | // be formatted in 8-byte increments (up to 31 characters + NULL). |
| 18447 | SINT32 namelength = (SINT32) strlen(fileName); | 18447 | SINT32 namelength = (SINT32) strlen(fileName); |
| 18448 | if (strstr(fileName, ".mat")) namelength -= 4; | 18448 | if (strstr(fileName, ".mat")) namelength -= 4; |
| @@ -18664,7 +18664,7 @@ void WvOut :: tickFrame(const MY_FLOAT *frameVector, unsigned int frames) · 215 unmodified lines |
| 18664 | | 18664 | |
| 18665 | This class can be used to read events from a standard MIDI file. | 18665 | This class can be used to read events from a standard MIDI file. |
| 18666 | Event bytes are copied to a C++ vector and must be subsequently | 18666 | Event bytes are copied to a C++ vector and must be subsequently |
| 18667 | interpreted by the user. The function getNextMidiEvent() skips | 18667 | interpreted by the user. The function getNextMidiEvent() skips |
| 18668 | meta and sysex events, returning only MIDI channel messages. | 18668 | meta and sysex events, returning only MIDI channel messages. |
| 18669 | Event delta-times are returned in the form of "ticks" and a | 18669 | Event delta-times are returned in the form of "ticks" and a |
| 18670 | function is provided to determine the current "seconds per tick". | 18670 | function is provided to determine the current "seconds per tick". |
| @@ -18755,9 +18755,9 @@ MidiFileIn :: MidiFileIn( std::string fileName ) · 84 unmodified lines |
| 18755 | tickrate = (double) (*data & 0x7FFF); // ticks per quarter note | 18755 | tickrate = (double) (*data & 0x7FFF); // ticks per quarter note |
| 18756 | } | 18756 | } |
| 18757 | | 18757 | |
| 18758 | // Now locate the track offsets and lengths. If not using time | 18758 | // Now locate the track offsets and lengths. If not using time |
| 18759 | // code, we can initialize the "tick time" using a default tempo of | 18759 | // code, we can initialize the "tick time" using a default tempo of |
| 18760 | // 120 beats per minute. We will then check for tempo meta-events | 18760 | // 120 beats per minute. We will then check for tempo meta-events |
| 18761 | // afterward. | 18761 | // afterward. |
| 18762 | unsigned int i; | 18762 | unsigned int i; |
| 18763 | for ( i=0; i<nTracks_; i++ ) { | 18763 | for ( i=0; i<nTracks_; i++ ) { |
| @@ -18882,8 +18882,8 @@ unsigned long MidiFileIn :: getNextEvent( std::vector<unsigned char> *event, uns · 118 unmodified lines |
| 18882 | { | 18882 | { |
| 18883 | // Fill the user-provided vector with the next event in the | 18883 | // Fill the user-provided vector with the next event in the |
| 18884 | // specified track (default = 0) and return the event delta time in | 18884 | // specified track (default = 0) and return the event delta time in |
| 18885 | // ticks. This function assumes that the stored track pointer is | 18885 | // ticks. This function assumes that the stored track pointer is |
| 18886 | // positioned at the start of a track event. If the track has | 18886 | // positioned at the start of a track event. If the track has |
| 18887 | // reached its end, the event vector size will be zero. | 18887 | // reached its end, the event vector size will be zero. |
| 18888 | // | 18888 | // |
| 18889 | // If we have a format 0 or 2 file and we're not using timecode, we | 18889 | // If we have a format 0 or 2 file and we're not using timecode, we |
| @@ -19002,7 +19002,7 @@ unsigned long MidiFileIn :: getNextMidiEvent( std::vector<unsigned char> *midiEv · 112 unmodified lines |
| 19002 | { | 19002 | { |
| 19003 | // Fill the user-provided vector with the next MIDI event in the | 19003 | // Fill the user-provided vector with the next MIDI event in the |
| 19004 | // specified track (default = 0) and return the event delta time in | 19004 | // specified track (default = 0) and return the event delta time in |
| 19005 | // ticks. Meta-Events preceeding this event are skipped and ignored. | 19005 | // ticks. Meta-Events preceeding this event are skipped and ignored. |
| 19006 | if ( track >= nTracks_ ) { | 19006 | if ( track >= nTracks_ ) { |
| 19007 | CK_STDCOUT << "MidiFileIn::getNextMidiEvent: invalid track argument (" << track << ")."; | 19007 | CK_STDCOUT << "MidiFileIn::getNextMidiEvent: invalid track argument (" << track << ")."; |
| 19008 | handleError( "", StkError::WARNING ); return 0; | 19008 | handleError( "", StkError::WARNING ); return 0; |
| @@ -19024,7 +19024,7 @@ unsigned long MidiFileIn :: getNextMidiEvent( std::vector<unsigned char> *midiEv · 15 unmodified lines |
| 19024 | bool MidiFileIn :: readVariableLength( unsigned long *value ) | 19024 | bool MidiFileIn :: readVariableLength( unsigned long *value ) |
| 19025 | { | 19025 | { |
| 19026 | // It is assumed that this function is called with the file read | 19026 | // It is assumed that this function is called with the file read |
| 19027 | // pointer positioned at the start of a variable-length value. The | 19027 | // pointer positioned at the start of a variable-length value. The |
| 19028 | // function returns "true" if the value is successfully parsed and | 19028 | // function returns "true" if the value is successfully parsed and |
| 19029 | // "false" otherwise. | 19029 | // "false" otherwise. |
| 19030 | *value = 0; | 19030 | *value = 0; |
| @@ -25025,7 +25025,7 @@ CK_DLL_CTRL( Moog_ctrl_filterQ ) · 5994 unmodified lines |
| 25025 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25025 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25026 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); | 25026 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); |
| 25027 | m->controlChange( __SK_FilterQ_, f * 128.0 ); | 25027 | m->controlChange( __SK_FilterQ_, f * 128.0 ); |
| 25028 | RETURN->v_float = (t_CKFLOAT) 10.0 * ( m->filterQ - 0.80 ); | 25028 | RETURN->v_float = (t_CKFLOAT)10.0 * ( m->filterQ - 0.80 ); |
| 25029 | } | 25029 | } |
| 25030 | | 25030 | |
| 25031 | | 25031 | |
| @@ -25036,7 +25036,7 @@ CK_DLL_CTRL( Moog_ctrl_filterQ ) · 4 unmodified lines |
| 25036 | CK_DLL_CGET( Moog_cget_filterQ ) | 25036 | CK_DLL_CGET( Moog_cget_filterQ ) |
| 25037 | { | 25037 | { |
| 25038 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25038 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25039 | RETURN->v_float = (t_CKFLOAT) 10.0 * ( m->filterQ - 0.80 ); | 25039 | RETURN->v_float = (t_CKFLOAT)10.0 * ( m->filterQ - 0.80 ); |
| 25040 | } | 25040 | } |
| 25041 | | 25041 | |
| 25042 | | 25042 | |
| @@ -25049,7 +25049,7 @@ CK_DLL_CTRL( Moog_ctrl_filterSweepRate ) · 6 unmodified lines |
| 25049 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25049 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25050 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); | 25050 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); |
| 25051 | m->controlChange( __SK_FilterSweepRate_, f * 128.0 ); | 25051 | m->controlChange( __SK_FilterSweepRate_, f * 128.0 ); |
| 25052 | RETURN->v_float = (t_CKFLOAT) m->filterRate * 5000; | 25052 | RETURN->v_float = (t_CKFLOAT)m->filterRate * 5000; |
| 25053 | } | 25053 | } |
| 25054 | | 25054 | |
| 25055 | | 25055 | |
| @@ -25060,7 +25060,7 @@ CK_DLL_CTRL( Moog_ctrl_filterSweepRate ) · 4 unmodified lines |
| 25060 | CK_DLL_CGET( Moog_cget_filterSweepRate ) | 25060 | CK_DLL_CGET( Moog_cget_filterSweepRate ) |
| 25061 | { | 25061 | { |
| 25062 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25062 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25063 | RETURN->v_float = (t_CKFLOAT) m->filterRate * 5000; | 25063 | RETURN->v_float = (t_CKFLOAT)m->filterRate * 5000; |
| 25064 | } | 25064 | } |
| 25065 | | 25065 | |
| 25066 | | 25066 | |
| @@ -25109,7 +25109,7 @@ CK_DLL_CTRL( Moog_ctrl_vibratoGain ) · 42 unmodified lines |
| 25109 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25109 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25110 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); | 25110 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); |
| 25111 | m->controlChange( __SK_ModWheel_, f * 128.0 ); | 25111 | m->controlChange( __SK_ModWheel_, f * 128.0 ); |
| 25112 | RETURN->v_float = (t_CKFLOAT) m->m_vibratoGain; | 25112 | RETURN->v_float = (t_CKFLOAT)m->m_vibratoGain; |
| 25113 | } | 25113 | } |
| 25114 | | 25114 | |
| 25115 | | 25115 | |
| @@ -25120,7 +25120,7 @@ CK_DLL_CTRL( Moog_ctrl_vibratoGain ) · 4 unmodified lines |
| 25120 | CK_DLL_CGET( Moog_cget_vibratoGain ) | 25120 | CK_DLL_CGET( Moog_cget_vibratoGain ) |
| 25121 | { | 25121 | { |
| 25122 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25122 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25123 | RETURN->v_float = (t_CKFLOAT) m->m_vibratoGain; | 25123 | RETURN->v_float = (t_CKFLOAT)m->m_vibratoGain; |
| 25124 | } | 25124 | } |
| 25125 | | 25125 | |
| 25126 | | 25126 | |
| @@ -25133,7 +25133,7 @@ CK_DLL_CTRL( Moog_ctrl_volume ) · 6 unmodified lines |
| 25133 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25133 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25134 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); | 25134 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); |
| 25135 | m->controlChange( __SK_AfterTouch_Cont_, f * 128.0 ); | 25135 | m->controlChange( __SK_AfterTouch_Cont_, f * 128.0 ); |
| 25136 | RETURN->v_float = (t_CKFLOAT) m->m_volume; | 25136 | RETURN->v_float = (t_CKFLOAT)m->m_volume; |
| 25137 | } | 25137 | } |
| 25138 | | 25138 | |
| 25139 | | 25139 | |
| @@ -25144,7 +25144,7 @@ CK_DLL_CTRL( Moog_ctrl_volume ) · 4 unmodified lines |
| 25144 | CK_DLL_CGET( Moog_cget_volume ) | 25144 | CK_DLL_CGET( Moog_cget_volume ) |
| 25145 | { | 25145 | { |
| 25146 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); | 25146 | Moog * m = (Moog *)OBJ_MEMBER_UINT(SELF, Instrmnt_offset_data); |
| 25147 | RETURN->v_float = (t_CKFLOAT) m->m_volume; | 25147 | RETURN->v_float = (t_CKFLOAT)m->m_volume; |
| 25148 | } | 25148 | } |
| 25149 | | 25149 | |
| 25150 | | 25150 | |
| @@ -25274,7 +25274,7 @@ CK_DLL_CTRL( PitShift_ctrl_shift ) · 123 unmodified lines |
| 25274 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); | 25274 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); |
| 25275 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); | 25275 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); |
| 25276 | p->setShift( f ); | 25276 | p->setShift( f ); |
| 25277 | RETURN->v_float = (t_CKFLOAT) 1.0 - p->rate; | 25277 | RETURN->v_float = (t_CKFLOAT)1.0 - p->rate; |
| 25278 | } | 25278 | } |
| 25279 | | 25279 | |
| 25280 | | 25280 | |
| @@ -25285,7 +25285,7 @@ CK_DLL_CTRL( PitShift_ctrl_shift ) · 4 unmodified lines |
| 25285 | CK_DLL_CGET( PitShift_cget_shift ) | 25285 | CK_DLL_CGET( PitShift_cget_shift ) |
| 25286 | { | 25286 | { |
| 25287 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); | 25287 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); |
| 25288 | RETURN->v_float = (t_CKFLOAT) 1.0 - p->rate; | 25288 | RETURN->v_float = (t_CKFLOAT)1.0 - p->rate; |
| 25289 | } | 25289 | } |
| 25290 | | 25290 | |
| 25291 | | 25291 | |
| @@ -25298,7 +25298,7 @@ CK_DLL_CTRL( PitShift_ctrl_effectMix ) · 6 unmodified lines |
| 25298 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); | 25298 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); |
| 25299 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); | 25299 | t_CKFLOAT f = GET_NEXT_FLOAT(ARGS); |
| 25300 | p->setEffectMix( f ); | 25300 | p->setEffectMix( f ); |
| 25301 | RETURN->v_float = (t_CKFLOAT) p->effectMix; | 25301 | RETURN->v_float = (t_CKFLOAT)p->effectMix; |
| 25302 | } | 25302 | } |
| 25303 | | 25303 | |
| 25304 | | 25304 | |
| @@ -25309,7 +25309,7 @@ CK_DLL_CTRL( PitShift_ctrl_effectMix ) · 4 unmodified lines |
| 25309 | CK_DLL_CGET( PitShift_cget_effectMix ) | 25309 | CK_DLL_CGET( PitShift_cget_effectMix ) |
| 25310 | { | 25310 | { |
| 25311 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); | 25311 | PitShift * p = (PitShift *)OBJ_MEMBER_UINT(SELF, PitShift_offset_data); |
| 25312 | RETURN->v_float = (t_CKFLOAT) p->effectMix; | 25312 | RETURN->v_float = (t_CKFLOAT)p->effectMix; |
| 25313 | } | 25313 | } |
| 25314 | | 25314 | |
| 25315 | | 25315 | |