Skip to main content
Glama

analyze_rhythm

Analyze rhythm patterns in music to support AI-powered generation and live coding. Enables precise control over Strudel.cc for pattern creation, storage, and audio analysis in TidalCycles/Strudel environments.

Instructions

Rhythm analysis

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool registration and schema definition for 'analyze_rhythm' in the list of tools returned by getTools()
    { name: 'analyze_rhythm', description: 'Rhythm analysis', inputSchema: { type: 'object', properties: {} } },
  • Handler logic for the 'analyze_rhythm' tool within the executeTool switch statement. It checks initialization, calls analyzeAudio on controller, and returns a placeholder rhythm analysis response.
    case 'analyze_rhythm': if (!this.isInitialized) { return 'Browser not initialized. Run init first.'; } const analysis = await this.controller.analyzeAudio(); return { isPlaying: analysis.features?.isPlaying, tempo: 'Analysis pending implementation', pattern: 'Rhythm pattern analysis' };
  • Supporting method analyzeAudio() called by the handler, delegates to AudioAnalyzer for audio analysis.
    async analyzeAudio(): Promise<any> { if (!this.page) throw new Error('Not initialized'); return await this.analyzer.getAnalysis(this.page); }
  • Tool registration and schema in the older EnhancedMCPServer.ts
    name: 'analyze_rhythm', description: 'Rhythm analysis', inputSchema: { type: 'object', properties: {} } },
  • Handler logic in the older server file, similar placeholder implementation.
    case 'analyze_rhythm': const analysis = await this.controller.analyzeAudio(); return { isPlaying: analysis.features?.isPlaying, tempo: 'Analysis pending implementation', pattern: 'Rhythm pattern analysis' };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/williamzujkowski/strudel-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server