Skip to content

Instantly share code, notes, and snippets.

View tailot's full-sized avatar
🎯
Focusing

Vincenzo tailot

🎯
Focusing
  • Italy
View GitHub Profile
@tailot
tailot / sonic-pi-infinite-genre-morpher.rb
Last active June 2, 2026 17:13
A generative music script that algorithmically morphs between 16 electronic genres in real time.
use_random_seed Time.now.to_i
use_debug false
genres = {
techno: [130, :a, :minor, [1,0,0,0,1,0,0,0], [0,0,1,0,0,0,1,0], [0,1,0,1,0,1,0,1], :saw, :tb303, :bd_haus],
dnb: [172, :e, :minor, [1,0,0,1,0,0,0,0], [0,0,0,0,1,0,0,0], [1,1,1,1,1,1,1,1], :prophet, :subpulse, :bd_tek],
ambient: [70, :c, :major, [1,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0], :hollow, :fm, :bd_pure],
lofi: [85, :d, :minor, [1,0,0,0,1,0,0,0], [0,0,0,0,1,0,0,0], [0,0,1,0,0,0,1,0], :blade, :chipbass, :bd_klub],
trance: [140, :f, :minor, [1,0,0,0,1,0,0,0], [0,0,0,0,1,0,0,0], [1,1,1,1,1,1,1,1], :prophet, :saw, :bd_haus],
deep_house: [120, :g, :dorian,[1,0,0,0,1,0,0,0], [0,0,0,0,1,0,0,0], [0,1,0,1,0,1,0,1], :saw, :fm, :bd_fat],
@tailot
tailot / J_S_Bach_Crab_Canon_generative.rb
Last active May 19, 2026 18:37
An algorithmic remix of Bach’s Crab Canon featuring retrograde counterpoint, a dynamic rhythm engine, 6-palette synth morphing, and generative melodic embellishments.
# J.S. Bach - Crab Canon: Möbius Strip Remix (Generative Engine)
# English localized version for international compatibility
use_bpm 110
# Predefined rhythmic patterns for coherent groove generation
RHYTHM_PATTERNS = [
[1, 0, 1, 0, 1, 0, 1, 0], # Driving steady
[1, 1, 0, 1, 0, 0, 1, 0], # Syncopated
[1, 0, 0, 1, 0, 1, 1, 0], # Swing feel
@tailot
tailot / ravel-bolero-generative.rb
Last active May 20, 2026 12:54
An experimental remix engine built in Sonic Pi that reimagines Maurice Ravel's masterpiece through a modern electronic lens. Experience the Boléro structure combined with ACID, synthwave, and industrial soundscapes.
# Sonic Pi - Maurice Ravel: Bolero (Dynamic Synth-Morphing Remix)
# Electronic version with coherent dynamic synth variations (0.7 probability)
use_bpm 128 # Fast and driving tempo at 128 BPM
# Initial state for crescendo, tracks, and the "Remix" transition
set :crescendo_amp, 0.25
set :current_theme, :theme_a
set :current_palette_idx, 0 # Start with palette 0 (Classic Acid)
set :transition_active, false # Flag to manage buildups and avoid abrupt transitions
@tailot
tailot / multiprompt.json
Last active June 20, 2026 17:37
This multi-scene ComfyUI workflow sequentially generates three interconnected video clips using Wan2.2 Image-to-Video models, where each new scene begins from the final frame of the previous one, ultimately concatenating them into a single continuous narrative.
{
"id": "1b721654-a4ba-470e-8305-11c287667405",
"revision": 0,
"last_node_id": 62,
"last_link_id": 120,
"nodes": [
{
"id": 3,
"type": "UNETLoader",
"pos": [
@tailot
tailot / patch-analyzer.js
Created June 26, 2025 16:10
This script is a command-line tool for analyzing and updating .patch files. It verifies if the context lines (frames) of a patch are still valid against a target file. If the frames are intact, the script can automatically update the patch's content to match the current state of the file, effectively "rebasing" the patch.
#!/usr/bin/env node
/**
* Usage: node patch-analyzer.js <patch_file> [target_file]
*
* Analyzes a patch file to verify the integrity of its context frames against a target file.
* If the frames are intact, it updates the patch with the current content from the target file.
*
* Arguments:
* <patch_file> The path to the .patch file to analyze.
@prefix ex: <https://gist.github.com/tailot/31255adc622cd2fc588415846c7b052e#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:TayloredBlockShape
a sh:NodeShape ;
sh:targetClass ex:TayloredBlock ;
sh:property [
/*
USAGE: node <script_name.js> <file_or_directory_path> [start_marker] [end_marker] [extensions]
------------------------------------------------------------------------------------
<file_or_directory_path>: Path to the file or directory to analyze (required).
[start_marker]: Start marker string (optional).
If omitted, uses: "/*<taylored" (Default)
Provide "" for a literally empty marker.
[end_marker]: End marker string (optional).
If omitted, uses: "/*taylored>" (Default)
Provide "" for a literally empty marker.
#!/bin/bash
# USAGE:
# ./cleangit.sh
#
# DESCRIPTION:
# cleangit.sh is an interactive script for cleaning and maintaining a Git repository.
# It runs a series of Git commands to optimize the repository, remove obsolete branches,
# and untracked files.
#
// Usage: node removehistoryfromgit.js <path/to/your/file_to_remove.txt>
// Example: node removehistoryfromgit.js assets/images/large_confidential_file.jpg
// node removehistoryfromgit.js src/old_module.js
//
// This script completely removes a file from the Git repository's history.
// WARNING: This operation REWRITES HISTORY and is DANGEROUS.
// ALWAYS BACK UP YOUR REPOSITORY BEFORE RUNNING THIS SCRIPT.
// If the repository is shared, this will cause severe issues for collaborators
// who will need to re-clone or perform complex rebasing.
@tailot
tailot / IAcommit.py
Last active May 28, 2025 19:34
This Python script analyzes the commit history of a specified Git repository using a locally running Ollama instance and a user-selected AI model. It takes the repository path, an Ollama model name, and an optional commit limit as command-line arguments. For each selected commit, the script extracts the changes (diff) and prompts the AI to gener…
"""
usage: IAcommit.py [-h] [--limit LIMIT] [--model MODEL] [--hash HASH] repository_path
Analyzes commits in a Git repository and suggests new messages using AI with Ollama.
Positional arguments:
repository_path The local directory path of the Git repository to analyze.
Optional arguments:
-h, --help show this help message and exit