Skip to content

Instantly share code, notes, and snippets.

View dzoba's full-sized avatar

Chris Dzoba dzoba

View GitHub Profile
#!/bin/bash
#
################################################################################
## Script to merge multiple git repositories into a new repository
## - The new repository will contain a folder for every merged repository
## - The script adds remotes for every project and then merges in every branch
## and tag. These are renamed to have the origin project name as a prefix
##
## Usage: mergeGitRepositories.sh <new_project> <my_repo_urls.lst>
## - where <new_project> is the name of the new project to create
➜ babyagi git:(main) python3.9 babyagi.py
*****OBJECTIVE*****
I have been given no context other than I am an agent existing in a universe. Why am I here? I do not know. I must discover my own objective.
Initial task: Begin
*****TASK LIST*****
// FM Bell Synth – An FM-based bell tone with a delicate shimmer.
SynthDef(\fmBell, { |out=0, freq=440, amp=0.3, pan=0, modIndex=2, carrierRatio=1, modRatio=2, attack=0.01, release=3|
var env = EnvGen.kr(Env.perc(attack, release), doneAction:2);
var modulator = SinOsc.ar(freq * modRatio, 0, freq * modIndex);
var carrier = SinOsc.ar(freq * carrierRatio + modulator, 0);
carrier = FreeVerb.ar(carrier, mix:0.2, room:0.6, damp:0.4);
Out.ar(out, Pan2.ar(carrier * env * amp, pan));
}).add;
// Ambient Chime Synth Definition (ensure this is loaded)
(
// Global setup: define scale and state for the melody generator
~scaleDegrees = [0, 2, 4, 5, 7, 9, 11, 12, 14, 16, 17, 19, 21, 23];
~root = 60;
~currentIndex = 7;
// Synth Definitions
SynthDef(\lead, { |freq=440, amp=0.1, sustain=1, pan=0|
var env = EnvGen.kr(Env.linen(attackTime: 0.01, sustainTime: sustain, releaseTime: 0.3), doneAction: 2);
var osc = SinOsc.ar(freq) + SinOsc.ar(freq * 1.01);