reverse
Reverse musical patterns in Strudel to create mirrored sequences and explore inverted rhythmic structures for experimental composition.
Instructions
Reverse pattern
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler implementation for the 'reverse' tool. Retrieves the current pattern, appends '.rev' to reverse it in Strudel syntax, writes the modified pattern, and returns a success message.case 'reverse': const toReverse = await this.getCurrentPatternSafe(); const reversed = toReverse + '.rev'; await this.writePatternSafe(reversed); return 'Pattern reversed';
- src/server/EnhancedMCPServerFixed.ts:166-170 (registration)Tool registration in getTools() method, defining the name, description, and empty input schema (no parameters required). This is returned by the list tools handler.{ name: 'reverse', description: 'Reverse pattern', inputSchema: { type: 'object', properties: {} } },
- Input schema definition for the 'reverse' tool, specifying no required parameters.inputSchema: { type: 'object', properties: {} }