diff -r 96fae59db5c3 -r 566338138983 APIs/MicroPython/circuitpython.api --- a/APIs/MicroPython/circuitpython.api Mon May 15 13:38:09 2023 +0200 +++ b/APIs/MicroPython/circuitpython.api Thu Jul 06 11:07:47 2023 +0200 @@ -614,21 +614,31 @@ supervisor.set_next_code_file?4(filename: Optional[str], *, reload_on_success: bool = False, reload_on_error: bool = False, sticky_on_success: bool = False, sticky_on_error: bool = False, sticky_on_reload: bool = False, ) supervisor.set_usb_identification?4(manufacturer: Optional[str] = None, product: Optional[str] = None, vid: int = -1, pid: int = -1, ) supervisor.ticks_ms?4() +synthio.Biquad?1(b0: float, b1: float, b2: float, a1: float, a2: float) +synthio.BlockInput?7 synthio.Envelope?1(*, attack_time: Optional[float] = 0.1, decay_time: Optional[float] = 0.05, release_time: Optional[float] = 0.2, attack_level: Optional[float] = 1.0, sustain_level: Optional[float] = 0.8, ) +synthio.LFO.retrigger?4() +synthio.LFO?1(waveform: ReadableBuffer = None, *, rate: BlockInput = 1.0, scale: BlockInput = 1.0, offset: BlockInput = 0.0, phase_offset: BlockInput = 0.0, once=False, interpolate=True, ) +synthio.LFOOrLFOSequence?7 +synthio.Math?1(operation: MathOperation, a: BlockInput, b: BlockInput = 0.0, c: BlockInput = 1.0, ) synthio.MidiTrack.deinit?4() synthio.MidiTrack?1(buffer: ReadableBuffer, tempo: int, *, sample_rate: int = 11025, waveform: Optional[ReadableBuffer] = None, envelope: Optional[Envelope] = None, ) -synthio.Note?1(*, frequency: float, panning: float = 0.0, waveform: Optional[ReadableBuffer] = None, envelope: Optional[Envelope] = None, tremolo_depth: float = 0.0, tremolo_rate: float = 0.0, bend_depth: float = 0.0, bend_rate: float = 0.0, bend_mode: "BendMode" = BendMode.VIBRATO, ) +synthio.Note?1(*, frequency: float, panning: BlockInput = 0.0, waveform: Optional[ReadableBuffer] = None, envelope: Optional[Envelope] = None, amplitude: BlockInput = 0.0, bend: BlockInput = 0.0, filter: Optional[Biquad] = None, ring_frequency: float = 0.0, ring_bend: float = 0.0, ring_waveform: Optional[ReadableBuffer] = 0.0, ) +synthio.NoteOrNoteSequence?7 synthio.NoteSequence?7 +synthio.Synthesizer.band_pass_filter?4(frequency: float, q_factor: float = 0.7071067811865475) +synthio.Synthesizer.change?4(release: NoteOrNoteSequence = (), press: NoteOrNoteSequence = (), retrigger=LFOOrLFOSequence, ) synthio.Synthesizer.deinit?4() -synthio.Synthesizer.press?4(/, press: NoteSequence = ()) -synthio.Synthesizer.release?4(/, release: NoteSequence = ()) +synthio.Synthesizer.high_pass_filter?4(frequency: float, q_factor: float = 0.7071067811865475) +synthio.Synthesizer.low_pass_filter?4(frequency: float, q_factor: float = 0.7071067811865475) +synthio.Synthesizer.press?4(/, press: NoteOrNoteSequence = ()) +synthio.Synthesizer.release?4(/, release: NoteOrNoteSequence = ()) synthio.Synthesizer.release_all?4() -synthio.Synthesizer.release_all_then_press?4(/, press: NoteSequence) -synthio.Synthesizer.release_then_press?4(release: NoteSequence = (), press: NoteSequence = ()) +synthio.Synthesizer.release_all_then_press?4(/, press: NoteOrNoteSequence) synthio.Synthesizer?1(*, sample_rate: int = 11025, channel_count: int = 1, waveform: Optional[ReadableBuffer] = None, envelope: Optional[Envelope] = None, ) synthio.from_file?4(file: typing.BinaryIO, *, sample_rate: int = 11025, waveform: Optional[ReadableBuffer] = None, envelope: Optional[Envelope] = None, ) synthio.midi_to_hz?4(midi_note: float) -synthio.onevo_to_hz?4(ctrl: float) +synthio.voct_to_hz?4(ctrl: float) terminalio.Terminal.write?4(buf: ReadableBuffer) terminalio.Terminal?1(scroll_area: displayio.TileGrid, font: fontio.BuiltinFont, *, status_bar: Optional[displayio.TileGrid] = None, ) time.localtime?4(secs: int) @@ -709,6 +719,7 @@ ulab.numpy.roll?4(array: ulab.numpy.ndarray, distance: int, *, axis: Optional[int] = None) ulab.numpy.set_printoptions?4(threshold: Optional[int] = None, edgeitems: Optional[int] = None) ulab.numpy.sin?4(a: _ArrayLike) +ulab.numpy.sinc?4(a: _ArrayLike) ulab.numpy.sinh?4(a: _ArrayLike) ulab.numpy.sort?4(array: ulab.numpy.ndarray, *, axis: int = -1) ulab.numpy.sqrt?4(a: _ArrayLike) @@ -780,7 +791,7 @@ wifi.Radio.ping?4(ip: ipaddress.IPv4Address, *, timeout: Optional[float] = 0.5) wifi.Radio.set_ipv4_address?4(*, ipv4: ipaddress.IPv4Address, netmask: ipaddress.IPv4Address, gateway: ipaddress.IPv4Address, ipv4_dns: Optional[ipaddress.IPv4Address], ) wifi.Radio.set_ipv4_address_ap?4(*, ipv4: ipaddress.IPv4Address, netmask: ipaddress.IPv4Address, gateway: ipaddress.IPv4Address, ) -wifi.Radio.start_ap?4(ssid: Union[str | ReadableBuffer], password: Union[str | ReadableBuffer] = b"", *, channel: int = 1, authmode: Optional[AuthMode] = None, max_connections: Optional[int] = 4, ) +wifi.Radio.start_ap?4(ssid: Union[str | ReadableBuffer], password: Union[str | ReadableBuffer] = b"", *, channel: int = 1, authmode: Iterable[AuthMode] = (), max_connections: Optional[int] = 4, ) wifi.Radio.start_dhcp?4() wifi.Radio.start_dhcp_ap?4() wifi.Radio.start_scanning_networks?4(*, start_channel: int = 1, stop_channel: int = 11)