मुख्य सामग्री पर जाएँ
Skillpedia
ऑडियो और आवाज़7.8k · #12840

aligned-stem-workflow

यह क्या करती है

यह स्किल एक चरणबद्ध ऑडियो उत्पादन विधि बताती है, जिसमें हर स्टेम की जाँच होती है और लंबाई मिलाई जाती है। यह AI से बने हिस्सों से संगीत या साउंड ट्रैक बनाने वाले लोगों के लिए है।

कब इस्तेमाल करें

  • ✓जब मेरे स्टेम्स की लंबाई अलग हो और उन्हें मिलाना ज़रूरी हो।
  • ✓जब मुझे अगला हिस्सा बनाने से पहले हर ऑडियो भाग की जाँच चाहिए।
  • ✓जब मुझे ड्रम्स को अपने अलग स्टेम के रूप में बनाना हो।

Skill का लिंक

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production-enhanced-enhanced/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production-enhanced-enhanced/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मुझे ऐसा ट्रैक बनाना है जिसके स्टेम्स मेल खाएँ, और लंबाई का अंतर लूप या फ़ेड से ठीक हो। यह कैसे करें?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI टेम्पो से समय तय करता है, रेफ़रेंस ऑडियो जाँचता है, हर स्टेम बनाकर उसकी पुष्टि करता है, फिर लंबाई का अंतर ठीक करता है और स्टेम्स को मिलाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Aligned Stem Audio Production Workflow

This skill provides a resilient pattern for audio production that emphasizes incremental verification, fail-fast principles, and automatic duration alignment. Each major step produces verified outputs before proceeding, with explicit handling for stem duration mismatches using appropriate extension strategies.

Overview

Follow these steps in strict order. Each step must complete successfully and pass verification before proceeding to the next:

  1. Early timing calculation - Derive section transitions from BPM and duration first
  2. Verify reference audio - Validate input file properties and extract target duration
  3. Generate and verify each stem individually - One stem at a time with immediate verification
  4. Detect and resolve duration mismatches - Apply appropriate extension strategy (zero-pad, loop, or crossfade)
  5. Generate drum stem separately - Dedicated drum extension with rhythm patterns
  6. Apply effects with verification - Process each stem and verify output
  7. Export master track - Mix all verified stems
  8. Archive and final verification - Package deliverables with comprehensive checks

Key Differences from Standard Workflow

  • Incremental verification: Verify each stem immediately after generation, not just at the end
  • Fail-fast approach: Stop and report errors at each step rather than accumulating failures
  • Early timing: Calculate section transitions before any audio generation
  • Duration alignment: Explicit detection and resolution of stem duration mismatches
  • Adaptive extension: Choose appropriate strategy (zero-pad/loop/crossfade) based on stem type
  • Separated drums: Drum stem generation is a distinct step with rhythm-specific processing
  • Memory-efficient: Process stems individually to avoid large array operations that cause sandbox failures

Step 1: Calculate Timing Parameters (Early)

Calculate all timing parameters before generating any audio. This ensures consistent timing across all stems:

def calculate_section_transitions(bpm, total_duration_sec, sections):
    """Calculate beat-aligned transition points for song sections."""
    beats_per_second = bpm / 60.0
    
    section_durations = {}
    cumulative_time = 0
    
    for section_name, beat_count in sections.items():
        duration = beat_count / beats_per_second
        section_durations[section_name] = {
            'start': cumulative_time,
            'end': cumulative_time + duration,
            'beats': beat_count,
            'start_beat': cumulative_time * beats_per_second
        }
        cumulative_time += duration
    
    return section_durations

# Configuration
BPM = 120
DURATION = 137
SECTIONS = {'intro': 16, 'verse': 32, 'chorus': 32, 'bridge': 16, 'outro': 16}

timing = calculate_section_transitions(BPM, DURATION, SECTIONS)
print("Timing calculated:")
for section, data in timing.items():
    print(f"  {section}: {data['start']:.2f}s - {data['end']:.2f}s ({data['beats']} beats)")

Step 2: Verify Reference Audio

Validate the reference file exists and has expected properties:

import soundfile as sf
import os

def verify_reference_file(filepath, expected_sample_rate=None, min_duration=None):
    """Verify reference audio file and return info dict."""
    if not os.path.exists(filepath):
        raise FileNotFoundError(f"Reference file not found: {filepath}")
    
    info = sf.info(filepath)
    errors = []
    
    if expected_sample_rate and info.samplerate != expected_sample_rate:
        errors.append(f"Sample rate mismatch: expected {expected_sample_rate}, got {info.samplerate}")
    
    if min_duration and info.duration < min_duration:
        errors.append(f"Duration too short: expected >= {min_duration}s, got {info.duration}s")
    
    if errors:
        raise ValueError(f"Reference file validation failed: {'; '.join(errors)}")
    
    print(f"Reference verified: {info.duration:.2f}s @ {info.samplerate}Hz, {info.channels}ch, {info.subtype}")
    return {
        'sample_rate': info.samplerate,
        'duration': info.duration,
        'channels': info.channels,
        'subtype': info.subtype
    }

# Verify reference
ref_info = verify_reference_file('reference.wav', expected_sample_rate=48000, min_duration=130)
TARGET_DURATION = ref_info['duration']  # Use actual reference duration as target

Step 3: Generate and Verify Each Stem Individually

G

अक्सर पूछे जाने वाले सवाल

लंबाई मिलाने के कौन से तरीके बताए गए हैं?

वर्कफ़्लो में ज़ीरो पैडिंग, लूपिंग और क्रॉसफ़ेडिंग का ज़िक्र है।

जल्दी जाँचने का फ़ायदा क्या है?

समस्याएँ अंतिम मिक्स तक फैलने से पहले पकड़ी जाती हैं।

क्या ऑडियो टूल पहले से सेट होने चाहिए?

हाँ, गाइड प्रक्रिया बताती है, इसलिए उसमें इस्तेमाल होने वाले ऑडियो टूल आपके कंप्यूटर पर होने चाहिए।

जानकारी

लेखक का मूल विवरण

Incremental audio production with duration alignment handling, per-stem verification, and adaptive extension strategies

repo: HKUDS/AgentPilot

लोकप्रियता

GitHub स्टार
7.8k
रैंकिंग में स्थान
#12840
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills