cycdp 0.1.1__cp313-cp313-macosx_10_13_x86_64.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.
cycdp/__init__.py ADDED
@@ -0,0 +1,390 @@
1
+ """
2
+ cycdp - Python bindings for CDP audio processing library.
3
+
4
+ Example usage:
5
+ >>> import numpy as np
6
+ >>> import cycdp
7
+ >>> samples = np.array([0.5, 0.3, -0.2], dtype=np.float32)
8
+ >>> cycdp.gain(samples, gain_factor=2.0)
9
+ array([1. , 0.6, -0.4], dtype=float32)
10
+ >>> cycdp.normalize(samples, target=1.0)
11
+ array([1. , 0.6, -0.4], dtype=float32)
12
+ """
13
+
14
+ from cycdp._core import (
15
+ # Version and utilities
16
+ version,
17
+ gain_to_db,
18
+ db_to_gain,
19
+ # Constants
20
+ FLAG_NONE,
21
+ FLAG_CLIP,
22
+ # Exception
23
+ CDPError,
24
+ # Classes
25
+ Context,
26
+ Buffer,
27
+ # Low-level functions (work with Buffer objects)
28
+ apply_gain,
29
+ apply_gain_db,
30
+ apply_normalize,
31
+ apply_normalize_db,
32
+ apply_phase_invert,
33
+ get_peak,
34
+ # High-level functions (accept any float32 buffer via memoryview)
35
+ gain,
36
+ gain_db,
37
+ normalize,
38
+ normalize_db,
39
+ peak,
40
+ # File I/O
41
+ read_file,
42
+ write_file,
43
+ # Spatial/panning
44
+ pan,
45
+ pan_envelope,
46
+ mirror,
47
+ narrow,
48
+ # Mixing
49
+ mix,
50
+ mix2,
51
+ # Buffer utilities
52
+ reverse,
53
+ fade_in,
54
+ fade_out,
55
+ concat,
56
+ # Channel operations
57
+ to_mono,
58
+ to_stereo,
59
+ extract_channel,
60
+ merge_channels,
61
+ split_channels,
62
+ interleave,
63
+ # Spectral processing
64
+ time_stretch,
65
+ spectral_blur,
66
+ modify_speed,
67
+ pitch_shift,
68
+ spectral_shift,
69
+ spectral_stretch,
70
+ filter_lowpass,
71
+ filter_highpass,
72
+ filter_bandpass,
73
+ filter_notch,
74
+ # Dynamics/effects
75
+ gate,
76
+ bitcrush,
77
+ ring_mod,
78
+ delay,
79
+ chorus,
80
+ flanger,
81
+ # EQ and dynamics
82
+ eq_parametric,
83
+ envelope_follow,
84
+ envelope_apply,
85
+ compressor,
86
+ limiter,
87
+ # Envelope operations
88
+ dovetail,
89
+ tremolo,
90
+ attack,
91
+ # Distortion operations
92
+ distort_overload,
93
+ distort_reverse,
94
+ distort_fractal,
95
+ distort_shuffle,
96
+ distort_cut,
97
+ distort_mark,
98
+ distort_repeat,
99
+ distort_shift,
100
+ distort_warp,
101
+ # Reverb
102
+ reverb,
103
+ # Granular operations
104
+ brassage,
105
+ freeze,
106
+ grain_cloud,
107
+ grain_extend,
108
+ texture_simple,
109
+ texture_multi,
110
+ # Extended granular operations
111
+ grain_reorder,
112
+ grain_rerhythm,
113
+ grain_reverse,
114
+ grain_timewarp,
115
+ grain_repitch,
116
+ grain_position,
117
+ grain_omit,
118
+ grain_duplicate,
119
+ # Morphing/Cross-synthesis
120
+ morph,
121
+ morph_glide,
122
+ cross_synth,
123
+ # Native morph (original CDP algorithms)
124
+ morph_glide_native,
125
+ morph_bridge_native,
126
+ morph_native,
127
+ # Analysis
128
+ pitch,
129
+ formants,
130
+ get_partials,
131
+ # Spectral operations
132
+ spectral_focus,
133
+ spectral_hilite,
134
+ spectral_fold,
135
+ spectral_clean,
136
+ # Experimental operations
137
+ strange,
138
+ brownian,
139
+ crystal,
140
+ fractal,
141
+ quirk,
142
+ chirikov,
143
+ cantor,
144
+ cascade,
145
+ fracture,
146
+ tesselate,
147
+ # Playback/Time manipulation
148
+ zigzag,
149
+ iterate,
150
+ stutter,
151
+ bounce,
152
+ drunk,
153
+ loop,
154
+ retime,
155
+ scramble,
156
+ # Scramble mode constants
157
+ SCRAMBLE_SHUFFLE,
158
+ SCRAMBLE_REVERSE,
159
+ SCRAMBLE_SIZE_UP,
160
+ SCRAMBLE_SIZE_DOWN,
161
+ SCRAMBLE_LEVEL_UP,
162
+ SCRAMBLE_LEVEL_DOWN,
163
+ splinter,
164
+ spin,
165
+ rotor,
166
+ # Synthesis
167
+ synth_wave,
168
+ synth_noise,
169
+ synth_click,
170
+ synth_chord,
171
+ # Waveform constants
172
+ WAVE_SINE,
173
+ WAVE_SQUARE,
174
+ WAVE_SAW,
175
+ WAVE_RAMP,
176
+ WAVE_TRIANGLE,
177
+ # Pitch-synchronous operations (PSOW)
178
+ psow_stretch,
179
+ psow_grab,
180
+ psow_dupl,
181
+ psow_interp,
182
+ # FOF extraction and synthesis (FOFEX)
183
+ fofex_extract,
184
+ fofex_extract_all,
185
+ fofex_synth,
186
+ fofex_repitch,
187
+ # Spatial effects
188
+ flutter,
189
+ # Zigzag/Hover effect
190
+ hover,
191
+ # Silence constriction
192
+ constrict,
193
+ # Phase manipulation
194
+ phase_invert,
195
+ phase_stereo,
196
+ # Granular texture
197
+ wrappage,
198
+ )
199
+
200
+ __all__ = [
201
+ # Version
202
+ "version",
203
+ # Utilities
204
+ "gain_to_db",
205
+ "db_to_gain",
206
+ # Constants
207
+ "FLAG_NONE",
208
+ "FLAG_CLIP",
209
+ # Exception
210
+ "CDPError",
211
+ # Classes
212
+ "Context",
213
+ "Buffer",
214
+ # Low-level functions
215
+ "apply_gain",
216
+ "apply_gain_db",
217
+ "apply_normalize",
218
+ "apply_normalize_db",
219
+ "apply_phase_invert",
220
+ "get_peak",
221
+ # High-level functions
222
+ "gain",
223
+ "gain_db",
224
+ "normalize",
225
+ "normalize_db",
226
+ "phase_invert",
227
+ "peak",
228
+ # File I/O
229
+ "read_file",
230
+ "write_file",
231
+ # Spatial/panning
232
+ "pan",
233
+ "pan_envelope",
234
+ "mirror",
235
+ "narrow",
236
+ # Mixing
237
+ "mix",
238
+ "mix2",
239
+ # Buffer utilities
240
+ "reverse",
241
+ "fade_in",
242
+ "fade_out",
243
+ "concat",
244
+ # Channel operations
245
+ "to_mono",
246
+ "to_stereo",
247
+ "extract_channel",
248
+ "merge_channels",
249
+ "split_channels",
250
+ "interleave",
251
+ # Spectral processing
252
+ "time_stretch",
253
+ "spectral_blur",
254
+ "modify_speed",
255
+ "pitch_shift",
256
+ "spectral_shift",
257
+ "spectral_stretch",
258
+ "filter_lowpass",
259
+ "filter_highpass",
260
+ "filter_bandpass",
261
+ "filter_notch",
262
+ # Dynamics/effects
263
+ "gate",
264
+ "bitcrush",
265
+ "ring_mod",
266
+ "delay",
267
+ "chorus",
268
+ "flanger",
269
+ # EQ and dynamics
270
+ "eq_parametric",
271
+ "envelope_follow",
272
+ "envelope_apply",
273
+ "compressor",
274
+ "limiter",
275
+ # Envelope operations
276
+ "dovetail",
277
+ "tremolo",
278
+ "attack",
279
+ # Distortion operations
280
+ "distort_overload",
281
+ "distort_reverse",
282
+ "distort_fractal",
283
+ "distort_shuffle",
284
+ "distort_cut",
285
+ "distort_mark",
286
+ "distort_repeat",
287
+ "distort_shift",
288
+ "distort_warp",
289
+ # Reverb
290
+ "reverb",
291
+ # Granular operations
292
+ "brassage",
293
+ "freeze",
294
+ "grain_cloud",
295
+ "grain_extend",
296
+ "texture_simple",
297
+ "texture_multi",
298
+ # Extended granular operations
299
+ "grain_reorder",
300
+ "grain_rerhythm",
301
+ "grain_reverse",
302
+ "grain_timewarp",
303
+ "grain_repitch",
304
+ "grain_position",
305
+ "grain_omit",
306
+ "grain_duplicate",
307
+ # Morphing/Cross-synthesis
308
+ "morph",
309
+ "morph_glide",
310
+ "cross_synth",
311
+ # Native morph (original CDP algorithms)
312
+ "morph_glide_native",
313
+ "morph_bridge_native",
314
+ "morph_native",
315
+ # Analysis
316
+ "pitch",
317
+ "formants",
318
+ "get_partials",
319
+ # Spectral operations
320
+ "spectral_focus",
321
+ "spectral_hilite",
322
+ "spectral_fold",
323
+ "spectral_clean",
324
+ # Experimental operations
325
+ "strange",
326
+ "brownian",
327
+ "crystal",
328
+ "fractal",
329
+ "quirk",
330
+ "chirikov",
331
+ "cantor",
332
+ "cascade",
333
+ "fracture",
334
+ "tesselate",
335
+ # Playback/Time manipulation
336
+ "zigzag",
337
+ "iterate",
338
+ "stutter",
339
+ "bounce",
340
+ "drunk",
341
+ "loop",
342
+ "retime",
343
+ "scramble",
344
+ # Scramble mode constants
345
+ "SCRAMBLE_SHUFFLE",
346
+ "SCRAMBLE_REVERSE",
347
+ "SCRAMBLE_SIZE_UP",
348
+ "SCRAMBLE_SIZE_DOWN",
349
+ "SCRAMBLE_LEVEL_UP",
350
+ "SCRAMBLE_LEVEL_DOWN",
351
+ # Waveset fragmentation
352
+ "splinter",
353
+ # Spatial effects
354
+ "spin",
355
+ "rotor",
356
+ # Synthesis
357
+ "synth_wave",
358
+ "synth_noise",
359
+ "synth_click",
360
+ "synth_chord",
361
+ # Waveform constants
362
+ "WAVE_SINE",
363
+ "WAVE_SQUARE",
364
+ "WAVE_SAW",
365
+ "WAVE_RAMP",
366
+ "WAVE_TRIANGLE",
367
+ # Pitch-synchronous operations (PSOW)
368
+ "psow_stretch",
369
+ "psow_grab",
370
+ "psow_dupl",
371
+ "psow_interp",
372
+ # FOF extraction and synthesis (FOFEX)
373
+ "fofex_extract",
374
+ "fofex_extract_all",
375
+ "fofex_synth",
376
+ "fofex_repitch",
377
+ # Spatial effects
378
+ "flutter",
379
+ # Zigzag/Hover effect
380
+ "hover",
381
+ # Silence constriction
382
+ "constrict",
383
+ # Phase manipulation
384
+ "phase_invert",
385
+ "phase_stereo",
386
+ # Granular texture
387
+ "wrappage",
388
+ ]
389
+
390
+ __version__ = "0.1.1"
Binary file