Repository navigation
synths drum tone
Working manual · 0.0.1-alpha · source snapshot 16 November 2026
Current synth model 31 (decimal). Create it in Synths with A on an empty cell, choose Drum Tone, then enter Synth Edit. Existing projects can also reach it from a Phrase synth reference.
D-pad selects a control. Hold A with Left/Right for a fine edit or Up/Down for a coarse edit. Double-A restores a supported control default. Output GAIN/PAN/DRY/SB1–SB4 belongs to the shared output section. Save the project for allocation and arrangement; export CTS for a reusable patch.
Recall TONE and trigger MIDI 60 kick, 61 snare, 64 closed hat and 65 open hat. Move HYBRID from its analog end toward digital while repeating the same pattern. Try PO=70 and PI=71 for short pitched beeps, and SHA=72 for the noise burst. Unlike several other kits, closed hats do not choke open hats.
These are suggested starting exercises derived from the controls, not newly auditioned factory presets. Shared synth workflow explains allocation and saving.
Drum Tone is append-only model 31. It uses one fixed kit-wide matrix and the existing OscillatorSynth, VoicePool, controller editor, tracker effects and mixer. There are no samples, per-note parameter banks or extra editor pages. Select Drum Tone in Synths; the existing CONFIG / FACTORY action offers COMPU, CALC, TONE and BENT. New instruments use TONE defaults.
Contour's existing drum convention is MIDI C4 = 60. Only 60–72 are accepted; unmapped notes are rejected before allocating a host voice.
| Note | MIDI | Sound |
|---|---|---|
| C4 | 60 | Kick |
| C#4 | 61 | Snare |
| D4 | 62 | Rim |
| D#4 | 63 | Claves |
| E4 | 64 | Closed hat |
| F4 | 65 | Open hat |
| F#4 | 66 | Cymbal |
| G4 | 67 | Cowbell |
| G#4 | 68 | Bongo high |
| A4 | 69 | Bongo low |
| A#4 | 70 | PO |
| B4 | 71 | PI |
| C5 | 72 | SHA |
One host allocation contains twelve overlapping hits, matching Drum Eight/Six. The thirteen sounds are all available, but thirteen simultaneous hits exceed the existing twelve-hit limit. Quietest envelope × velocity is stolen with stable array-order ties. Repeated notes replace the same sound with a fresh attack; other sounds retain their tails. Closed hats do not choke open hats. OFF and ordinary tracker replacement preserve tails; CUT and Stop clear them.
As with the other drum kits, tracks sharing an instrument share its kit; the latest trigger owns routing and tracker controls. Separate synth instances give independent routing. Chain transposition changes the dispatched note. Runtime pitch/Table pitch bends active sounds without selecting a new circuit.
One set of sixteen byte values (0–255) belongs to each preset. Playing or selecting notes cannot change these assignments or values. Panel PA1–PD4 maps to the existing row-major tracker addresses P1A–P4D, stored IDs 1–16. Legacy V1–VF covers the first fifteen IDs. There is no generic M1–M4 modulation page.
| Panel | Name | Function / physical range | TONE byte |
|---|---|---|---|
| PA1 | BD TONE | Kick resonance, brightness and short pitch sweep | 85 |
| PA2 | BD DEC | Kick decay, 45–900 ms | 130 |
| PA3 | SD TONE | Snare body pitch (140–320 Hz) and brightness | 105 |
| PA4 | SNAPPY | Snare noise/body balance | 160 |
| PB1 | HH DEC | Open hat decay, 60–1500 ms; closed hat fixed at 45 ms | 140 |
| PB2 | CY TONE | Cymbal oscillator and filter brightness | 135 |
| PB3 | CY DEC | Cymbal decay, 150–3000 ms | 155 |
| PB4 | CB TUNE | Cowbell fundamental, 360–720 Hz; second oscillator ×1.48 | 128 |
| PC1 | HB TUNE | High bongo, 260–520 Hz | 128 |
| PC2 | LB TUNE | Low bongo, 130–260 Hz | 128 |
| PC3 | RC TONE | Rim and claves frequencies in separate calibrated ranges | 125 |
| PC4 | METAL | Oscillator contribution inside hats, cymbal and cowbell | 145 |
| PD1 | PO TUNE | PO, approximately 90–358 Hz; byte 128 = 180 Hz | 128 |
| PD2 | PI TUNE | PI, approximately 360–1432 Hz; byte 128 = 720 Hz | 128 |
| PD3 | SHA DEC | SHA, approximately 40–633 ms; byte 128 = 160 ms | 128 |
| PD4 | HYBRID | Analog 0 → balanced 50% → digital 100% | 128 |
Durations specify nominal 60 dB exponential decay; hits retire near −100 dB. PO and PI have fixed nominal 30 ms and 20 ms envelopes. This is deliberate: their only dedicated visible controls are tuning. Frequencies/durations use perceptual exponential mappings. Tone, balance and metal controls display percent.
All relevant active hits and subsequent hits consume the same smoothed kit controls. Expensive mappings are cached on parameter changes. Control coefficients are smoothed at a 32-sample interval, and pitch/hybrid gains at sample rate, approximately 3 ms. A fresh idle trigger adopts settings immediately.
The implementation audit began with Drum Eight's mapping, fixed matrix, bounded hit allocator, shared sources and rendering. Drum Six's live-control coefficient caching, Drum Seven's PCM architecture, Drum Nine's hybrid host dispatch, the existing matrix metadata and CTS/CTP serializer were also inspected. There is no Drum FM implementation in the inspected Synth directory.
Reused components:
- DRUM's sine WaveformBank lookup, PolyBLEP pulse oscillator, inharmonic metallic oscillator mixture and xorshift noise.
- Drum Eight's exponential decay coefficient utility.
- FRAY's VirtualDAC quantisation, confined to the digital path.
- Shared SaturationProcessor output protection.
- Existing allocation, tracker matrix, editor/workbench, serializer and mixer.
The general SampleDegrader is an offline sample conversion API, so it is not called in the realtime path. Digital noise instead advances at an approximately 8 kHz clock and holds its value between ticks. The shared modulation generators are not needed for fixed one-shot percussion; no generic modulation routes are added.
Kick uses a rounded sine with a short pitch fall and a small tone-dependent transient. Snare combines two detuned sine bodies with filtered noise. Rim has two high resonances, claves a higher single woody body, and bongos use two lightly inharmonic tonal components. Hats/cymbal use six inharmonic pulse oscillators, noise and high/low filtering. Metallic clocks are shared within the kit (one hat bus and one separately tunable cymbal bus), so overlapping hits reuse their oscillator work while retaining independent filters and envelopes. Cowbell retains a paired 1:1.48 oscillator interval. The digital circuits use stepped pitch, differing pulse widths/oscillator mixes, held noise and four/five-bit quantisation. PO/PI are short beeps and SHA a longer noise burst.
HYBRID mixes separate paths with equal-power gains and calibrated source levels; it never changes the whole engine's bit depth. At exact endpoints, inaudible branch DSP is skipped. Moving away from an endpoint fades the branch in through the shared gain smoothing. Phase/filter state is bounded and retained while suspended; this is not an always-running hardware circuit emulation.
All source state is preallocated at host construction, outside the audio callback. Render/trigger paths perform no allocation, filesystem access, logging or locking. The engine uses sample-rate-aware coefficients, bounded phase frequencies, finite control sanitisation, explicit tail retirement and DC removal. No oversampling or per-sample trigonometry is used. Digital aliasing is part of the character; this is an inspired procedural instrument, not a measured CR-78 or VL-1 emulation.
COMPU is fully analog, CALC fully digital, TONE a balanced hybrid and BENT a bright, strongly digital, unusually tuned kit. All four use exactly the same sixteen controls and standard preset metadata. Definitions live in Definition.hpp and Presets.hpp. Factory CTS files under Presets/ are generated with OscillatorSerializer and copied to runtime assets/Synths by the Contour build.
CTS v5 and current CTP/CTL use their existing payload with one override array. No new chunks or wire layout are introduced; existing model IDs retain their values. Legacy short payloads without parameter 16 reject Drum Tone. Older applications reject model 31. Creative.Project.v1's frozen encoder is untouched.
| Documentation still to add |
|---|
| A labelled panel image, a short audio example for the first sound, and a verified CTS download. Preserve physical units and distinguish default byte values from audible measurements. |
Repository sources used for this page:
src/core/audio/Synth/Drum Tone/README.mdsrc/core/audio/Synth/Drum Tone/Definition.hppsrc/core/audio/osc/SynthControls.hpp
This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.