You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jupylet with Claude. Claude Code can now install Jupylet for you and open notebooks right next to the chat. Then it reads, writes and runs cells with you. See CLAUDE_SETUP.md. It works on macOS with an Apple chip and on Windows 11.
Support for VR in Windows 11! Fly the spaceship around your room straight from a JupyterLab notebook. Check out examples/12-spaceship-3d.ipynb for an example. VR support is experimental.
A replica of the historical Atari 1978 Breakout, created entirely by AI. Check out examples/31-breakout.ipynb.
A replica of the Roland TB-303 Bass Line synthesizer, modeled from its schematic and other sources. It has a front panel of knobs that code can sweep in time with the music. Check out the demo, examples/19-synthing.ipynb.
A new example notebook, examples/18-filters.ipynb, builds the classic Moog ladder filter from scratch, one small step at a time.
Synths with a built-in step sequencer, such as TB303, play text patterns with sonic_live_loop(). They also sweep their knobs in time with the patterns, with sweep(), sweep_now() and sweep_next(). The sweep shapes include waves ('sine', 'triangle', 'saw'), and repeat repeats a sweep. Turning a knob by hand, on the panel or in code, stops its sweeps.
play() now also plays sounds you compute yourself, as arrays of samples, and audio files, with no need to set up an instrument first. It refuses a sound that peaks past a safety limit, 3 by default, so that a filter that runs away, for example, can't blast out at full volume. See set_safety_limit().
Upgraded to Pillow 13.
Breaking changes
The default tempo is now 120 beats per minute, the common default of music software, instead of 240. Music that relied on the old default plays at half speed. Call set_bpm(240) to restore it.
The filters module was rewritten. ResonantFilter and PeakFilter are gone. ButterFilter now takes mode, order, bandwidth and resonance (0 to 1) instead of btype and db. LadderFilter is new.
TB303 is now the TB-303 replica, in jupylet.audio.synth.tb303_bassline. Its knobs go from 0 to 1, as on the real instrument. Code that set the old knobs, such as cutoff=48 or resonance=8, needs updating. The ready-made tb303 instance is gone, so create one with tb303 = TB303(). jupylet.audio.synth is now a package, and from jupylet.audio.synth import ... still works.
plot(), also available under its old name get_plot(), and get_power_spectrum_plot() now return a compact JPEG image for Jupyter to display, instead of a PIL image. get_power_spectrum_plot() also takes several sounds at once, with labels for them, so you must now pass a sample rate by name, as sampling_frequency=....