EN JP

Toy Box シンセシスエンジン Toy Box Synthesis Engine

従来の制約を取り払い、音に関するありとあらゆる「遊び心」と「わくわく感」を詰め込んだポリフォニック音源 Unconstrained Playfulness & Infinite Curiosity: The Oboe-Based Polyphonic Engine

概要と根本思想 Overview & Philosophy

「Toy Box Synth」の根底にあるのは、「従来の音律や鍵盤の制約を取り払い、音に関するアイデアや遊び心を思いつく限り詰め込みたい」という無垢な探求心とわくわく感です。
Androidの超低遅延オーディオライブラリOboe(AAudio / OpenSLES)の高速レスポンスを限界まで活用し、通常の鍵盤演奏にとどまらず、微分音・N音平均律・傾斜センサーによる連続テルミン操作・自動伴奏まで、思いついた瞬間のひらめきに即座に応答する「音楽のおもちゃ箱」として設計されています。

At the heart of "Toy Box Synth" is a spirit of pure musical curiosity: removing traditional constraints and packing every playful audio idea imaginable into a single engine. Leveraging Android's low-latency Oboe library, it delivers instant responsiveness for microtonal scales, theremin-style tilt controls, keyboard playing, and accompaniment.

採用アプリ:Adopted Apps:
Music Theory Toy Box Inclination Theremin Shepard Keyboard Virtual Brass Instrument

1. 音飛び・ジッターの低減 ➔ Oboe & 排他制御最適化(ロック分離) 1. Mitigating Jitter & Latency ➔ Oboe & Lock Optimization

💬 開発者のつぶやき: 「ジリジリが気になる・・・けどボイス数さげると貧弱になるし・・・」 💬 Dev's Note: "The crackling jitter is driving me crazy... but reducing the voice count makes it sound so weak..."

【問題】 モバイル端末でのリアルタイム発声・ポリフォニック処理では、スレッド間のロック競合によって生じる音飛び(ジッター)や、タップから発音までのレイテンシー(遅延)が演奏の心地よさを損なう原因となる。

【対処(アプローチ)】 Android純正の超低遅延オーディオC++ライブラリ「Oboe」を活用。
オーディオ処理ルーチン内で、アクティブボイスの探索時のみ最小限だけ排他制御ロックを掛け、実際の重いオーディオDSP生成ループはアンロック状態で非同期実行するスレッド分離設計を構築しました。これにより、タッチやセンサー操作に対する即応性を高め、ジッターの発生を極力抑える設計を行っています。

[Problem] Multi-thread lock contention during real-time polyphonic synthesis causes audio dropouts (jitter) and touch-to-sound latency on mobile devices.

[Solution] Maximizing Google's Oboe C++ framework. We isolated mutex locks to instant voice-search steps, rendering the main DSP synthesis loop unlocked to minimize latency and audio jitter.

2. 音律の固定化からの解放 ➔ ノート / 周波数 デュアル発音制御 2. Breaking Free from 12-Tuning ➔ Dual Note/Freq Triggers

💬 開発者のつぶやき: 「とりあえず何でもできるようにしてUI側の気まぐれに備える」 💬 Dev's Note: "Just make it capable of anything so I'm prepared for whatever crazy idea hits the UI side."

【問題】 従来の標準的なMIDI音源エンジンは12平均律のノート番号(0〜127)に強く固定化されているため、微分音、N音平均律、傾斜センサーによる連続的テルミン演奏(周波数スライド)などの表現に対応しづらい。

【対処(アプローチ)】 鍵盤入力用の「MIDIノート指定」と、周波数を直接指定できる「周波数直打ち指定」の2系統の独立発音APIを標準装備しました。
さらに、連続ピッチスライド中にも柔軟な動的周波数誤差許容値でボイスをトラッキングする「許容差マッピング」を入れることで、ピッチベンドや連続周波数演奏時でも「ノートOFFで消音されなくなるバグ」を防止し、圧倒的な演奏自由度を提供します。

[Problem] Standard MIDI engines are strictly constrained to 12-equal temperament note IDs, limiting expression for microtonal scales or theremin-like continuous frequency slides.

[Solution] Dual-mode triggering: Discrete MIDI Note triggering alongside Direct Hz Frequency triggering. Coupled with dynamic frequency-matching tolerance, notes slide smoothly and release cleanly without voice leaks.

3. 無機質なシンセ音からの脱却 ➔ アタックノイズ分離 & 専用空間エフェクト 3. Acoustic Realism ➔ Separated Attack Noise & Dual Reverb

💬 開発者のつぶやき: 「そういや撥弦楽器のアタックって音響空間が別に独立して存在しているな」 💬 Dev's Note: "By the way, the attack transient of a plucked instrument actually exists in its own separate acoustic space, doesn't it?"

【問題】 純粋なデジタル合成波形(サイン波・矩形波・ノコギリ波など)は無機質な印象を与えやすく、管楽器の「ブレス感(息吹き音)」や弦の「擦過音」のような生々しい空気感が失われがちになる。

【対処(アプローチ)】 発音瞬間の息吹き音・摩擦音(Attack Noise)を楽音トーンとは完全に分離された専用サブボイスとして生成。
さらに、主音トーン用のメインリバーブとは別に「アタックノイズ専用の独立した空間リバーブ」を並列配置しました。打鍵・吹き込み瞬間の空気ノイズだけを立体的な部屋(ルーム空間)に放つことで、生楽器のようなアコースティックな臨場感を再現します。

[Problem] Pure digital synthesis waveforms tend to sound flat and sterile, lacking the organic breath noise of wind instruments or string friction.

[Solution] Attack Noise Separation & Dual Reverb. Transient friction noise is synthesized on a dedicated sub-channel and passed through an independent Attack Reverb, producing realistic acoustic spatial breath.

4. デジタル割れノイズの防止 ➔ アコースティック連続飽和 & ソフトリミッター 4. Warmth & Safety ➔ Soft Overdrive & Soft Limiter

💬 開発者のつぶやき: 「音が細いくせに音割れするの何なん」 💬 Dev's Note: "Why is it clipping and distorting when the sound is thin to begin with?!"

【問題】 和音(ポリフォニー)の重なりや、ドライブ(歪み)パラメータを上げた際に、波形の天頂が水平カットされるハードクリッピング(バチバチという不快な割れノイズ)が発生する。

【対処(アプローチ)】 サチュレーション処理に連続的な曲線を描くアコースティックな飽和特性関数(Soft Saturation)を採用。
さらに、マスター出力段にも同等のソフトリミッター(Soft Limiting)を配備することで、レベルオーバー時にも不快な破綻を回避し、真空管アンプのような温かみのあるアナログ質感とスピーカー保護を両立させています。

[Problem] Polyphonic summing or drive boost causes harsh digital hard-clipping distortion.

[Solution] Continuous curve soft saturation and master soft-limiting. Waveforms saturate smoothly, emulating analog tube warmth while safely protecting mobile speakers.

おわりに:実際の音でお試しください Conclusion: Experience the Sound

これらの理論や仕組みが実際に音としてどのような効果をもたらしているか、ぜひご自身の耳でお試しください。
その上で、もしご意見やご感想をいただけましたら、それが今後の開発の原動力になります。

Experience how these algorithms and design ideas actually shape the sound in our applications.
If you have any feedback or thoughts, we would love to hear from you—it directly fuels our ongoing development!

搭載アプリ(Music Theory Toy Box)を見る » View App (Music Theory Toy Box) »