omnipython-audioinstruments 0.0.1__py3-none-any.whl → 0.5.2.dev7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. audioinstruments/__init__.py +79 -0
  2. audioinstruments/__init__.pyi +39 -0
  3. audioinstruments/_names.py +89 -0
  4. audioinstruments/_names.pyi +7 -0
  5. audioinstruments/_rack/__init__.py +144 -0
  6. audioinstruments/_rack/__init__.pyi +13 -0
  7. audioinstruments/_rack/_component.py +431 -0
  8. audioinstruments/_rack/_component.pyi +149 -0
  9. audioinstruments/_rack/_gm.py +52 -0
  10. audioinstruments/_rack/_lazy.py +19 -0
  11. audioinstruments/_rack/_sf2.py +709 -0
  12. audioinstruments/_rack/adapter.py +1298 -0
  13. audioinstruments/_rack/adapter.pyi +324 -0
  14. audioinstruments/_rack/arpeggiator.py +296 -0
  15. audioinstruments/_rack/arpeggiator.pyi +100 -0
  16. audioinstruments/_rack/core/__init__.py +109 -0
  17. audioinstruments/_rack/core/bridge.py +434 -0
  18. audioinstruments/_rack/core/cable.py +70 -0
  19. audioinstruments/_rack/core/graph.py +1432 -0
  20. audioinstruments/_rack/core/jack.py +138 -0
  21. audioinstruments/_rack/core/module.py +194 -0
  22. audioinstruments/_rack/core/poly.py +761 -0
  23. audioinstruments/_rack/core/rack.py +350 -0
  24. audioinstruments/_rack/core/signal.py +270 -0
  25. audioinstruments/_rack/dsp/__init__.py +118 -0
  26. audioinstruments/_rack/dsp/amplifier.py +48 -0
  27. audioinstruments/_rack/dsp/biquad.py +131 -0
  28. audioinstruments/_rack/dsp/blocks.py +130 -0
  29. audioinstruments/_rack/dsp/chorus.py +169 -0
  30. audioinstruments/_rack/dsp/delay.py +55 -0
  31. audioinstruments/_rack/dsp/drums.py +1639 -0
  32. audioinstruments/_rack/dsp/ensemble.py +417 -0
  33. audioinstruments/_rack/dsp/envelope.py +146 -0
  34. audioinstruments/_rack/dsp/function_generator.py +216 -0
  35. audioinstruments/_rack/dsp/glide.py +99 -0
  36. audioinstruments/_rack/dsp/granular.py +142 -0
  37. audioinstruments/_rack/dsp/keys.py +345 -0
  38. audioinstruments/_rack/dsp/ladder.py +475 -0
  39. audioinstruments/_rack/dsp/lfo.py +108 -0
  40. audioinstruments/_rack/dsp/lpg.py +61 -0
  41. audioinstruments/_rack/dsp/macro_oscillator.py +275 -0
  42. audioinstruments/_rack/dsp/modal.py +177 -0
  43. audioinstruments/_rack/dsp/noise.py +61 -0
  44. audioinstruments/_rack/dsp/organ.py +487 -0
  45. audioinstruments/_rack/dsp/oscillator.py +278 -0
  46. audioinstruments/_rack/dsp/reverb.py +73 -0
  47. audioinstruments/_rack/dsp/rotary.py +213 -0
  48. audioinstruments/_rack/dsp/saturation.py +58 -0
  49. audioinstruments/_rack/dsp/sequencers.py +323 -0
  50. audioinstruments/_rack/dsp/tremolo.py +130 -0
  51. audioinstruments/_rack/dsp/twopole.py +173 -0
  52. audioinstruments/_rack/dsp/utility.py +113 -0
  53. audioinstruments/_rack/dsp/wavefolder.py +79 -0
  54. audioinstruments/_rack/dsp/west_coast.py +99 -0
  55. audioinstruments/_rack/hmi.py +400 -0
  56. audioinstruments/_rack/instruments/__init__.py +9 -0
  57. audioinstruments/_rack/instruments/bass_pedals.py +354 -0
  58. audioinstruments/_rack/instruments/clavichord.py +248 -0
  59. audioinstruments/_rack/instruments/combo_organ.py +255 -0
  60. audioinstruments/_rack/instruments/compact_organ.py +324 -0
  61. audioinstruments/_rack/instruments/duosynth.py +453 -0
  62. audioinstruments/_rack/instruments/electric_grand70.py +215 -0
  63. audioinstruments/_rack/instruments/electric_piano.py +254 -0
  64. audioinstruments/_rack/instruments/electronic_drums5.py +333 -0
  65. audioinstruments/_rack/instruments/mono101.py +474 -0
  66. audioinstruments/_rack/instruments/mono_synth.py +588 -0
  67. audioinstruments/_rack/instruments/poly106.py +464 -0
  68. audioinstruments/_rack/instruments/poly5.py +556 -0
  69. audioinstruments/_rack/instruments/poly6.py +497 -0
  70. audioinstruments/_rack/instruments/poly8.py +494 -0
  71. audioinstruments/_rack/instruments/poly80.py +655 -0
  72. audioinstruments/_rack/instruments/polya6.py +465 -0
  73. audioinstruments/_rack/instruments/polyxa.py +522 -0
  74. audioinstruments/_rack/instruments/reed_piano.py +167 -0
  75. audioinstruments/_rack/instruments/reed_piano200a.py +182 -0
  76. audioinstruments/_rack/instruments/rhythm606.py +239 -0
  77. audioinstruments/_rack/instruments/rhythm78.py +326 -0
  78. audioinstruments/_rack/instruments/rhythm808.py +347 -0
  79. audioinstruments/_rack/instruments/rhythm909.py +318 -0
  80. audioinstruments/_rack/instruments/string_ensemble.py +338 -0
  81. audioinstruments/_rack/instruments/tonewheel3.py +387 -0
  82. audioinstruments/_rack/instruments/vocoder330.py +510 -0
  83. audioinstruments/_rack/midi_cc.py +507 -0
  84. audioinstruments/_rack/midi_cc.pyi +74 -0
  85. audioinstruments/_rack/midi_dispatch.py +361 -0
  86. audioinstruments/_rack/midi_dispatch.pyi +79 -0
  87. audioinstruments/_rack/modules/__init__.py +265 -0
  88. audioinstruments/_rack/modules/_drums_graph.py +1029 -0
  89. audioinstruments/_rack/modules/_util.py +53 -0
  90. audioinstruments/_rack/modules/acid303.py +534 -0
  91. audioinstruments/_rack/modules/bass_pedals/__init__.py +29 -0
  92. audioinstruments/_rack/modules/bass_pedals/voice.py +714 -0
  93. audioinstruments/_rack/modules/clavichord/__init__.py +32 -0
  94. audioinstruments/_rack/modules/clavichord/output.py +334 -0
  95. audioinstruments/_rack/modules/clavichord/voice.py +498 -0
  96. audioinstruments/_rack/modules/combo_organ/__init__.py +10 -0
  97. audioinstruments/_rack/modules/combo_organ/output.py +261 -0
  98. audioinstruments/_rack/modules/combo_organ/vibrato.py +113 -0
  99. audioinstruments/_rack/modules/combo_organ/voice.py +653 -0
  100. audioinstruments/_rack/modules/compact_organ/__init__.py +14 -0
  101. audioinstruments/_rack/modules/compact_organ/output.py +381 -0
  102. audioinstruments/_rack/modules/compact_organ/vibrato.py +123 -0
  103. audioinstruments/_rack/modules/compact_organ/voice.py +445 -0
  104. audioinstruments/_rack/modules/drum_synth.py +218 -0
  105. audioinstruments/_rack/modules/duo20.py +883 -0
  106. audioinstruments/_rack/modules/duosynth/__init__.py +35 -0
  107. audioinstruments/_rack/modules/duosynth/lfo.py +80 -0
  108. audioinstruments/_rack/modules/duosynth/output.py +119 -0
  109. audioinstruments/_rack/modules/duosynth/voice.py +1482 -0
  110. audioinstruments/_rack/modules/electric_grand70/__init__.py +32 -0
  111. audioinstruments/_rack/modules/electric_grand70/output.py +249 -0
  112. audioinstruments/_rack/modules/electric_grand70/voice.py +377 -0
  113. audioinstruments/_rack/modules/electric_piano/__init__.py +32 -0
  114. audioinstruments/_rack/modules/electric_piano/output.py +215 -0
  115. audioinstruments/_rack/modules/electric_piano/voice.py +284 -0
  116. audioinstruments/_rack/modules/electronic_drums5/__init__.py +8 -0
  117. audioinstruments/_rack/modules/electronic_drums5/voice.py +410 -0
  118. audioinstruments/_rack/modules/function_generator.py +139 -0
  119. audioinstruments/_rack/modules/granular_processor.py +122 -0
  120. audioinstruments/_rack/modules/hybrid_mono.py +567 -0
  121. audioinstruments/_rack/modules/macro_oscillator.py +106 -0
  122. audioinstruments/_rack/modules/midi_cv.py +497 -0
  123. audioinstruments/_rack/modules/modal_resonator.py +248 -0
  124. audioinstruments/_rack/modules/modular100/__init__.py +34 -0
  125. audioinstruments/_rack/modules/modular100/env_lfo.py +108 -0
  126. audioinstruments/_rack/modules/modular100/utility.py +82 -0
  127. audioinstruments/_rack/modules/modular100/vca.py +106 -0
  128. audioinstruments/_rack/modules/modular100/vcf.py +128 -0
  129. audioinstruments/_rack/modules/modular100/vco.py +134 -0
  130. audioinstruments/_rack/modules/modular55/__init__.py +34 -0
  131. audioinstruments/_rack/modules/modular55/envelope.py +38 -0
  132. audioinstruments/_rack/modules/modular55/highpass.py +51 -0
  133. audioinstruments/_rack/modules/modular55/lowpass.py +55 -0
  134. audioinstruments/_rack/modules/modular55/vca.py +50 -0
  135. audioinstruments/_rack/modules/modular55/vco.py +73 -0
  136. audioinstruments/_rack/modules/mono101/__init__.py +32 -0
  137. audioinstruments/_rack/modules/mono101/lfo.py +133 -0
  138. audioinstruments/_rack/modules/mono101/voice.py +707 -0
  139. audioinstruments/_rack/modules/mono_one.py +759 -0
  140. audioinstruments/_rack/modules/mono_synth/__init__.py +30 -0
  141. audioinstruments/_rack/modules/mono_synth/voice.py +929 -0
  142. audioinstruments/_rack/modules/paraphonic_synth.py +328 -0
  143. audioinstruments/_rack/modules/patch2600.py +1127 -0
  144. audioinstruments/_rack/modules/pin_matrix3.py +258 -0
  145. audioinstruments/_rack/modules/poly106/__init__.py +34 -0
  146. audioinstruments/_rack/modules/poly106/lfo.py +113 -0
  147. audioinstruments/_rack/modules/poly106/output.py +176 -0
  148. audioinstruments/_rack/modules/poly106/voice.py +515 -0
  149. audioinstruments/_rack/modules/poly5/__init__.py +32 -0
  150. audioinstruments/_rack/modules/poly5/lfo.py +147 -0
  151. audioinstruments/_rack/modules/poly5/voice.py +928 -0
  152. audioinstruments/_rack/modules/poly6/__init__.py +10 -0
  153. audioinstruments/_rack/modules/poly6/lfo.py +137 -0
  154. audioinstruments/_rack/modules/poly6/output.py +624 -0
  155. audioinstruments/_rack/modules/poly6/voice.py +660 -0
  156. audioinstruments/_rack/modules/poly8/__init__.py +32 -0
  157. audioinstruments/_rack/modules/poly8/lfo.py +148 -0
  158. audioinstruments/_rack/modules/poly8/voice.py +1103 -0
  159. audioinstruments/_rack/modules/poly80/__init__.py +35 -0
  160. audioinstruments/_rack/modules/poly80/mod.py +280 -0
  161. audioinstruments/_rack/modules/poly80/output.py +421 -0
  162. audioinstruments/_rack/modules/poly80/voice.py +1254 -0
  163. audioinstruments/_rack/modules/poly_midi_cv.py +687 -0
  164. audioinstruments/_rack/modules/polya6/__init__.py +35 -0
  165. audioinstruments/_rack/modules/polya6/noise.py +120 -0
  166. audioinstruments/_rack/modules/polya6/output.py +234 -0
  167. audioinstruments/_rack/modules/polya6/voice.py +1911 -0
  168. audioinstruments/_rack/modules/polyrhythm_synth.py +216 -0
  169. audioinstruments/_rack/modules/polyxa/__init__.py +34 -0
  170. audioinstruments/_rack/modules/polyxa/lfo.py +83 -0
  171. audioinstruments/_rack/modules/polyxa/output.py +119 -0
  172. audioinstruments/_rack/modules/polyxa/voice.py +883 -0
  173. audioinstruments/_rack/modules/random_sequencer.py +73 -0
  174. audioinstruments/_rack/modules/reed_piano/__init__.py +9 -0
  175. audioinstruments/_rack/modules/reed_piano/output.py +213 -0
  176. audioinstruments/_rack/modules/reed_piano/voice.py +424 -0
  177. audioinstruments/_rack/modules/reed_piano200a/__init__.py +9 -0
  178. audioinstruments/_rack/modules/reed_piano200a/output.py +237 -0
  179. audioinstruments/_rack/modules/reed_piano200a/voice.py +313 -0
  180. audioinstruments/_rack/modules/rhythm606/__init__.py +19 -0
  181. audioinstruments/_rack/modules/rhythm606/bass_drum.py +115 -0
  182. audioinstruments/_rack/modules/rhythm606/cymbal.py +229 -0
  183. audioinstruments/_rack/modules/rhythm606/hats.py +243 -0
  184. audioinstruments/_rack/modules/rhythm606/snare.py +186 -0
  185. audioinstruments/_rack/modules/rhythm606/tom.py +138 -0
  186. audioinstruments/_rack/modules/rhythm78/__init__.py +25 -0
  187. audioinstruments/_rack/modules/rhythm78/cowbell.py +169 -0
  188. audioinstruments/_rack/modules/rhythm78/drum.py +188 -0
  189. audioinstruments/_rack/modules/rhythm78/guiro.py +112 -0
  190. audioinstruments/_rack/modules/rhythm78/hats.py +226 -0
  191. audioinstruments/_rack/modules/rhythm78/metal.py +148 -0
  192. audioinstruments/_rack/modules/rhythm78/output.py +184 -0
  193. audioinstruments/_rack/modules/rhythm78/snare.py +183 -0
  194. audioinstruments/_rack/modules/rhythm78/tambourine.py +98 -0
  195. audioinstruments/_rack/modules/rhythm808/__init__.py +4 -0
  196. audioinstruments/_rack/modules/rhythm808/bass_drum.py +115 -0
  197. audioinstruments/_rack/modules/rhythm808/clap.py +81 -0
  198. audioinstruments/_rack/modules/rhythm808/claves.py +99 -0
  199. audioinstruments/_rack/modules/rhythm808/conga.py +133 -0
  200. audioinstruments/_rack/modules/rhythm808/cowbell.py +83 -0
  201. audioinstruments/_rack/modules/rhythm808/cymbal.py +145 -0
  202. audioinstruments/_rack/modules/rhythm808/hats.py +216 -0
  203. audioinstruments/_rack/modules/rhythm808/maracas.py +81 -0
  204. audioinstruments/_rack/modules/rhythm808/output.py +101 -0
  205. audioinstruments/_rack/modules/rhythm808/rim_shot.py +119 -0
  206. audioinstruments/_rack/modules/rhythm808/snare.py +159 -0
  207. audioinstruments/_rack/modules/rhythm808/tom.py +139 -0
  208. audioinstruments/_rack/modules/rhythm909/__init__.py +24 -0
  209. audioinstruments/_rack/modules/rhythm909/bass_drum.py +129 -0
  210. audioinstruments/_rack/modules/rhythm909/clap.py +96 -0
  211. audioinstruments/_rack/modules/rhythm909/cymbal.py +369 -0
  212. audioinstruments/_rack/modules/rhythm909/hats.py +264 -0
  213. audioinstruments/_rack/modules/rhythm909/rim_shot.py +181 -0
  214. audioinstruments/_rack/modules/rhythm909/snare.py +266 -0
  215. audioinstruments/_rack/modules/rhythm909/tom.py +159 -0
  216. audioinstruments/_rack/modules/rotary_speaker.py +95 -0
  217. audioinstruments/_rack/modules/semi32.py +181 -0
  218. audioinstruments/_rack/modules/state_variable_mono.py +775 -0
  219. audioinstruments/_rack/modules/string_ensemble/__init__.py +16 -0
  220. audioinstruments/_rack/modules/string_ensemble/bass.py +314 -0
  221. audioinstruments/_rack/modules/string_ensemble/envelope.py +126 -0
  222. audioinstruments/_rack/modules/string_ensemble/output.py +280 -0
  223. audioinstruments/_rack/modules/string_ensemble/voice.py +513 -0
  224. audioinstruments/_rack/modules/tonewheel3/__init__.py +18 -0
  225. audioinstruments/_rack/modules/tonewheel3/expression.py +83 -0
  226. audioinstruments/_rack/modules/tonewheel3/percussion.py +86 -0
  227. audioinstruments/_rack/modules/tonewheel3/rotary.py +14 -0
  228. audioinstruments/_rack/modules/tonewheel3/vibrato.py +101 -0
  229. audioinstruments/_rack/modules/tonewheel3/voice.py +289 -0
  230. audioinstruments/_rack/modules/tremolo.py +58 -0
  231. audioinstruments/_rack/modules/vocoder330/__init__.py +18 -0
  232. audioinstruments/_rack/modules/vocoder330/bank.py +399 -0
  233. audioinstruments/_rack/modules/vocoder330/filters.py +57 -0
  234. audioinstruments/_rack/modules/vocoder330/keys.py +247 -0
  235. audioinstruments/_rack/modules/vocoder330/mic.py +322 -0
  236. audioinstruments/_rack/modules/vocoder330/output.py +574 -0
  237. audioinstruments/_rack/modules/vocoder330/voice.py +470 -0
  238. audioinstruments/_rack/modules/voice_mix.py +488 -0
  239. audioinstruments/_rack/modules/west_coast0.py +140 -0
  240. audioinstruments/_rack/modules/west_coast_synth.py +587 -0
  241. audioinstruments/_rack/sequencer.py +606 -0
  242. audioinstruments/_rack/sequencer.pyi +210 -0
  243. audioinstruments/_rack/soundfont.py +1404 -0
  244. audioinstruments/_rack/soundfont.pyi +281 -0
  245. audioinstruments/_rack/soundfont_drums.py +169 -0
  246. audioinstruments/_rack/soundfont_drums.pyi +47 -0
  247. audioinstruments/acid303.py +57 -0
  248. audioinstruments/acid303.pyi +23 -0
  249. audioinstruments/arpeggiator.py +6 -0
  250. audioinstruments/arpeggiator.pyi +6 -0
  251. audioinstruments/bass_pedals.py +59 -0
  252. audioinstruments/bass_pedals.pyi +23 -0
  253. audioinstruments/catalog.json +1178 -0
  254. audioinstruments/clavichord.py +51 -0
  255. audioinstruments/clavichord.pyi +23 -0
  256. audioinstruments/combo_organ.py +49 -0
  257. audioinstruments/combo_organ.pyi +23 -0
  258. audioinstruments/compact_organ.py +49 -0
  259. audioinstruments/compact_organ.pyi +23 -0
  260. audioinstruments/duo20.py +61 -0
  261. audioinstruments/duo20.pyi +23 -0
  262. audioinstruments/duosynth.py +59 -0
  263. audioinstruments/duosynth.pyi +23 -0
  264. audioinstruments/electric_grand70.py +49 -0
  265. audioinstruments/electric_grand70.pyi +23 -0
  266. audioinstruments/electric_piano.py +51 -0
  267. audioinstruments/electric_piano.pyi +23 -0
  268. audioinstruments/electronic_drums5.py +66 -0
  269. audioinstruments/electronic_drums5.pyi +24 -0
  270. audioinstruments/hybrid_mono.py +59 -0
  271. audioinstruments/hybrid_mono.pyi +23 -0
  272. audioinstruments/midi_cc.py +6 -0
  273. audioinstruments/midi_cc.pyi +6 -0
  274. audioinstruments/midi_dispatch.py +6 -0
  275. audioinstruments/midi_dispatch.pyi +6 -0
  276. audioinstruments/mono101.py +59 -0
  277. audioinstruments/mono101.pyi +23 -0
  278. audioinstruments/mono_one.py +55 -0
  279. audioinstruments/mono_one.pyi +23 -0
  280. audioinstruments/mono_synth.py +59 -0
  281. audioinstruments/mono_synth.pyi +23 -0
  282. audioinstruments/panel.py +238 -0
  283. audioinstruments/panel.pyi +75 -0
  284. audioinstruments/panel_view.py +756 -0
  285. audioinstruments/panel_view.pyi +85 -0
  286. audioinstruments/patch2600.py +71 -0
  287. audioinstruments/patch2600.pyi +23 -0
  288. audioinstruments/poly106.py +59 -0
  289. audioinstruments/poly106.pyi +23 -0
  290. audioinstruments/poly5.py +59 -0
  291. audioinstruments/poly5.pyi +23 -0
  292. audioinstruments/poly6.py +59 -0
  293. audioinstruments/poly6.pyi +23 -0
  294. audioinstruments/poly8.py +59 -0
  295. audioinstruments/poly8.pyi +23 -0
  296. audioinstruments/poly80.py +59 -0
  297. audioinstruments/poly80.pyi +23 -0
  298. audioinstruments/polya6.py +59 -0
  299. audioinstruments/polya6.pyi +23 -0
  300. audioinstruments/polyxa.py +59 -0
  301. audioinstruments/polyxa.pyi +23 -0
  302. audioinstruments/py.typed +0 -0
  303. audioinstruments/reed_piano.py +45 -0
  304. audioinstruments/reed_piano.pyi +23 -0
  305. audioinstruments/reed_piano200a.py +49 -0
  306. audioinstruments/reed_piano200a.pyi +23 -0
  307. audioinstruments/rhythm606.py +64 -0
  308. audioinstruments/rhythm606.pyi +24 -0
  309. audioinstruments/rhythm78.py +69 -0
  310. audioinstruments/rhythm78.pyi +24 -0
  311. audioinstruments/rhythm808.py +76 -0
  312. audioinstruments/rhythm808.pyi +24 -0
  313. audioinstruments/rhythm909.py +70 -0
  314. audioinstruments/rhythm909.pyi +24 -0
  315. audioinstruments/sequencer.py +6 -0
  316. audioinstruments/sequencer.pyi +6 -0
  317. audioinstruments/soundfont.py +38 -0
  318. audioinstruments/soundfont.pyi +24 -0
  319. audioinstruments/soundfont_drums.py +88 -0
  320. audioinstruments/soundfont_drums.pyi +25 -0
  321. audioinstruments/state_variable_mono.py +55 -0
  322. audioinstruments/state_variable_mono.pyi +23 -0
  323. audioinstruments/string_ensemble.py +51 -0
  324. audioinstruments/string_ensemble.pyi +23 -0
  325. audioinstruments/tonewheel3.py +53 -0
  326. audioinstruments/tonewheel3.pyi +23 -0
  327. audioinstruments/vocoder330.py +59 -0
  328. audioinstruments/vocoder330.pyi +23 -0
  329. audioinstruments/west_coast_synth.py +61 -0
  330. audioinstruments/west_coast_synth.pyi +23 -0
  331. omnipython_audioinstruments-0.5.2.dev7.dist-info/METADATA +71 -0
  332. omnipython_audioinstruments-0.5.2.dev7.dist-info/RECORD +335 -0
  333. omnipython_audioinstruments-0.5.2.dev7.dist-info/licenses/LICENSE +21 -0
  334. omnipython_audioinstruments-0.5.2.dev7.dist-info/top_level.txt +1 -0
  335. omnipython_audioinstruments-0.0.1.dist-info/METADATA +0 -19
  336. omnipython_audioinstruments-0.0.1.dist-info/RECORD +0 -4
  337. omnipython_audioinstruments-0.0.1.dist-info/top_level.txt +0 -1
  338. {omnipython_audioinstruments-0.0.1.dist-info → omnipython_audioinstruments-0.5.2.dev7.dist-info}/WHEEL +0 -0
@@ -0,0 +1,79 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+ """Synthesizers, organs and electric pianos, each one a patch on a virtual rack.
5
+
6
+ Each instrument is a module, ``audioinstruments.<name>``, exposing::
7
+
8
+ MACRO_LABELS tuple of names, one per macro parameter
9
+ MACRO_MODES {index: "UNIPOLAR" | "BIPOLAR" | "TOGGLE"}
10
+ PATCHES {index: (name, (macro values, 0-127))}; patch 0 is the sound
11
+ a freshly created instrument makes
12
+ NOTE_MAP drum machines only: ((midi_note, label), ...)
13
+ PAD_MAP drum machines only: ((key, voice), ...) for pad keys 36-51
14
+ create(sample_rate, channel_count=2, transport=None, **options)
15
+
16
+ import audioinstruments
17
+ inst = audioinstruments.create("poly106", 48000)
18
+ inst.note_on(60)
19
+ inst.set_macro(0, 96) # vcf_freq, MIDI scale
20
+ audio_out.play(inst.output)
21
+
22
+ On MicroPython call ``inst.fill()`` every 10 to 20 ms while it plays: that is
23
+ when notes and knobs reach the sound. Where the patch compiles to an
24
+ ``audiograph`` graph, ``inst.output`` is the graph and renders as it is
25
+ pulled; otherwise it is a ring that ``fill()`` keeps topped up. The options
26
+ are those of ``audioinstruments._rack.adapter.Instrument`` (``voices``, ``block_size``,
27
+ ``output``, ``engine`` and the rest), or of ``audioinstruments._rack.soundfont.create`` for the
28
+ SAMPLERS.
29
+ """
30
+
31
+ import sys
32
+
33
+ from ._names import ALL, DRUM_MACHINES, MELODIC, SAMPLERS
34
+
35
+ __all__ = ("ALL", "DRUM_MACHINES", "MELODIC", "SAMPLERS", "create", "load")
36
+
37
+
38
+ def load(name):
39
+ """Import and return the instrument module ``name``."""
40
+ full = __name__ + "." + name
41
+ __import__(full)
42
+ return sys.modules[full]
43
+
44
+
45
+ def create(name, sample_rate, channel_count=2, transport=None, **options):
46
+ """Load instrument ``name`` and return a live instance of it."""
47
+ return load(name).create(
48
+ sample_rate, channel_count=channel_count, transport=transport, **options
49
+ )
50
+
51
+
52
+ def _build(name, sample_rate, channel_count, transport, options):
53
+ if name in SAMPLERS:
54
+ # A SoundFont plays on audiosampler alone, so it skips the adapter and
55
+ # the rack's array code: a board without ulab can still play a bank.
56
+ options.pop("engine", None)
57
+ module = __import__("audioinstruments._rack." + name, None, None, ("create",))
58
+ return module.create(
59
+ sample_rate, channel_count=channel_count, transport=transport, **options
60
+ )
61
+ import audioinstruments._rack.adapter as adapter
62
+
63
+ options["voice"] = name
64
+ if name not in adapter.SAMPLERS and "output" not in options and adapter._pull_is_native_only():
65
+ # The graph renders as it is pulled, so a host that pulls and calls
66
+ # fill() now and then keeps time. A patch that does not compile, or
67
+ # an audiograph older than the change queue (before audiodsp 0.6.11),
68
+ # takes the ring.
69
+ try:
70
+ return adapter.create(
71
+ sample_rate,
72
+ channel_count=channel_count,
73
+ transport=transport,
74
+ output="graph",
75
+ **options,
76
+ )
77
+ except (ImportError, ValueError, RuntimeError):
78
+ pass
79
+ return adapter.create(sample_rate, channel_count=channel_count, transport=transport, **options)
@@ -0,0 +1,39 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+ """Synthesizers, organs and electric pianos, each one a patch on a virtual rack.
5
+
6
+ Each instrument is a module, ``audioinstruments.<name>``, exposing its macro labels and
7
+ modes, its patches and a ``create`` function. ``audioinstruments.create(name, sample_rate)``
8
+ loads one and returns it live.
9
+ """
10
+
11
+ from types import ModuleType
12
+
13
+ from ._names import (
14
+ ALL as ALL,
15
+ )
16
+ from ._names import (
17
+ DRUM_MACHINES as DRUM_MACHINES,
18
+ )
19
+ from ._names import (
20
+ MELODIC as MELODIC,
21
+ )
22
+ from ._names import (
23
+ SAMPLERS as SAMPLERS,
24
+ )
25
+ from ._rack.adapter import _AnyInstrument, _Transport
26
+
27
+ __all__ = ("ALL", "DRUM_MACHINES", "MELODIC", "SAMPLERS", "create", "load")
28
+
29
+ def load(name: str) -> ModuleType:
30
+ """Import and return the instrument module ``name``."""
31
+
32
+ def create(
33
+ name: str,
34
+ sample_rate: int,
35
+ channel_count: int = 2,
36
+ transport: _Transport | None = None,
37
+ **options: object,
38
+ ) -> _AnyInstrument:
39
+ """Load instrument ``name`` and return a live instance of it."""
@@ -0,0 +1,89 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+ # Generated by tools/make_faces.py from audioinstruments._rack.adapter: edit that, then run it again.
5
+ """Which instruments the package has, written out so nothing lists a directory."""
6
+
7
+ #: Every instrument.
8
+ ALL = (
9
+ "acid303",
10
+ "bass_pedals",
11
+ "clavichord",
12
+ "combo_organ",
13
+ "compact_organ",
14
+ "duo20",
15
+ "duosynth",
16
+ "electric_grand70",
17
+ "electric_piano",
18
+ "electronic_drums5",
19
+ "hybrid_mono",
20
+ "mono101",
21
+ "mono_one",
22
+ "mono_synth",
23
+ "patch2600",
24
+ "poly106",
25
+ "poly5",
26
+ "poly6",
27
+ "poly8",
28
+ "poly80",
29
+ "polya6",
30
+ "polyxa",
31
+ "reed_piano",
32
+ "reed_piano200a",
33
+ "rhythm606",
34
+ "rhythm78",
35
+ "rhythm808",
36
+ "rhythm909",
37
+ "state_variable_mono",
38
+ "string_ensemble",
39
+ "tonewheel3",
40
+ "vocoder330",
41
+ "west_coast_synth",
42
+ )
43
+
44
+ #: The ones with a ``NOTE_MAP``: a drum machine.
45
+ DRUM_MACHINES = (
46
+ "electronic_drums5",
47
+ "rhythm606",
48
+ "rhythm78",
49
+ "rhythm808",
50
+ "rhythm909",
51
+ )
52
+
53
+ #: The rest.
54
+ MELODIC = (
55
+ "acid303",
56
+ "bass_pedals",
57
+ "clavichord",
58
+ "combo_organ",
59
+ "compact_organ",
60
+ "duo20",
61
+ "duosynth",
62
+ "electric_grand70",
63
+ "electric_piano",
64
+ "hybrid_mono",
65
+ "mono101",
66
+ "mono_one",
67
+ "mono_synth",
68
+ "patch2600",
69
+ "poly106",
70
+ "poly5",
71
+ "poly6",
72
+ "poly8",
73
+ "poly80",
74
+ "polya6",
75
+ "polyxa",
76
+ "reed_piano",
77
+ "reed_piano200a",
78
+ "state_variable_mono",
79
+ "string_ensemble",
80
+ "tonewheel3",
81
+ "vocoder330",
82
+ "west_coast_synth",
83
+ )
84
+
85
+ #: Instruments that play a SoundFont you supply, and take its ``bank=``.
86
+ SAMPLERS = (
87
+ "soundfont",
88
+ "soundfont_drums",
89
+ )
@@ -0,0 +1,7 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+ ALL: tuple[str, ...]
5
+ DRUM_MACHINES: tuple[str, ...]
6
+ MELODIC: tuple[str, ...]
7
+ SAMPLERS: tuple[str, ...]
@@ -0,0 +1,144 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+ """The rack every instrument is built on: a virtual Eurorack modular synthesizer in portable Python."""
5
+
6
+ __version__ = "0.1.0"
7
+
8
+ from . import modules
9
+
10
+ # The rack's core names load on first use too, so a SoundFont player that
11
+ # never builds a rack does not import core.signal (and with it ulab or numpy).
12
+ _CORE = {
13
+ "Cable": "core.cable",
14
+ "InputJack": "core.jack",
15
+ "Jack": "core.jack",
16
+ "OutputJack": "core.jack",
17
+ "SignalType": "core.jack",
18
+ "Module": "core.module",
19
+ "Voice": "core.poly",
20
+ "VoiceAllocator": "core.poly",
21
+ "VoicePool": "core.poly",
22
+ "PATCH_FORMAT_VERSION": "core.rack",
23
+ "Rack": "core.rack",
24
+ "load_rack": "core.rack",
25
+ "BASE_FREQ_C4": "core.signal",
26
+ "DEFAULT_BLOCK_SIZE": "core.signal",
27
+ "DEFAULT_SAMPLE_RATE": "core.signal",
28
+ "midi_note_to_pitch": "core.signal",
29
+ "pitch_to_frequency": "core.signal",
30
+ }
31
+
32
+ # The synths load on first use: ``audioinstruments._rack.PinMatrix3`` imports ``pin_matrix3`` and
33
+ # nothing else. ``audioinstruments._rack.modules`` holds the table.
34
+
35
+
36
+ def __getattr__(name):
37
+ path = _CORE.get(name)
38
+ if path is not None:
39
+ value = getattr(__import__("audioinstruments._rack." + path, None, None, (name,)), name)
40
+ elif name in modules._LAZY:
41
+ value = getattr(modules, name)
42
+ else:
43
+ raise AttributeError("module 'audioinstruments._rack' has no attribute '%s'" % (name,))
44
+ globals()[name] = value
45
+ return value
46
+
47
+
48
+ def __dir__():
49
+ return sorted(set(globals()) | set(__all__))
50
+
51
+
52
+ __all__ = [
53
+ "Acid303",
54
+ "BASE_FREQ_C4",
55
+ "BassPedalsVoice",
56
+ "Cable",
57
+ "CompactOrganOutput",
58
+ "CompactOrganVibrato",
59
+ "CompactOrganVoice",
60
+ "DEFAULT_BLOCK_SIZE",
61
+ "DEFAULT_SAMPLE_RATE",
62
+ "DrumSynth",
63
+ "Duo20",
64
+ "DuoSynthLFO",
65
+ "DuoSynthOutput",
66
+ "DuoSynthVoice",
67
+ "ElectricPianoOutput",
68
+ "ElectricPianoVoice",
69
+ "FunctionGenerator",
70
+ "GranularProcessor",
71
+ "HybridMono",
72
+ "InputJack",
73
+ "Jack",
74
+ "MacroOscillator",
75
+ "MidiCVModule",
76
+ "ModalResonator",
77
+ "Modular100EnvLFO",
78
+ "Modular100Utility",
79
+ "Modular100VCA",
80
+ "Modular100VCF",
81
+ "Modular100VCO",
82
+ "Modular55Envelope",
83
+ "Modular55HighPass",
84
+ "Modular55LowPass",
85
+ "Modular55VCA",
86
+ "Modular55VCO",
87
+ "Module",
88
+ "Mono101LFO",
89
+ "Mono101Voice",
90
+ "MonoOne",
91
+ "MonoSynthVoice",
92
+ "OutputJack",
93
+ "PATCH_FORMAT_VERSION",
94
+ "ParaphonicSynth",
95
+ "Patch2600",
96
+ "PinMatrix3",
97
+ "Poly106LFO",
98
+ "Poly106Output",
99
+ "Poly106Voice",
100
+ "Poly5LFO",
101
+ "Poly5Voice",
102
+ "Poly6LFO",
103
+ "Poly6Output",
104
+ "Poly6Voice",
105
+ "Poly8LFO",
106
+ "Poly8Voice",
107
+ "Poly80Mod",
108
+ "Poly80Output",
109
+ "Poly80Voice",
110
+ "PolyA6Noise",
111
+ "PolyA6Output",
112
+ "PolyA6Voice",
113
+ "PolyMidiCV",
114
+ "PolyXaLFO",
115
+ "PolyXaOutput",
116
+ "PolyXaVoice",
117
+ "PolyrhythmSynth",
118
+ "Rack",
119
+ "RandomSequencer",
120
+ "ReedPianoOutput",
121
+ "ReedPianoVoice",
122
+ "Semi32",
123
+ "SignalType",
124
+ "StateVariableMono",
125
+ "StringEnsembleBass",
126
+ "StringEnsembleEnvelope",
127
+ "StringEnsembleOutput",
128
+ "StringEnsembleVoice",
129
+ "Tremolo",
130
+ "Vocoder330Bank",
131
+ "Vocoder330Keys",
132
+ "Vocoder330Mic",
133
+ "Vocoder330Output",
134
+ "Vocoder330Voice",
135
+ "Voice",
136
+ "VoiceAllocator",
137
+ "VoiceMix",
138
+ "VoicePool",
139
+ "WestCoast0",
140
+ "WestCoastSynth",
141
+ "load_rack",
142
+ "midi_note_to_pitch",
143
+ "pitch_to_frequency",
144
+ ]
@@ -0,0 +1,13 @@
1
+ # SPDX-FileCopyrightText: 2026 Brad Barnett
2
+ #
3
+ # SPDX-License-Identifier: MIT
4
+ """The rack every instrument is built on: a virtual Eurorack modular synthesizer in portable Python.
5
+
6
+ Only the modules an instrument's own API reaches (`adapter`, `soundfont`, the arpeggiator,
7
+ the sequencer and the MIDI dispatcher) are typed. The rack's own modules and cables load on
8
+ first use and are not described here.
9
+ """
10
+
11
+ from typing import Any
12
+
13
+ def __getattr__(name: str) -> Any: ...