synthesize_sawtooth_lead_bass
Synthesize a sawtooth bass, lead, or pluck with a lowpass filter and ADSR envelope. Generate a .wav file by specifying pitch, duration, filter cutoff, and envelope.
Instructions
Generate a tone using a subtractive sawtooth oscillator and lowpass filter. Perfect for designing classic synthesizer Basses, Leads, and Plucks.
Args: pitch: The fundamental frequency in Hz (e.g., 55.0 for Bass, 440.0 for Lead). duration: The total length of the note in seconds. cutoff_hz: Filter brightness. - 100-400: Dark, muffled (Bass, Deep Pads) - 800-1500: Warm, midrange (Warm Pads, Keys) - 2000-5000: Bright, piercing (Leads, Plucks) attack: Time to reach max volume (0-255). - 0-10: Instant hit (Plucks, Kicks, Percussive Bass) - 50-100: Medium swell (Soft Leads, Strings) - 150-255: Very slow fade in (Ambient Pads, Drones) decay: Time to drop from max volume to sustain level (0-255). - 10-50: Fast drop (Punchy Bass) - 80-150: Natural decay (Keys, Guitars) sustain: Level held after decay phase (0-255). - 0: Note dies out entirely (Plucks, Percussion) - 255: Note holds at maximum volume (Organs, Synths) release: Fade out time after the note ends (0-255). - 10-30: Stops immediately (Staccato Bass, Tight Leads) - 150-255: Long ringing tail (Cinematic Pads, Reverbs) output_filename: Optional name for the output file (e.g. 'warm_pad.wav').
Returns: The absolute path to making the generated .wav file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decay | Yes | ||
| pitch | Yes | ||
| attack | Yes | ||
| release | Yes | ||
| sustain | Yes | ||
| duration | Yes | ||
| cutoff_hz | Yes | ||
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |