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