Skip to content

delaudio/strudel-vscode-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strudel Syntax Highlighting

VS Code extension for syntax highlighting of Strudel live coding patterns.

Features

  • Syntax highlighting for Strudel patterns in .txt files
  • Supports all major Strudel functions and methods
  • Highlights musical notes, drum sounds, and pattern operators
  • Auto-closing brackets for pattern notation

Installation

  1. Copy this extension to your VS Code extensions directory:

    • Windows: %USERPROFILE%\.vscode\extensions\strudel-syntax
    • macOS: ~/.vscode/extensions/strudel-syntax
    • Linux: ~/.vscode/extensions/strudel-syntax
  2. Restart VS Code

  3. Open any .txt file with Strudel patterns - syntax highlighting should activate automatically

Usage

Create .txt files with your Strudel patterns:

// Basic drum pattern
"<bd hh> hh <~ hh> hh".sound()
  .room(0.2)
  .delay(0.1)

// Melodic sequence
"c3 [eb3 g3] f3 [ab3 c4]"
  .sound("sawtooth")
  .lpf(sine.range(400, 1200).slow(8))

Supported Syntax

  • Pattern notation: "<bd hh> [c d e]"
  • Functions: stack(), choose(), sometimes()
  • Methods: .sound(), .fast(), .slow(), .gain()
  • Effects: .delay(), .reverb(), .lpf(), .attack()
  • Mathematical: sine, rand, perlin
  • Notes: c3, eb4, f#2
  • Drums: bd, sd, hh, cp

About

Syntax highlighting for Strudel live coding patterns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published