tunes/live_coding/
mod.rs

1//! Live coding support for tunes
2//!
3//! This module provides hot-reload capabilities for iterative music composition.
4//! Edit your composition code and hear changes in real-time.
5//!
6//! # Quick Start
7//!
8//! Option 1 - Edit templates directly with IDE support:
9//!    ```bash
10//!    cargo run --release --bin tunes-live src/templates/jams.rs
11//!    ```
12//!    Edit `src/templates/jams.rs` and save - hear changes instantly!
13//!
14//! Option 2 - Create your own file:
15//! 1. Copy the template:
16//!    ```bash
17//!    cp src/templates/live_template.rs my_live.rs
18//!    ```
19//!
20//! 2. Update imports from `crate::` to `tunes::`
21//!
22//! 3. Start live coding:
23//!    ```bash
24//!    cargo run --release --bin tunes-live my_live.rs
25//!    ```
26//!
27//! 4. Edit and save - hear your changes instantly!
28//!
29//! # How It Works
30//!
31//! The live coding system watches your Rust file for changes. When you save:
32//! 1. The file is automatically recompiled
33//! 2. The old audio process is stopped
34//! 3. The new version starts playing
35//!
36//! This gives you instant feedback while composing!
37
38pub mod watcher;
39pub mod runner;