changed ascii art, addedd more comments

master
Luka Prinčič 2018-06-26 09:45:16 +02:00
parent 630743bae5
commit 3b1b118090
1 changed files with 18 additions and 18 deletions

View File

@ -8,19 +8,15 @@ GNU General Public Licence. See COPYING for more info.
// Be nice. Say hi! // Be nice. Say hi!
postln("\n\n postln("\n\n
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> Hello. <<< >>> Hello. <<<
_ _ _ _____ ___ ___ ___ _ _ ___ _____ _ _ ___ _ ___
/_\ | \| |_ _|_ _/ __|/ _ \| \| | __| / / __| || |_ _| | | \
/ _ \| .` | | | | | (_ | (_) | .` | _| / / (__| __ || || |__| |) |
/_/ \_\_|\_| |_| |___\___|\___/|_|\_|___/_/ \___|_||_|___|____|___/
█████╗ ███╗ ██╗████████╗██╗ ██████╗ ██████╗ ███╗ ██╗███████╗ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
██╔══██╗████╗ ██║╚══██╔══╝██║██╔════╝ ██╔═══██╗████╗ ██║██╔════╝
███████║██╔██╗ ██║ ██║ ██║██║ ███╗██║ ██║██╔██╗ ██║█████╗
██╔══██║██║╚██╗██║ ██║ ██║██║ ██║██║ ██║██║╚██╗██║██╔══╝
██║ ██║██║ ╚████║ ██║ ██║╚██████╔╝╚██████╔╝██║ ╚████║███████╗
╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"); ");
@ -30,11 +26,12 @@ Server.default.waitForBoot {
// home folder of current script // home folder of current script
var dir = PathName(thisProcess.nowExecutingPath).pathOnly; var dir = PathName(thisProcess.nowExecutingPath).pathOnly;
// load samples // find samples locations
~granSmp = PathName(dir +/+ "smp/").files; ~granSmp = PathName(dir +/+ "smp/").files;
~granBfrList = List(); ~granBfrList = List();
~granBfr = List(); ~granBfr = List();
// be nice and verbose in the post window while loading to buffers
postln(" \n~~~ Loading samples for granular synthesis ..." ); postln(" \n~~~ Loading samples for granular synthesis ..." );
~granSmp.do({ |item, i| ~granSmp.do({ |item, i|
postln(" " + i + "" + item.folderName +/+ item.fileName); postln(" " + i + "" + item.folderName +/+ item.fileName);
@ -44,10 +41,11 @@ Server.default.waitForBoot {
////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////
// granulator "Granny" definition // granulator "Granny" definition - basic recipe for the cake
SynthDef(\Granny, { SynthDef(\Granny, {
// arguments - accessible/settable from outside
arg bufnum, arg bufnum,
freq = 200, fvar = 0.05, freq = 200, fvar = 0.05,
dur = 0.3, durvar = 0.01, dur = 0.3, durvar = 0.01,
@ -57,11 +55,13 @@ Server.default.waitForBoot {
reverb = 0.5, reverb = 0.5,
posvar = 0.05, posvar = 0.05,
lpfLFOSpeed = 0.013, // lpfLFO changes the frequency of low pass filter using a slow sine oscilator
lpfLFOSpeedVar = 0.1, lpfLFOSpeed = 0.013, // frequency of the oscilator
lpfLFOMin = 400, lpfLFOSpeedVar = 0.1, // varies the freq of the LF oscilator
lpfLFOMax = 5000, lpfLFOMin = 400, // from Hz
lpfLFOMax = 5000, // to Hz
// lpfLFO changes the position of granulation using a slow sine oscilator
posLFOSpeed = 0.005, posLFOSpeed = 0.005,
posLFOSpeedVar = 0.1, posLFOSpeedVar = 0.1,
posLFOMin = 0, posLFOMin = 0,
@ -132,7 +132,7 @@ Server.default.waitForBoot {
////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////
// Synths // cooking Synths