TouchMusic
Perform live with your voice, switch characters with hand gestures, and build layered loops.
TouchMusic combines microphone effects, pitch correction, webcam hand tracking, reference-based AI voice conversion, a chord pad, a four-track looper, and WAV recording in a standalone Windows desktop app.
See roadmap.md for planned upgrades, standalone feature ideas, and the FL Studio test sequence.
Quick start · Auto-Tune · Looper · Gestures · Troubleshooting
Features
| Area | Controls |
|---|---|
| Voice performance | Live microphone monitoring, backing tracks, vocal effects, master mute |
| Pitch correction | Auto-Tune switch, Natural / Tight / Hard presets, key and scale, chromatic or chord targets, pitch meter |
| Character voices | Import, preview, and rename your own references; five gesture voice slots |
| AI conversion | Local pitch-conditioned Seed-VC; Live and Studio modes; compute and dropped-chunk status |
| Gestures | Finger counts, fists, thumb-index pinch, hand height, horizontal movement, thumb-index spread |
| Looper | Four tracks, 120 seconds per track, level, mute, restart, overdub, undo/redo, edge fades, progress, WAV export |
| Musical timing | Tap tempo, 40–240 BPM, 4/4 metronome, immediate / next beat / next bar changes, count-in and fixed-bar capture |
| Vocal character | Chord-following harmonies, vocal-range selection, vibrato preservation, formant shifting |
| Sessions | Portable skits with completed loops, backing, voice references, settings, scenes, mappings, crash recovery, ordered setlists |
| Recording | Performance WAV, separate stems, optional automatic vocal and mix alignment |
| MIDI output | Gesture CC, notes, chords, velocity, channel, timed note release, all-notes-off |
Download or install
Download the Windows setup ZIP from Releases, extract it, run Setup.cmd once, then Launch.cmd. Python 3.11 and Git are required. Setup downloads the runtime.
The release also includes an installable wheel. With Python 3.11, install it directly:
py -3.11 -m pip install https://github.com/RealShocky/TouchMusic/releases/download/v0.3.0/touchmusic-0.3.0-py3-none-any.whl
touchmusic
For character conversion, run the optional engine setup once:
touchmusic --setup-ai
Use touchmusic --setup-ai --cpu for CPU wheels. The standard setup selects NVIDIA CUDA wheels.
Install from PyPI with Python 3.11:
py -3.11 -m pip install touchmusic
The base package contains desktop effects, camera gestures, pitch correction, loops, and MIDI. The singing engine and model downloads are installed separately. touchmusic --help lists launch and setup options.
Requirements
- Windows 10 or 11, 64-bit.
- Python 3.11, 64-bit with the Windows Python launcher.
- Git for Windows.
- A microphone and headphones. A webcam enables gesture control.
- Internet for setup and the first AI model downloads.
- Several GB of free disk space for the Python environment and downloaded models.
- An NVIDIA GPU and compatible driver are recommended for AI conversion. Setup installs CUDA 12.8 PyTorch wheels. The model loader supports CPU, but real-time CPU performance has not been validated.
Effects, pitch correction, playback, and looping work before loading the AI model. A fresh clone starts with an empty voice library. Import your own reference audio to use character conversion.
Quick start
-
Clone the repository into a writable folder.
git clone https://github.com/RealShocky/TouchMusic.git cd TouchMusic -
Double-click Setup.cmd and let it finish. It creates the Python environment, installs dependencies, downloads Seed-VC at the pinned revision, and applies the inference compatibility patch.
-
Double-click Launch.cmd.
-
Select your microphone and headphone output, then click Start audio.
-
Choose Natural, Tight, or Hard to try pitch correction. Turn off Dialogue mode so vocal effects apply.
-
For gestures, click Start camera, check the preview, open Gesture mapping, and enable Arm gestures.
Launch.cmd changes to its own folder before starting the app, so it works from a desktop shortcut. Run Launch.cmd --load-engine to load the AI engine at launch. Later runs only need Launch.cmd. Setup is for creating or repairing the environment.
Desktop shortcut
Right-click Launch.cmd in your installation folder and choose Show more options → Send to → Desktop (create shortcut). The shortcut should point to Launch.cmd, with Start in set to the installation folder.
You can also choose New → Shortcut on the desktop, browse to Launch.cmd, and name it TouchMusic.
Pitch correction
- Click Auto-Tune Off on the main screen to enable pitch correction.
- Choose a preset, or adjust Tune strength and Retune speed on the Pitch correction tab.
- Set the song key, scale, and target. Chromatic uses the nearest semitone. Key / scale restricts correction to your scale. Current chord targets the active triad.
- Choose Wet vocal in Music tools to hear the processed result. Hold a sung note and watch the detected note, target, and cents meter.
Higher retune speed pulls notes into tune faster. Dialogue mode bypasses pitch correction and vocal effects. The UI label “Auto-Tune” refers to TouchMusic's built-in pitch correction.
Music tools also contains vocal range, vibrato preservation, harmony mode, and formant controls. Formant shifting changes voice color independently of pitch and adds about 43 ms of processing delay while active.
Character voices
- Click Import audio and choose WAV, MP3, FLAC, or OGG. The reference picker opens with a player and waveform.
- Listen with Play song, seek with the full-track slider, and click Use playhead as start when you find a section. Drag the green selection or either edge to choose 1–8 seconds. Zoom and the waveform scrollbar let you work through longer songs. Play selection auditions the highlighted section, and Loop selection repeats it.
- Enter a voice name and click Use this section. TouchMusic saves the selected audio and selects the new reference in the voice list.
- Click Load singing engine and wait until it reports ready.
- Enable Use AI character conversion, start audio, and speak or sing.
The engine uses up to eight seconds. The picker saves exactly the chosen section as the reference, so it can come from anywhere in a whole song. Earlier imports still use their first eight seconds. Use clear solo vocals with minimal instruments. The picker extracts the selected section as supplied. WAV preserves the source best, and MP3 is supported.
Preview output and volume can be chosen inside the picker. It plays through its own player and works while the main audio engine is stopped. Use headphones while auditioning if the main microphone is active.
Preview plays the reference. AI mix blends time-aligned dry and converted samples. Results depend on the reference, performance, and model. Importing a short reference does not train a dedicated model.
Live and Studio modes
| Mode | Model steps | Input block |
|---|---|---|
| Live | 4 | 800 ms |
| Studio | 8 | 1.2 seconds |
Input blocks are only part of the audible delay. Inference, buffering, audio devices, and effects add latency. Status reports compute time and dropped chunks.
For singing in time, use Dry mic headphone monitoring while recording the processed vocal. Leave a few seconds after the final phrase so buffered audio can finish.
Four-track looper
Set BPM or use Tap tempo, then choose Immediate, Next beat, or Next bar. Enable Metronome for a headphone click.
- Click a pad to capture. Click it again to finish and play.
- Quantized pads display the remaining beats until capture or finish. Press the same pad again before the boundary to cancel.
- Starting capture on another track finishes the current capture.
- Each track has level and mute. Select a track for restart, export, clear, or undo.
- In Replace mode, capturing over a filled track replaces its take. Overdub adds a layer. Undo and Redo move through up to four prior committed takes. Clear loop clears the clip and history.
- Four tracks hold up to 120 seconds each and play together.
- Processed vocal captures effects and AI output, including conversion delay. Mic before AI captures after enabled pitch correction and before downstream AI and vocal effects.
The clock uses 4/4 and starts when audio starts. Chords and loop restart follow the timing setting. Keep BPM fixed while building loops. Existing clips keep their speed when BPM changes. Backing tracks use their own playhead.
Chords and harmony
Open Music tools, choose a chord, and enable Play chord pad. Key and scale determine seven diatonic triads.
Map left fingers 1–5 to chords I–V replaces those poses' previous mappings. You can assign all seven chords, next / previous chord, and the chord-pad switch individually.
For vocal harmony, choose Chord above or Chord below and raise Harmony on the Vocal effects tab.
Gesture control
| Input | Controls |
|---|---|
| Finger counts and fists | Voice slots, next / previous voice, loop capture, mute, restart, undo, chords, transport, recording, saved scenes |
| Thumb-index pinch | A discrete action when the fingertips touch |
| Hand height or side-to-side movement | Effects, pitch, levels, tuning strength, retune speed |
| Thumb-index spread | A continuous effect or level |
| Rehearse gestures | Shows a detected pose and mapped action before arming |
Hold a pose for about a quarter second. It fires once until the pose changes. Pinch means touching thumb tip to index fingertip. Leave pinch unassigned if you want that hand's closed fist to take priority.
Assign voice slots in Gesture mapping. Default right-hand counts 1–4 select populated slots 1–4. Voice 5 is available to map. Rehearse assignments, then exit rehearsal and enable Arm gestures.
Vocal effects and scenes
Vocal effects include pitch, reverb, delay, harmony, robot modulation, chorus, drive, radio, low octave, tremolo, warmth, brightness, noise gate, delay feedback and time, AI mix, and levels.
Presets include Clean, Space, Choir, Machine, Intercom, Villain, and Ghost. Save a preset to recall effects, voices, mappings, and musical settings together. Saved presets appear as gesture scene actions.
Save a skit
Save skit creates a .touchmusic archive with completed loops, backing, active and slotted voice references, scenes, levels, loop mutes, gesture mappings, and musical settings.
Finish capture before saving. Open skit restores the arrangement, stops audio, and disarms gestures so you can check it before performing.
Recording and aligned export
Record performance writes the processed mix to WAV. Its gesture action starts and stops a recording in data/recordings without a file picker.
Record separate WAV stems creates a folder beside the mix with dry mic, wet vocal, four loop tracks, backing, and chords. Mute output silences monitoring while recording continues.
Export aligned vocal and mix generates wet-vocal-aligned.wav and performance-aligned.wav after stopping. Converted samples return to their originating microphone times. The original mix and stems remain available.
Alignment accounts for neural transport and the active formant buffer. Missing converted audio remains silent. It cannot recover samples arriving after recording stops. Other effect delays and tails can remain. The aligned mix uses the master level at stop instead of replaying master automation.
Using TouchMusic with FL Studio
Live audio route
TouchMusic already offers a selectable output device. A virtual audio cable can carry that output into an FL Studio Mixer input.
- Install a virtual cable such as VB-CABLE using its vendor instructions.
- In TouchMusic, keep your microphone selected and choose CABLE Input as the output using the same Windows audio backend as the microphone. Choose Wet vocal monitoring to send the converted/effected sound.
- In FL Studio's Audio settings, select FL Studio ASIO and open its panel. Choose CABLE Output as input and your headphones as output.
- Select the available external input on an FL Mixer insert. Monitor it and arm it for recording. FL Studio Producer Edition or higher supports external audio recording.
This sends TouchMusic's monitored mix, including loops and backing if playing. Disable TouchMusic's metronome if you want the click excluded from this route. The AI engine's processing delay also reaches FL Studio. This routing requires configuring the virtual driver and has not been verified on every device.
For an existing performance, import the WAV mix or separate stems into FL Studio. The aligned export can help place the converted vocal against the backing track.
Gesture control and plugin support
Open MIDI / FL in TouchMusic. Create a virtual port with loopMIDI, click Refresh ports, select that port and channel, then Connect MIDI. Enable the same input in FL Studio's MIDI settings. Test C4 checks the connection.
In Gesture mapping, map continuous hand movements to MIDI CC 0–119 and poses to MIDI note C4–B4, MIDI chord, or MIDI chord I–VII. The chord actions use the selected song key and scale. Set note velocity and length in MIDI / FL. Map hand heights to CC 1 / 74 provides a quick starting point.
Arm gestures to send. Rehearsal previews actions. Disarming sends all-notes-off. MIDI output disconnects when the app closes. Timed note release prevents a pose from leaving its notes held indefinitely. The all-notes-off button is also available manually. Connections are selected explicitly after launching the app.
To link a plugin knob in FL Studio, right-click it, choose Link to controller, and move the mapped hand. MIDI transports control messages. Use the audio route above for vocals. Native TouchMusic VST3 hosting would require a separate plugin implementation.
Official references are FL Studio audio settings, audio recording, and external controller linking.
Files and local data
| Path | Purpose |
|---|---|
| touchmusic/ | Desktop app, audio, camera, gestures, transport, session, and conversion source |
| Launch.cmd | Windows launcher |
| Setup.cmd | Environment and pinned upstream setup |
| requirements.txt | Runtime dependencies |
| prepare_seed.py | Upstream inference compatibility patch |
| .venv/ | Local Python environment |
| vendor/seed-vc/ | Downloaded inference source and upstream license |
| data/voices/ | Imported reference copies and manifest |
| data/models/ | Downloaded models |
| data/settings.json | Devices, effects, scenes, and mappings |
| data/recordings/ | Default recording folder |
| data/touchmusic.log | Startup and runtime diagnostics |
Source-folder launches keep data beside the source. A wheel installation uses %LOCALAPPDATA%/TouchMusic on Windows. TOUCHMUSIC_DATA_DIR can override the data directory. Imported voices and models are excluded from the package.
Publishing a release
Bump the version in pyproject.toml and touchmusic/runtime.py, update release-notes.md, then push to main. The release workflow builds a wheel, source distribution, Windows setup ZIP, and SHA-256 checksums and publishes a GitHub release. The same version is kept immutable on reruns.
For the first PyPI publication, add a pending trusted publisher in your PyPI account:
| PyPI field | Value |
|---|---|
| Project name | touchmusic |
| Owner | RealShocky |
| Repository | TouchMusic |
| Workflow | release.yml |
| Environment | pypi |
After configuring it, version builds on main publish automatically. You can also open Actions, select Build and release TouchMusic, choose Run workflow, and enable publish_pypi. Reruns reuse the exact Python distributions attached to the existing GitHub release. The publisher uses short-lived GitHub OIDC authentication.
This repository contains source and setup files. User audio, model weights, recordings, settings, upstream checkout, and the Python environment are generated locally and ignored by Git. Screenshots can be added under docs/screenshots/ and embedded here.
Troubleshooting
| Symptom | Check |
|---|---|
| Setup cannot find Python | Install 64-bit Python 3.11 with the Windows launcher, then retry |
| Git unavailable | Install Git for Windows and reopen Setup.cmd |
| Audio fails to open | Select input and output from the same Windows audio backend, then refresh |
| Camera fails | Close other webcam apps, check Windows camera access, and try another camera index |
| Tuning has no effect | Enable it, turn off Dialogue mode, choose Wet vocal, and sing a held note |
| Voice sounds unchanged | Select the imported reference, load the engine, enable AI conversion, and check AI mix |
| Loop seems to wait | Check Next beat / Next bar and the queued pad state |
| AI breaks up or is delayed | Try Live and Dry mic monitoring, close other GPU workloads, and check dropped chunks |
| Final AI phrase missing | Leave a few seconds after the last phrase before stopping |
| Startup exits | Read data/touchmusic.log and rerun Setup.cmd if dependencies are missing |
Status and acknowledgments
TouchMusic is an experimental Windows application. Automated DSP, transport, conversion-queue, recording, session, and UI tests were run during development. Live performance depends on your devices, reference audio, and GPU.
The singing engine uses Seed-VC, pinned by Setup.cmd. See THIRD_PARTY_NOTICES.md for source, model, and dependency information. The repository owner has not yet selected a license for TouchMusic's application source.
New in 0.2.0
- Import audio: choose Suggest section or Next suggestion, audition it, then Use this section. The level, silence, and possible-clipping report updates when you drag the selection. Suggestions rank audio levels; they do not identify singers or isolate vocals from music.
- Loop capture: select Replace or Overdub. Choose 0-2 count-in bars and Free length or 1/2/4/8 bars. Click a loop pad or use its gesture action. A second click cancels a queued start or finishes capture. Count-in clicks go to monitoring, not performance recordings.
- Overdub: add layers to an existing loop, with up to four prior committed takes available through Undo/Redo. Feedback controls how much existing audio survives each pass. With a fixed length selected, overdubs finish after one existing-loop cycle. Recorded loops retain their original playback speed when BPM changes.
- Edge fade: choose 0-20 ms to soften loop boundaries without changing duration. Loop pads display countdowns, recording state, and playback progress.
- Recovery: completed loops, backing, references, scenes, and settings save in the background after changes settle. An unexpected exit offers Recover session before any new session can overwrite that backup. Session > Recover last session is also available after a normal exit. An unfinished recording and undo history are not recovered. Save important performances as skits as well.
- Setlists: use Session > Save skit for each song, then Session > Setlist to add and arrange skits. Save the list as
.tmsetlist. Next song and Previous song can be assigned to gestures. Song recall stops audio and disarms gestures; check the setup and restart audio. Keep the skit files alongside the setlist when moving it.
Live FL Studio routing and hardware timing remain under test. These additions work independently of DAW routing.
Stage view and gesture precision (0.3.0)
- Session > Stage view, or F11 from the main window, opens large voice, key, chord, tempo, and loop controls. In stage view, F11 toggles fullscreen. Space toggles output mute. Back to controls returns to the main window.
- F12 performs an emergency mute from anywhere inside TouchMusic: output muted, gestures disarmed, MIDI notes released. It leaves recording and the arrangement running. Unmute explicitly when ready; re-arm gestures separately.
- Gesture mapping > Precision and calibration adjusts pose hold, movement smoothing, deadband, sensitivity, and pinch cooldown. Defaults retain the earlier 250 ms pose hold and 90 ms smoothing, with a 2% movement deadband.
- Start the camera, click Calibrate movement for 5 seconds, and move both hands through a comfortable up/down and side-to-side range. Open and close thumb-index spread too. Calibration disarms gestures and retains prior ranges for axes without enough movement. It never arms gestures automatically. Reset calibration restores full movement ranges.
- Freeze movements holds continuous controls while finger and pinch actions remain available. Calibration and precision settings save with presets, skits, recovery, and app settings. The temporary freeze switch is not saved.
- New movement targets: Tempo, Overdub feedback, Loop edge fade, Count-in bars, Capture length, Song key, Chord selection. New pose actions: Toggle overdub mode, Next capture length, Next count-in, Freeze movements, Emergency mute, Toggle stage view. Tempo changes schedule future events; existing loops keep their recorded playback speed.
- Session > Test output plays a quiet 440 Hz tone for 0.8 seconds through the selected output after audio is started. The tone obeys output mute and master level and is excluded from recorded mixes, stems, and loop capture. This verifies playback by listening, not an automatic device loopback measurement.
Gesture precision and stage controls are covered by automated tests. Camera comfort, tracking consistency, audible hardware output, and DAW routing still need live validation.
Metadata
Release files for touchmusic 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| touchmusic-0.3.0.tar.gz | 79.2 kB | With provenance | Details for touchmusic-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| touchmusic-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for touchmusic-0.3.0-py3-none-any.whl |
Total release size: 155.6 kB
Release files / touchmusic-0.3.0.tar.gz
| Download URL | touchmusic-0.3.0.tar.gz |
|---|---|
| Size | 79.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e78d28e67b76150771c25ae64b6ba2f95793aa9a8acdc7cb61a7fea902061ca
|
|
BLAKE2b-256 checksum How to use checksums |
91296a5e9f4c2f8be07c92990ded2730bfc3fb5eda364d6e8474956f9e476515
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / touchmusic-0.3.0-py3-none-any.whl
| Download URL | touchmusic-0.3.0-py3-none-any.whl |
|---|---|
| Size | 76.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8859cfe693ed869269394ae976e3fd8a64ddfbd5e4a32c7f965f16d009aaaf25
|
|
BLAKE2b-256 checksum How to use checksums |
bd497f837c2aa8d0e371934c04f1130106469eb9c1d6cdad27cd4848a800ef62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for touchmusic 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for touchmusic-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.