Learning Timeline
Key Insights
Pro-Tip: Iterative Debugging
AI might generate code with bugs on the first attempt (such as a missing piano roll). Don't panic; just keep providing specific feedback on what isn't working so the AI can fix the code.
LLM Limitations in Music
While LLMs like ChatGPT were not specifically built for music composition, they can generate compelling song structures using MIDI data or frequencies. However, the final sound quality depends on the audio libraries implemented in the code.
Prompts
DAW Structure and Instrument Generation
Target:
Claude / ChatGPT
Code up a DAW interface with these instruments: piano, synth, pluck, strings, drums, and bass. For each instrument, there should be a piano roll interface.
Automatic Music Composition
Target:
Claude / ChatGPT
Compose a 28 bar professional Grammy award-winning song. Given the current instruments, it must sound amazing.
Visual and Playhead Correction
Target:
Claude / ChatGPT
All tracks should auto pan so the playhead is visible at all times.
Step by Step
Building and Composing Music for a DAW with AI
- Open your preferred AI Chatbot (such as Claude 3.5 Sonnet or ChatGPT-4o) to start the coding session.
- Enter a prompt to build a web-based DAW interface containing specific instruments: piano, synth, pluck, strings, drums, and bass.
- Instruct the AI to create a 'piano roll' feature for each instrument so that musical notes can be visually arranged.
- Enter a second prompt asking the AI to compose a professional-quality 28-bar song.
- Test the resulting code in a web browser to ensure all instruments are functioning correctly.
- If the 'piano roll' is not visible or audio is not playing, copy the error back to the AI for debugging.
- Give additional instructions to the AI to fix the 'playhead' alignment if it is not synced with the audio.
- Ask the AI to add an 'auto pan' function to all tracks so that the 'playhead' always remains within the visual display during playback.
- Click the Play button or activate the 'loop' function to listen to the automated composition.