omnipython-apps 0.1.4.dev8__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.
- apps/__init__.py +5 -0
- apps/about/__init__.py +257 -0
- apps/about/app.json +1 -0
- apps/about/credits.py +12 -0
- apps/about/facts.py +398 -0
- apps/about/fonts/OFL.txt +93 -0
- apps/about/fonts/latin1_14.bin +0 -0
- apps/about/fonts/latin1_16.bin +0 -0
- apps/about/fonts/latin1_24.bin +0 -0
- apps/about/fonts/latin1_32.bin +0 -0
- apps/about/fonts/latin1_40.bin +0 -0
- apps/backline/__init__.py +58 -0
- apps/backline/app.json +1 -0
- apps/backline/app.py +475 -0
- apps/backline/art.py +717 -0
- apps/backline/ask.py +781 -0
- apps/backline/box.py +502 -0
- apps/backline/cast.py +137 -0
- apps/backline/desk/__init__.py +329 -0
- apps/backline/desk/editor.py +331 -0
- apps/backline/desk/grid.py +154 -0
- apps/backline/desk/look.py +169 -0
- apps/backline/desk/pedals.py +102 -0
- apps/backline/desk/perform.py +157 -0
- apps/backline/desk/prompt.py +210 -0
- apps/backline/desk/strip.py +159 -0
- apps/backline/desk_main.py +226 -0
- apps/backline/engine.py +622 -0
- apps/backline/floor.py +509 -0
- apps/backline/footswitch.py +119 -0
- apps/backline/glyphs.py +82 -0
- apps/backline/kits.py +428 -0
- apps/backline/midipedal.py +362 -0
- apps/backline/page_data.py +413 -0
- apps/backline/parts.py +145 -0
- apps/backline/pedal.py +107 -0
- apps/backline/remote.py +134 -0
- apps/backline/songs/ballad_68.json +1 -0
- apps/backline/songs/bossa.json +1 -0
- apps/backline/songs/country_train.json +1 -0
- apps/backline/songs/funk.json +1 -0
- apps/backline/songs/metal.json +1 -0
- apps/backline/songs/pop.json +1 -0
- apps/backline/songs/rock.json +1 -0
- apps/backline/songs/shuffle.json +1 -0
- apps/battery/__init__.py +101 -0
- apps/battery/app.json +1 -0
- apps/bit_world/act_deck.py +683 -0
- apps/bit_world/act_game.py +762 -0
- apps/bit_world/act_pet.py +1032 -0
- apps/bit_world/app.json +1 -0
- apps/bit_world/bit_output.py +45 -0
- apps/bit_world/bit_palette.py +503 -0
- apps/bit_world/bit_sound.py +431 -0
- apps/bit_world/bit_sprites.py +632 -0
- apps/bit_world/bit_world.py +534 -0
- apps/btreceiver/__init__.py +690 -0
- apps/btreceiver/app.json +1 -0
- apps/btreceiver/chime.py +155 -0
- apps/btreceiver/demo.py +529 -0
- apps/btreceiver/screen.py +633 -0
- apps/camera/__init__.py +316 -0
- apps/camera/app.json +1 -0
- apps/card/__init__.py +113 -0
- apps/card/app.json +1 -0
- apps/cast/__init__.py +631 -0
- apps/cast/app.json +1 -0
- apps/cast/receivers.py +193 -0
- apps/chess/__init__.py +18 -0
- apps/chess/app.json +1 -0
- apps/chess/app.py +922 -0
- apps/chess/art.py +323 -0
- apps/chess/ble.py +411 -0
- apps/chess/engine.py +925 -0
- apps/chess/game.py +327 -0
- apps/chess/net.py +261 -0
- apps/clock/__init__.py +38 -0
- apps/clock/app.json +1 -0
- apps/detect/__init__.py +214 -0
- apps/detect/app.json +1 -0
- apps/fmsynth/__init__.py +41 -0
- apps/fmsynth/algorithms.py +61 -0
- apps/fmsynth/app.json +1 -0
- apps/fmsynth/app.py +355 -0
- apps/fmsynth/editor.py +206 -0
- apps/fmsynth/engine.py +257 -0
- apps/fmsynth/meters.py +262 -0
- apps/fmsynth/midi.py +375 -0
- apps/fmsynth/panel_view.py +1071 -0
- apps/fmsynth/patches/fmsynth-01.syx +0 -0
- apps/fmsynth/settings.py +138 -0
- apps/fmsynth/voice.py +398 -0
- apps/gamepad/__init__.py +685 -0
- apps/gamepad/app.json +1 -0
- apps/gamepad/pad.py +94 -0
- apps/gamepad/watch.py +352 -0
- apps/hidden/__init__.py +72 -0
- apps/hidden/app.json +1 -0
- apps/home/__init__.py +483 -0
- apps/home/app.json +1 -0
- apps/home/main.py +36 -0
- apps/homeassistant/__init__.py +213 -0
- apps/homeassistant/api.py +104 -0
- apps/homeassistant/app.json +1 -0
- apps/huey/__init__.py +287 -0
- apps/huey/acting.py +184 -0
- apps/huey/actor.py +194 -0
- apps/huey/app.json +1 -0
- apps/huey/client.py +125 -0
- apps/huey/servers.py +121 -0
- apps/huey/settings.example.json +8 -0
- apps/huey/settings.py +97 -0
- apps/huey/turn.py +504 -0
- apps/huey/voice.py +217 -0
- apps/info/__init__.py +810 -0
- apps/info/app.json +1 -0
- apps/lora/__init__.py +62 -0
- apps/lora/app.json +1 -0
- apps/manifest.py +71 -0
- apps/medialink_baby_monitor/__init__.py +222 -0
- apps/medialink_baby_monitor/app.json +1 -0
- apps/medialink_doorbell/__init__.py +251 -0
- apps/medialink_doorbell/app.json +1 -0
- apps/medialink_hands_free/__init__.py +217 -0
- apps/medialink_hands_free/app.json +1 -0
- apps/medialink_surveillance_camera/__init__.py +258 -0
- apps/medialink_surveillance_camera/app.json +1 -0
- apps/medialink_video_doorbell/__init__.py +289 -0
- apps/medialink_video_doorbell/app.json +1 -0
- apps/medialink_videophone/__init__.py +273 -0
- apps/medialink_videophone/app.json +1 -0
- apps/medialink_walkie_talkie/__init__.py +228 -0
- apps/medialink_walkie_talkie/app.json +1 -0
- apps/midicontroller/__init__.py +774 -0
- apps/midicontroller/app.json +1 -0
- apps/midicontroller/links.py +421 -0
- apps/midicontroller/surface.py +343 -0
- apps/midiengine/__init__.py +977 -0
- apps/midiengine/app.json +1 -0
- apps/midiengine/banks.py +85 -0
- apps/midiengine/midiin.py +165 -0
- apps/midiengine/player.py +392 -0
- apps/midiengine/umidiparser.py +1413 -0
- apps/mp3/__init__.py +240 -0
- apps/mp3/app.json +1 -0
- apps/perch/__init__.py +119 -0
- apps/perch/app.json +1 -0
- apps/perch/huey.py +481 -0
- apps/perch/huey_props.py +386 -0
- apps/perch/huey_shift.py +42 -0
- apps/perch/huey_views.py +296 -0
- apps/perch/scene_bench.py +680 -0
- apps/perch/scene_coast.py +479 -0
- apps/perch/scene_desk.py +492 -0
- apps/perch/stage.py +1274 -0
- apps/perch/vec.py +366 -0
- apps/repl/__init__.py +325 -0
- apps/repl/app.json +1 -0
- apps/roku/__init__.py +156 -0
- apps/roku/app.json +1 -0
- apps/rokucam/__init__.py +362 -0
- apps/rokucam/app.json +1 -0
- apps/security/__init__.py +261 -0
- apps/security/app.json +1 -0
- apps/settings/__init__.py +221 -0
- apps/settings/app.json +1 -0
- apps/shell/__init__.py +33 -0
- apps/shell/app.json +1 -0
- apps/spotify/__init__.py +669 -0
- apps/spotify/app.json +1 -0
- apps/spotify/screen.py +82 -0
- apps/steps/__init__.py +58 -0
- apps/steps/app.json +1 -0
- apps/stompbox/__init__.py +31 -0
- apps/stompbox/app.json +1 -0
- apps/stompbox/app.py +668 -0
- apps/stompbox/boards.json +20 -0
- apps/stompbox/effects.py +241 -0
- apps/stompbox/engine.py +340 -0
- apps/stompbox/footswitch.py +331 -0
- apps/stompbox/inputs.py +449 -0
- apps/stompbox/meter.py +72 -0
- apps/stompbox/outputs.py +135 -0
- apps/stompbox/pedals.txt +45 -0
- apps/stompbox/presets.py +106 -0
- apps/stompbox/styles.py +135 -0
- apps/stompbox/ui.py +817 -0
- apps/stompbox/wavfile.py +73 -0
- apps/synthstation/__init__.py +20 -0
- apps/synthstation/app.json +1 -0
- apps/synthstation/audio.py +397 -0
- apps/synthstation/catalog.py +50 -0
- apps/synthstation/meters.py +136 -0
- apps/synthstation/midi.py +380 -0
- apps/synthstation/pads.py +177 -0
- apps/synthstation/parts.py +128 -0
- apps/synthstation/station.py +1069 -0
- apps/system/__init__.py +11 -0
- apps/system/app.json +1 -0
- apps/touchcal/__init__.py +324 -0
- apps/touchcal/app.json +1 -0
- apps/touchcal/fit.py +262 -0
- apps/wake/__init__.py +268 -0
- apps/wake/app.json +1 -0
- apps/wake/feed.py +155 -0
- apps/watch/__init__.py +355 -0
- apps/watch/app.json +1 -0
- apps/watch/faces.py +35 -0
- apps/watch/wheel.py +157 -0
- apps/weather/__init__.py +278 -0
- apps/weather/app.json +1 -0
- apps/weather/icons.py +172 -0
- apps/weather/sizing.py +71 -0
- apps/weather/zippad.py +172 -0
- omnipython_apps-0.1.4.dev8.dist-info/METADATA +33 -0
- omnipython_apps-0.1.4.dev8.dist-info/RECORD +218 -0
- omnipython_apps-0.1.4.dev8.dist-info/WHEEL +5 -0
- omnipython_apps-0.1.4.dev8.dist-info/top_level.txt +1 -0
apps/backline/pedal.py
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Brad Barnett
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: MIT
|
|
4
|
+
"""Turn a footswitch's presses and releases into taps, holds and double taps.
|
|
5
|
+
|
|
6
|
+
A `Pedal` is told when the switch goes down and up, and asked now and then
|
|
7
|
+
how long it has been held. It answers with gestures:
|
|
8
|
+
|
|
9
|
+
- ``"tap"``: pressed and let go before ``hold_ms``. It fires on the release,
|
|
10
|
+
at once: a fill shouldn't wait to find out whether a second tap follows.
|
|
11
|
+
- ``"double"``: a second press within ``double_ms`` of a tap's release. It
|
|
12
|
+
fires on that press, and its release says nothing more. What the first tap
|
|
13
|
+
started is still waiting for its bar line, so a double tap replaces it.
|
|
14
|
+
- ``"hold"``: still down after ``hold_ms``. It fires once, while held, so the
|
|
15
|
+
player hears the change coming without lifting the foot first.
|
|
16
|
+
|
|
17
|
+
Times are milliseconds from any clock that counts up (``time.ticks_ms()``
|
|
18
|
+
on a board). Nothing here touches a pin, a timer or the screen, so it is
|
|
19
|
+
checked with numbers alone.
|
|
20
|
+
|
|
21
|
+
Example::
|
|
22
|
+
|
|
23
|
+
pedal = Pedal()
|
|
24
|
+
pedal.press(1000) # []
|
|
25
|
+
pedal.release(1120) # ["tap"]
|
|
26
|
+
pedal.press(1300) # ["double"]
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
try:
|
|
30
|
+
from time import ticks_diff
|
|
31
|
+
except ImportError: # CPython
|
|
32
|
+
def ticks_diff(a, b):
|
|
33
|
+
return a - b
|
|
34
|
+
|
|
35
|
+
HOLD_MS = 400
|
|
36
|
+
DOUBLE_MS = 350
|
|
37
|
+
|
|
38
|
+
#: What `Pedal.state` says, for a screen to show.
|
|
39
|
+
UP = "up"
|
|
40
|
+
DOWN = "down"
|
|
41
|
+
HELD = "held"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class Pedal:
|
|
45
|
+
"""One footswitch's gestures. See the module docstring."""
|
|
46
|
+
|
|
47
|
+
def __init__(self, hold_ms=HOLD_MS, double_ms=DOUBLE_MS):
|
|
48
|
+
self.hold_ms = hold_ms
|
|
49
|
+
self.double_ms = double_ms
|
|
50
|
+
self.down_at = None # when the switch went down, while it is down
|
|
51
|
+
self.held = False # a hold has fired for this press
|
|
52
|
+
self.spent = False # this press was a double tap: its release says nothing
|
|
53
|
+
self.tapped_at = None # the last tap's release, for a double tap
|
|
54
|
+
#: The last gesture, and what the switch is doing now.
|
|
55
|
+
self.last = None
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def state(self):
|
|
59
|
+
"""``"up"``, ``"down"`` or ``"held"``."""
|
|
60
|
+
if self.down_at is None:
|
|
61
|
+
return UP
|
|
62
|
+
return HELD if self.held else DOWN
|
|
63
|
+
|
|
64
|
+
def press(self, now):
|
|
65
|
+
"""The switch went down at ``now``. Returns the gestures it makes."""
|
|
66
|
+
if self.down_at is not None:
|
|
67
|
+
return [] # a key's auto-repeat, or a bounce
|
|
68
|
+
self.down_at = now
|
|
69
|
+
self.held = False
|
|
70
|
+
self.spent = False
|
|
71
|
+
if self.tapped_at is not None and ticks_diff(now, self.tapped_at) <= self.double_ms:
|
|
72
|
+
self.tapped_at = None
|
|
73
|
+
self.spent = True
|
|
74
|
+
return self._say("double")
|
|
75
|
+
return []
|
|
76
|
+
|
|
77
|
+
def release(self, now):
|
|
78
|
+
"""The switch came up at ``now``. Returns the gestures it makes."""
|
|
79
|
+
if self.down_at is None:
|
|
80
|
+
return []
|
|
81
|
+
out = []
|
|
82
|
+
if not (self.held or self.spent):
|
|
83
|
+
# A hold that hasn't been polled yet is still a hold.
|
|
84
|
+
if ticks_diff(now, self.down_at) >= self.hold_ms:
|
|
85
|
+
out = self._say("hold")
|
|
86
|
+
else:
|
|
87
|
+
self.tapped_at = now
|
|
88
|
+
out = self._say("tap")
|
|
89
|
+
self.down_at = None
|
|
90
|
+
self.held = False
|
|
91
|
+
self.spent = False
|
|
92
|
+
return out
|
|
93
|
+
|
|
94
|
+
def poll(self, now):
|
|
95
|
+
"""Call often while the switch may be down. Returns ``["hold"]`` once,
|
|
96
|
+
when it has been down ``hold_ms``."""
|
|
97
|
+
if self.down_at is None or self.held or self.spent:
|
|
98
|
+
return []
|
|
99
|
+
if ticks_diff(now, self.down_at) >= self.hold_ms:
|
|
100
|
+
self.held = True
|
|
101
|
+
self.tapped_at = None
|
|
102
|
+
return self._say("hold")
|
|
103
|
+
return []
|
|
104
|
+
|
|
105
|
+
def _say(self, gesture):
|
|
106
|
+
self.last = gesture
|
|
107
|
+
return [gesture]
|
apps/backline/remote.py
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Brad Barnett
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: MIT
|
|
4
|
+
"""Where Backline's screens find each other.
|
|
5
|
+
|
|
6
|
+
The box listens for desks on one port (`listen_port`): another computer or
|
|
7
|
+
board joins it there as a desk panel over TCP, and a browser opens the
|
|
8
|
+
desk page at ``http://<box>:<port>/``. A desk finds its box from the
|
|
9
|
+
command line or the ``BACKLINE_BOX`` setting (`target`). The box can also
|
|
10
|
+
cast its desk view to a screen across the room (`cast_target`).
|
|
11
|
+
|
|
12
|
+
Over Bluetooth, a box with a radio takes desks too when it's given a name
|
|
13
|
+
to advertise (`ble_name`): a phone's or a computer's browser joins it with
|
|
14
|
+
Web Bluetooth. And a desk can wait for its box instead of finding it
|
|
15
|
+
(`desk_link`): a board advertises, or listens on its USB, and a browser
|
|
16
|
+
playing Backline connects to it.
|
|
17
|
+
|
|
18
|
+
These functions are the one place that knows how; a device picker that
|
|
19
|
+
lists the boxes and receivers it can see takes their place when there is
|
|
20
|
+
one.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
import json
|
|
24
|
+
import os
|
|
25
|
+
|
|
26
|
+
PORT = 9300
|
|
27
|
+
#: The name a board advertises when a desk spec says ``ble:`` and no more.
|
|
28
|
+
BLE_NAME = "Backline"
|
|
29
|
+
# What a cast can go to: Miracast to a Windows PC's Wireless Display app or
|
|
30
|
+
# a Roku's Screen mirroring.
|
|
31
|
+
CAST_KINDS = ("windows", "roku")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _getenv(name):
|
|
35
|
+
getenv = getattr(os, "getenv", None)
|
|
36
|
+
return getenv(name) if getenv is not None else None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def listen_port(prefs=None):
|
|
40
|
+
"""The port the box serves desks on, or None for none.
|
|
41
|
+
|
|
42
|
+
``prefs["desk_port"]`` sets it, else ``$BACKLINE_PORT``; 0 turns
|
|
43
|
+
serving off.
|
|
44
|
+
"""
|
|
45
|
+
if prefs is not None and "desk_port" in prefs:
|
|
46
|
+
port = prefs["desk_port"]
|
|
47
|
+
else:
|
|
48
|
+
port = _getenv("BACKLINE_PORT") or PORT
|
|
49
|
+
return int(port) if port and int(port) else None
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def target(argv=(), env=None):
|
|
53
|
+
"""``(host, port)`` of the box a desk joins: the first argument
|
|
54
|
+
(``HOST`` or ``HOST:PORT``), else ``$BACKLINE_BOX``, else this computer.
|
|
55
|
+
|
|
56
|
+
Raises:
|
|
57
|
+
ValueError: The port isn't a number.
|
|
58
|
+
"""
|
|
59
|
+
spec = argv[0] if argv else None
|
|
60
|
+
if spec is None:
|
|
61
|
+
spec = env.get("BACKLINE_BOX") if env is not None else _getenv("BACKLINE_BOX")
|
|
62
|
+
spec = spec or "127.0.0.1"
|
|
63
|
+
if ":" in spec:
|
|
64
|
+
host, port = spec.rsplit(":", 1)
|
|
65
|
+
return host, int(port)
|
|
66
|
+
return spec, PORT
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def cast_target(prefs=None, spec=None):
|
|
70
|
+
"""The receiver the box casts its desk view to, or None for no cast.
|
|
71
|
+
|
|
72
|
+
``spec``, else ``prefs["cast"]``, else ``$BACKLINE_CAST``, as
|
|
73
|
+
``KIND:HOST``: ``windows:192.0.2.30`` (a PC with its Wireless Display
|
|
74
|
+
app open) or ``roku:192.0.2.40`` (a Roku with Screen mirroring on). An
|
|
75
|
+
empty one is no cast.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
``{"kind", "host", "name"}``, the shape a receiver list gives.
|
|
79
|
+
|
|
80
|
+
Raises:
|
|
81
|
+
ValueError: The kind isn't one of `CAST_KINDS`, or there's no host.
|
|
82
|
+
"""
|
|
83
|
+
if spec is None and prefs is not None:
|
|
84
|
+
spec = prefs.get("cast")
|
|
85
|
+
if spec is None:
|
|
86
|
+
spec = _getenv("BACKLINE_CAST")
|
|
87
|
+
if not spec:
|
|
88
|
+
return None
|
|
89
|
+
kind, _, host = spec.partition(":")
|
|
90
|
+
if kind not in CAST_KINDS or not host:
|
|
91
|
+
raise ValueError("cast to KIND:HOST, KIND one of %s, not %r" % (", ".join(CAST_KINDS), spec))
|
|
92
|
+
return {"kind": kind, "host": host, "name": "%s at %s" % (kind, host)}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def ble_name(prefs=None, folder=None):
|
|
96
|
+
"""The name the box advertises desks over Bluetooth with, or None for none.
|
|
97
|
+
|
|
98
|
+
``prefs["ble"]``, else ``$BACKLINE_BLE``, else ``"ble"`` in
|
|
99
|
+
``settings.json`` in ``folder`` (the app's data folder, ``/data/backline``
|
|
100
|
+
on a board), so a board keeps it across a restart:
|
|
101
|
+
``{"ble": "Backline"}``. An empty name is none.
|
|
102
|
+
"""
|
|
103
|
+
if prefs is not None and "ble" in prefs:
|
|
104
|
+
return prefs["ble"] or None
|
|
105
|
+
name = _getenv("BACKLINE_BLE")
|
|
106
|
+
if name is None and folder:
|
|
107
|
+
try:
|
|
108
|
+
with open(folder + "/settings.json") as f:
|
|
109
|
+
name = json.load(f).get("ble")
|
|
110
|
+
except (OSError, ValueError):
|
|
111
|
+
name = None
|
|
112
|
+
return name or None
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def desk_link(spec):
|
|
116
|
+
"""How a desk reaches its box, from ``spec``.
|
|
117
|
+
|
|
118
|
+
``HOST`` or ``HOST:PORT`` joins a box on the network over TCP;
|
|
119
|
+
``ble:NAME`` advertises over Bluetooth as NAME (`BLE_NAME` when it's
|
|
120
|
+
left out) and waits for the box to connect, as a browser playing
|
|
121
|
+
Backline does; ``usb`` listens on a second USB serial port of the board,
|
|
122
|
+
which a browser on the computer it's plugged into opens with WebSerial.
|
|
123
|
+
|
|
124
|
+
Returns:
|
|
125
|
+
``("tcp", (host, port))``, ``("ble", name)`` or ``("usb", None)``.
|
|
126
|
+
|
|
127
|
+
Raises:
|
|
128
|
+
ValueError: A TCP port isn't a number.
|
|
129
|
+
"""
|
|
130
|
+
if spec.startswith("ble:") or spec == "ble":
|
|
131
|
+
return "ble", spec[4:] or BLE_NAME
|
|
132
|
+
if spec == "usb":
|
|
133
|
+
return "usb", None
|
|
134
|
+
return "tcp", target([spec])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"12/8","metronome":false,"name":"Slow Six","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"6/8 ballad","swing":0,"tempo":62.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":1,"notes":[[0,32,36,118],[0,32,42,96],[64,32,42,70],[96,32,42,96],[160,32,42,70],[192,32,36,70],[192,32,42,96],[256,32,42,70],[288,32,42,96],[320,32,45,70],[352,32,42,70],[352,32,45,96]]},{"bars":2,"notes":[[0,32,36,118],[0,32,42,96],[32,32,42,70],[64,32,42,70],[96,32,37,118],[96,32,42,96],[128,32,42,70],[160,32,42,70],[192,32,36,118],[192,32,42,96],[224,32,42,70],[256,32,42,70],[288,32,37,118],[288,32,42,96],[320,32,42,70],[352,32,42,70],[384,32,36,118],[384,32,42,96],[416,32,42,70],[448,32,42,70],[480,32,37,118],[480,32,42,96],[512,32,42,70],[544,32,42,70],[576,32,36,118],[576,32,42,96],[608,32,42,70],[640,32,42,70],[672,32,36,70],[672,32,37,118],[672,32,42,96],[704,32,42,70],[736,32,42,70]]},{"bars":2,"notes":[[0,32,36,118],[0,32,49,118],[0,32,51,96],[32,32,51,70],[64,32,51,70],[96,32,38,118],[96,32,51,96],[128,32,51,70],[160,32,36,70],[160,32,51,70],[192,32,36,118],[192,32,51,96],[224,32,51,70],[256,32,51,70],[288,32,38,118],[288,32,51,96],[320,32,51,70],[352,32,51,70],[384,32,36,118],[384,32,51,96],[416,32,51,70],[448,32,51,70],[480,32,38,118],[480,32,51,96],[512,32,51,70],[544,32,36,70],[544,32,51,70],[576,32,36,118],[576,32,51,96],[608,32,51,70],[640,32,51,70],[672,32,36,70],[672,32,38,118],[672,32,51,96],[704,32,51,70],[736,32,51,70]]},{"bars":1,"notes":[[0,32,36,118],[96,32,38,118],[192,32,36,118],[192,32,38,70],[224,32,38,70],[256,32,38,96],[288,32,38,96],[320,32,38,118],[352,32,38,118]]},{"bars":1,"notes":[[0,32,36,118],[96,32,38,118],[192,32,36,118],[192,32,48,96],[224,32,48,96],[256,32,45,96],[288,32,45,96],[320,32,41,96],[352,32,41,118]]},{"bars":1,"notes":[[0,32,36,118],[0,32,49,118],[96,32,38,118],[192,32,36,118],[192,32,38,96],[224,32,38,70],[256,32,38,96],[288,32,38,96],[320,32,38,96],[352,32,38,118]]},{"bars":2,"notes":[[0,32,36,118],[0,32,51,96],[32,32,51,70],[64,32,51,70],[96,32,38,118],[96,32,51,96],[128,32,51,70],[160,32,51,70],[192,32,36,118],[192,32,51,96],[224,32,51,70],[256,32,51,70],[288,32,38,118],[288,32,51,96],[320,32,51,70],[352,32,38,118],[352,32,51,70],[384,32,36,118],[384,32,49,118]]},{"bars":1,"notes":[[0,32,36,118],[0,32,49,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Bossa Breeze","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Latin","swing":0,"tempo":132.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":2,"notes":[[0,24,37,96],[0,24,42,96],[48,24,42,96],[72,24,37,96],[96,24,42,96],[144,24,37,96],[144,24,42,96],[192,24,42,96],[240,24,37,96],[240,24,42,96],[288,24,42,96],[312,24,37,96],[336,24,42,96],[384,24,37,96],[384,24,42,96],[432,24,42,96],[456,24,37,96],[480,24,42,96],[528,24,37,96],[528,24,42,96],[576,24,42,96],[624,24,37,96],[624,24,42,96],[672,24,42,96],[696,24,37,96],[720,24,42,96]]},{"bars":2,"notes":[[0,24,36,118],[0,24,37,96],[0,24,42,96],[48,24,42,70],[72,24,36,96],[72,24,37,96],[96,24,42,96],[144,24,37,96],[144,24,42,70],[192,24,36,118],[192,24,42,96],[240,24,37,96],[240,24,42,70],[264,24,36,96],[288,24,42,96],[312,24,37,96],[336,24,42,70],[384,24,36,118],[384,24,42,96],[432,24,37,96],[432,24,42,70],[456,24,36,96],[480,24,42,96],[504,24,37,96],[528,24,42,70],[576,24,36,118],[576,24,42,96],[600,24,37,96],[624,24,42,70],[648,24,36,96],[672,24,37,96],[672,24,42,96],[720,24,42,70]]},{"bars":2,"notes":[[0,24,36,118],[0,24,37,96],[0,24,51,96],[48,24,51,70],[72,24,36,96],[72,24,37,96],[72,24,51,70],[96,24,44,96],[96,24,51,96],[144,24,37,96],[144,24,51,70],[168,24,51,70],[192,24,36,118],[192,24,51,96],[240,24,37,96],[240,24,51,70],[264,24,36,96],[264,24,51,70],[288,24,44,96],[288,24,51,96],[312,24,37,96],[336,24,51,70],[360,24,51,70],[384,24,36,118],[384,24,51,96],[432,24,37,96],[432,24,51,70],[456,24,36,96],[456,24,51,70],[480,24,44,96],[480,24,51,96],[504,24,37,96],[528,24,51,70],[552,24,51,70],[576,24,36,118],[576,24,51,96],[600,24,37,96],[624,24,51,70],[648,24,36,96],[648,24,51,70],[672,24,37,96],[672,24,44,96],[672,24,51,96],[720,24,51,70],[744,24,51,70]]},{"bars":1,"notes":[[0,24,36,118],[0,24,37,96],[72,24,36,96],[72,24,37,96],[144,24,37,96],[192,24,36,118],[240,24,38,70],[264,24,36,96],[288,24,38,96],[312,24,38,70],[336,24,38,96],[360,24,38,96]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,96],[48,24,38,70],[72,24,36,96],[96,24,38,70],[144,24,48,70],[192,24,36,118],[192,24,48,70],[240,24,45,70],[264,24,36,96],[288,24,45,70],[336,24,41,96],[360,24,41,96]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,70],[0,24,51,96],[48,24,38,70],[72,24,36,96],[96,24,38,70],[96,24,51,96],[144,24,38,70],[192,24,36,118],[192,24,38,96],[192,24,51,96],[240,24,38,96],[264,24,36,96],[288,24,38,96],[288,24,51,96],[312,24,38,96],[336,24,38,118],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,37,96],[0,24,42,96],[48,24,42,70],[72,24,36,96],[72,24,37,96],[96,24,42,96],[144,24,37,96],[144,24,42,70],[192,24,36,118],[192,24,42,96],[240,24,37,96],[240,24,42,70],[264,24,36,96],[288,24,42,96],[312,24,37,96],[336,24,42,70],[384,24,36,118],[384,24,49,70]]},{"bars":1,"notes":[[0,24,36,118],[0,24,49,96]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Country Train","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Country","swing":0,"tempo":152.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":1,"notes":[[0,24,36,118],[0,24,38,70],[48,24,38,70],[96,24,38,118],[144,24,38,70],[192,24,36,118],[192,24,38,70],[240,24,38,70],[288,24,38,118],[336,24,38,70]]},{"bars":2,"notes":[[0,24,36,118],[0,24,38,42],[24,24,38,70],[48,24,38,42],[72,24,38,70],[96,24,38,118],[96,24,44,96],[120,24,38,70],[144,24,38,42],[168,24,38,70],[192,24,36,118],[192,24,38,42],[216,24,38,70],[240,24,38,42],[264,24,38,70],[288,24,38,118],[288,24,44,96],[312,24,38,70],[336,24,38,42],[360,24,38,70],[384,24,36,118],[384,24,38,42],[408,24,38,70],[432,24,38,42],[456,24,38,70],[480,24,38,118],[480,24,44,96],[504,24,38,70],[528,24,38,42],[552,24,38,70],[576,24,36,118],[576,24,38,42],[600,24,38,70],[624,24,38,42],[648,24,38,70],[672,24,38,118],[672,24,44,96],[696,24,38,70],[720,24,38,42],[744,24,38,70]]},{"bars":2,"notes":[[0,24,36,118],[0,24,38,42],[0,24,49,118],[0,24,51,96],[24,24,38,70],[48,24,38,42],[48,24,51,96],[72,24,38,70],[96,24,38,118],[96,24,51,96],[120,24,38,70],[144,24,38,42],[144,24,51,96],[168,24,38,70],[192,24,36,118],[192,24,38,42],[192,24,51,96],[216,24,38,70],[240,24,38,42],[240,24,51,96],[264,24,38,70],[288,24,38,118],[288,24,51,96],[312,24,38,70],[336,24,38,42],[336,24,51,96],[360,24,38,70],[384,24,36,118],[384,24,38,42],[384,24,51,96],[408,24,38,70],[432,24,38,42],[432,24,51,96],[456,24,38,70],[480,24,38,118],[480,24,51,96],[504,24,38,70],[528,24,38,42],[528,24,51,96],[552,24,38,70],[576,24,36,118],[576,24,38,42],[576,24,51,96],[600,24,38,70],[624,24,38,42],[624,24,51,96],[648,24,38,70],[672,24,38,118],[672,24,51,96],[696,24,38,70],[720,24,38,42],[720,24,51,96],[744,24,38,70]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,42],[24,24,38,70],[48,24,38,42],[72,24,38,70],[96,24,38,118],[120,24,38,70],[144,24,38,42],[168,24,38,70],[192,24,36,118],[192,24,38,96],[216,24,38,96],[240,24,38,96],[264,24,38,96],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[24,24,38,70],[48,24,38,118],[72,24,38,70],[96,24,38,118],[120,24,38,70],[144,24,38,118],[168,24,38,70],[192,24,36,118],[192,24,47,96],[216,24,47,96],[240,24,41,96],[264,24,41,96],[288,24,47,96],[312,24,47,96],[336,24,41,118],[360,24,41,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,42],[0,24,49,118],[24,24,38,70],[48,24,38,42],[72,24,38,70],[96,24,36,118],[96,24,38,96],[120,24,38,70],[144,24,38,42],[168,24,38,70],[192,24,36,118],[192,24,38,118],[216,24,38,118],[240,24,38,118],[264,24,38,118],[288,24,36,118],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,38,42],[24,24,38,70],[48,24,38,42],[72,24,38,70],[96,24,38,118],[120,24,38,70],[144,24,38,42],[168,24,38,70],[192,24,36,118],[192,24,38,42],[216,24,38,70],[240,24,38,42],[264,24,38,70],[288,24,38,118],[312,24,38,70],[336,24,38,118],[360,24,38,118],[384,24,36,118],[384,24,49,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,49,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Pocket Funk","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Funk","swing":0,"tempo":98.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":1,"notes":[[0,24,36,118],[0,24,42,96],[48,24,42,96],[96,24,42,96],[144,24,42,96],[168,24,36,118],[192,24,42,96],[240,24,42,96],[288,24,38,118],[288,24,42,96],[312,24,38,96],[336,24,38,118],[336,24,42,96],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[24,24,42,70],[48,24,36,96],[48,24,42,96],[72,24,42,70],[96,24,38,118],[96,24,42,96],[120,24,42,70],[144,24,42,96],[168,24,36,96],[168,24,38,42],[168,24,42,70],[192,24,42,96],[216,24,38,42],[216,24,42,70],[240,24,36,118],[240,24,42,96],[264,24,42,70],[288,24,38,118],[288,24,42,96],[312,24,42,70],[336,24,42,96],[360,24,38,42],[360,24,42,70],[384,24,36,118],[384,24,42,96],[408,24,38,42],[408,24,42,70],[432,24,36,96],[432,24,42,96],[456,24,42,70],[480,24,38,118],[480,24,42,96],[504,24,42,70],[528,24,42,96],[552,24,36,96],[552,24,38,42],[552,24,42,70],[576,24,42,96],[600,24,38,42],[600,24,42,70],[624,24,36,118],[624,24,42,96],[648,24,42,70],[672,24,38,118],[672,24,42,96],[696,24,36,96],[696,24,42,70],[720,24,42,96],[720,24,46,70],[744,24,42,70]]},{"bars":2,"notes":[[0,24,36,118],[0,24,38,42],[0,24,42,96],[0,24,49,118],[48,24,42,96],[72,24,36,96],[72,24,42,70],[96,24,38,118],[96,24,42,96],[144,24,36,96],[144,24,42,96],[144,24,46,70],[168,24,38,42],[168,24,42,70],[192,24,42,96],[216,24,38,42],[240,24,36,118],[240,24,42,96],[264,24,38,42],[264,24,42,70],[288,24,38,118],[288,24,42,96],[312,24,36,96],[336,24,42,96],[336,24,46,70],[360,24,38,42],[360,24,42,70],[384,24,36,118],[384,24,38,42],[384,24,42,96],[432,24,42,96],[456,24,36,96],[456,24,42,70],[480,24,38,118],[480,24,42,96],[528,24,36,96],[528,24,42,96],[528,24,46,70],[552,24,38,42],[552,24,42,70],[576,24,42,96],[600,24,38,42],[624,24,36,118],[624,24,42,96],[648,24,38,42],[648,24,42,70],[672,24,36,96],[672,24,38,118],[672,24,42,96],[720,24,38,42],[720,24,42,96],[720,24,46,70],[744,24,38,42],[744,24,42,70]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[72,24,38,42],[96,24,38,118],[144,24,36,96],[144,24,38,42],[168,24,38,118],[192,24,38,42],[240,24,36,96],[240,24,38,118],[264,24,38,42],[288,24,38,118],[312,24,38,118],[336,24,38,42],[360,24,38,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[48,24,38,96],[72,24,38,96],[96,24,48,96],[120,24,48,96],[192,24,36,96],[192,24,38,118],[240,24,47,96],[264,24,47,96],[288,24,41,96],[312,24,41,96],[336,24,41,118],[360,24,41,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[48,24,38,42],[72,24,36,96],[72,24,38,118],[120,24,38,42],[144,24,36,96],[144,24,38,118],[192,24,38,118],[216,24,38,42],[240,24,36,96],[240,24,38,118],[264,24,38,42],[288,24,36,96],[288,24,38,118],[312,24,38,118],[336,24,38,118],[336,24,46,96],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[24,24,42,70],[48,24,36,96],[48,24,42,96],[72,24,42,70],[96,24,38,118],[96,24,42,96],[120,24,42,70],[144,24,42,96],[168,24,36,96],[168,24,38,42],[168,24,42,70],[192,24,42,96],[216,24,38,42],[216,24,42,70],[240,24,36,118],[240,24,42,96],[264,24,42,70],[288,24,38,118],[288,24,42,96],[312,24,38,96],[312,24,42,70],[336,24,38,118],[336,24,42,96],[360,24,38,118],[360,24,42,70],[384,24,36,118],[384,24,49,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,49,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Iron Gallop","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Metal","swing":0,"tempo":168.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":2,"notes":[[0,24,36,118],[0,24,49,118],[96,24,36,118],[96,24,49,118],[192,24,36,118],[192,24,49,118],[288,24,36,118],[288,24,49,118],[384,24,36,118],[384,24,49,118],[480,24,36,118],[480,24,49,118],[576,24,36,118],[576,24,38,118],[576,24,49,118],[600,24,38,118],[624,24,38,118],[648,24,38,118],[672,24,36,118],[672,24,38,118],[672,24,49,118],[696,24,38,118],[720,24,38,118],[744,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[0,24,49,118],[48,24,36,96],[48,24,42,96],[72,24,36,96],[96,24,36,118],[96,24,38,118],[96,24,42,96],[144,24,36,96],[144,24,42,96],[168,24,36,96],[192,24,36,118],[192,24,42,96],[240,24,36,96],[240,24,42,96],[264,24,36,96],[288,24,36,118],[288,24,38,118],[288,24,42,96],[336,24,36,96],[336,24,42,96],[360,24,36,96],[384,24,36,118],[384,24,42,96],[432,24,36,96],[432,24,42,96],[456,24,36,96],[480,24,36,118],[480,24,38,118],[480,24,42,96],[528,24,36,96],[528,24,42,96],[552,24,36,96],[576,24,36,118],[576,24,42,96],[624,24,36,96],[624,24,42,96],[648,24,36,96],[672,24,36,118],[672,24,38,118],[672,24,42,96],[720,24,36,96],[720,24,42,96],[744,24,36,96]]},{"bars":2,"notes":[[0,24,36,96],[0,24,49,118],[0,24,53,96],[24,24,36,96],[48,24,36,96],[72,24,36,96],[96,24,36,96],[96,24,38,118],[96,24,53,96],[120,24,36,96],[144,24,36,96],[168,24,36,96],[192,24,36,96],[192,24,49,118],[192,24,53,96],[216,24,36,96],[240,24,36,96],[264,24,36,96],[288,24,36,96],[288,24,38,118],[288,24,53,96],[312,24,36,96],[336,24,36,96],[360,24,36,96],[384,24,36,96],[384,24,49,118],[384,24,53,96],[408,24,36,96],[432,24,36,96],[456,24,36,96],[480,24,36,96],[480,24,38,118],[480,24,53,96],[504,24,36,96],[528,24,36,96],[552,24,36,96],[576,24,36,96],[576,24,49,118],[576,24,53,96],[600,24,36,96],[624,24,36,96],[648,24,36,96],[672,24,36,96],[672,24,38,118],[672,24,53,96],[696,24,36,96],[720,24,36,96],[744,24,36,96]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[24,24,38,96],[48,24,38,118],[72,24,38,96],[96,24,36,118],[96,24,38,118],[120,24,38,96],[144,24,38,118],[168,24,38,96],[192,24,36,118],[192,24,38,118],[216,24,38,118],[240,24,38,118],[264,24,38,118],[288,24,36,118],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":1,"notes":[[0,24,36,96],[0,24,48,118],[24,24,36,96],[24,24,48,96],[48,24,36,96],[48,24,48,118],[72,24,36,96],[72,24,48,96],[96,24,36,96],[96,24,47,118],[120,24,36,96],[120,24,47,96],[144,24,36,96],[144,24,47,118],[168,24,36,96],[168,24,47,96],[192,24,36,96],[192,24,41,118],[216,24,36,96],[216,24,41,96],[240,24,36,96],[240,24,41,118],[264,24,36,96],[264,24,41,96],[288,24,36,96],[288,24,41,118],[312,24,36,96],[312,24,41,118],[336,24,36,96],[336,24,41,118],[360,24,36,96],[360,24,41,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[0,24,49,118],[72,24,36,118],[72,24,38,118],[72,24,49,118],[144,24,36,118],[144,24,38,118],[144,24,49,118],[192,24,36,96],[192,24,38,118],[216,24,36,96],[216,24,38,118],[240,24,36,96],[240,24,38,118],[264,24,36,96],[264,24,38,118],[288,24,36,96],[288,24,38,118],[312,24,36,96],[312,24,38,118],[336,24,36,96],[336,24,38,118],[360,24,36,96],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,49,118],[48,24,36,96],[72,24,36,96],[96,24,36,118],[96,24,38,118],[96,24,49,118],[144,24,36,96],[168,24,36,96],[192,24,36,118],[192,24,49,118],[240,24,36,96],[264,24,36,96],[288,24,36,118],[288,24,38,118],[288,24,49,118],[312,24,36,118],[312,24,38,118],[336,24,36,118],[336,24,38,118],[360,24,36,118],[360,24,38,118],[384,24,36,118],[384,24,49,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,49,118],[0,24,57,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Bright Pop","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Pop","swing":0,"tempo":112.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":2,"notes":[[0,24,36,118],[96,24,36,118],[96,24,39,118],[192,24,36,118],[288,24,36,118],[288,24,39,118],[384,24,36,118],[480,24,36,118],[480,24,39,118],[576,24,36,118],[672,24,36,118],[672,24,38,118],[672,24,39,118],[696,24,38,118],[720,24,38,118],[744,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[0,24,49,118],[48,24,42,96],[96,24,38,118],[96,24,39,96],[96,24,42,96],[144,24,42,96],[168,24,36,96],[192,24,42,96],[240,24,36,118],[240,24,42,96],[288,24,38,118],[288,24,39,96],[288,24,42,96],[336,24,42,96],[384,24,36,118],[384,24,42,96],[432,24,42,96],[480,24,38,118],[480,24,39,96],[480,24,42,96],[528,24,42,96],[552,24,36,96],[576,24,42,96],[624,24,36,118],[624,24,42,96],[672,24,38,118],[672,24,39,96],[672,24,42,96],[720,24,36,96],[720,24,42,96]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[0,24,49,118],[48,24,46,96],[96,24,36,118],[96,24,38,118],[96,24,39,96],[96,24,42,96],[144,24,46,96],[192,24,36,118],[192,24,42,96],[240,24,46,96],[288,24,36,118],[288,24,38,118],[288,24,39,96],[288,24,42,96],[336,24,46,96],[384,24,36,118],[384,24,42,96],[432,24,46,96],[480,24,36,118],[480,24,38,118],[480,24,39,96],[480,24,42,96],[528,24,46,96],[576,24,36,118],[576,24,42,96],[624,24,46,96],[672,24,36,118],[672,24,38,118],[672,24,39,96],[672,24,42,96],[720,24,46,96]]},{"bars":1,"notes":[[0,24,36,118],[96,24,36,118],[96,24,38,96],[96,24,39,118],[144,24,38,96],[192,24,36,118],[192,24,38,96],[216,24,38,96],[240,24,38,96],[264,24,38,96],[288,24,36,118],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[96,24,36,118],[96,24,38,96],[144,24,38,96],[192,24,36,118],[192,24,48,96],[216,24,48,96],[240,24,45,96],[264,24,45,96],[288,24,36,118],[288,24,41,118],[312,24,41,118],[336,24,41,118],[360,24,41,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,96],[0,24,49,118],[48,24,38,96],[96,24,36,118],[96,24,38,96],[144,24,38,96],[192,24,36,118],[192,24,38,96],[216,24,38,96],[240,24,38,96],[264,24,38,96],[288,24,36,118],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[48,24,42,96],[96,24,38,118],[96,24,42,96],[144,24,42,96],[168,24,36,96],[192,24,42,96],[240,24,36,118],[240,24,42,96],[288,24,38,118],[288,24,42,96],[336,24,38,118],[336,24,42,96],[360,24,38,118],[384,24,36,118],[384,24,49,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,49,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Straight Rock","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Rock","swing":0,"tempo":118.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[96,24,42,96],[192,24,42,96],[288,24,42,96],[384,24,36,118],[384,24,42,96],[432,24,42,96],[480,24,42,96],[528,24,42,96],[576,24,36,118],[576,24,38,96],[600,24,38,96],[624,24,38,118],[648,24,38,118],[672,24,38,96],[696,24,38,96],[720,24,38,118],[744,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[0,24,49,118],[48,24,42,96],[96,24,38,118],[96,24,42,96],[144,24,42,96],[192,24,36,118],[192,24,42,96],[240,24,36,118],[240,24,42,96],[288,24,38,118],[288,24,42,96],[336,24,42,96],[384,24,36,118],[384,24,42,96],[432,24,42,96],[480,24,38,118],[480,24,42,96],[528,24,42,96],[576,24,36,118],[576,24,42,96],[624,24,36,118],[624,24,42,96],[672,24,38,118],[672,24,42,96],[720,24,36,96],[720,24,42,96]]},{"bars":2,"notes":[[0,24,36,118],[0,24,49,118],[0,24,51,96],[48,24,36,96],[48,24,51,70],[96,24,38,118],[96,24,51,96],[144,24,51,70],[192,24,36,118],[192,24,51,96],[240,24,36,96],[240,24,51,70],[288,24,38,118],[288,24,51,96],[336,24,51,70],[384,24,36,118],[384,24,51,96],[432,24,36,96],[432,24,51,70],[480,24,38,118],[480,24,51,96],[528,24,51,70],[576,24,36,118],[576,24,51,96],[624,24,36,96],[624,24,51,70],[672,24,38,118],[672,24,51,96],[720,24,36,96],[720,24,51,70],[744,24,38,42]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,96],[48,24,38,96],[96,24,38,96],[144,24,38,96],[192,24,36,118],[192,24,38,118],[216,24,38,96],[240,24,38,118],[264,24,38,96],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,118],[48,24,38,96],[96,24,38,96],[144,24,48,96],[168,24,48,96],[192,24,36,118],[192,24,47,96],[216,24,47,96],[240,24,41,96],[264,24,41,96],[288,24,41,118],[312,24,41,118],[336,24,36,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,38,96],[0,24,42,96],[48,24,38,96],[48,24,42,96],[96,24,36,118],[96,24,38,96],[96,24,42,96],[144,24,38,96],[144,24,42,96],[192,24,36,118],[192,24,38,96],[216,24,38,96],[240,24,38,96],[264,24,38,96],[288,24,36,118],[288,24,38,118],[312,24,38,118],[336,24,38,118],[360,24,38,118]]},{"bars":2,"notes":[[0,24,36,118],[0,24,42,96],[48,24,42,96],[96,24,38,118],[96,24,42,96],[144,24,42,96],[192,24,36,118],[192,24,42,96],[240,24,36,118],[240,24,42,96],[288,24,38,118],[288,24,42,96],[312,24,38,96],[336,24,38,118],[336,24,42,96],[360,24,38,118],[384,24,36,118],[384,24,49,118]]},{"bars":1,"notes":[[0,24,36,118],[0,24,49,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bindings":{},"loop_pattern":0,"loop_scene":null,"master":{"rack":[],"volume":100},"meter":"4/4","metronome":false,"name":"Blues Shuffle","overdub":true,"parts":{"accent":7,"fills":[3,4],"intro":0,"mains":[1,2],"outro":6,"transitions":[5]},"quantise":true,"song":[],"song_mode":false,"style":"Blues","swing":0,"tempo":96.0,"tracks":[{"current":0,"current_at":0,"id":1,"instrument":"soundfont","kind":"drums","macros":{},"mute":false,"name":"Drums","next":null,"pan":64,"patch":0,"patterns":[{"bars":1,"notes":[[0,32,36,118],[0,32,42,96],[96,32,42,96],[192,32,38,118],[192,32,42,96],[224,32,38,96],[256,32,38,96],[288,32,38,118],[288,32,42,96],[320,32,38,96],[352,32,38,118]]},{"bars":2,"notes":[[0,32,36,118],[0,32,42,96],[0,32,49,118],[64,32,42,70],[96,32,38,118],[96,32,42,96],[160,32,42,70],[192,32,36,118],[192,32,42,96],[256,32,42,70],[288,32,36,70],[288,32,38,118],[288,32,42,96],[352,32,42,70],[384,32,36,118],[384,32,42,96],[448,32,42,70],[480,32,38,118],[480,32,42,96],[544,32,42,70],[576,32,36,118],[576,32,42,96],[640,32,42,70],[672,32,38,118],[672,32,42,96],[736,32,36,70],[736,32,38,42],[736,32,42,70]]},{"bars":2,"notes":[[0,32,36,118],[0,32,49,118],[0,32,51,96],[64,32,38,42],[64,32,51,70],[96,32,36,70],[96,32,38,118],[96,32,44,96],[96,32,51,96],[160,32,38,42],[160,32,51,70],[192,32,36,118],[192,32,51,96],[256,32,38,42],[256,32,51,70],[288,32,36,70],[288,32,38,118],[288,32,44,96],[288,32,51,96],[352,32,38,42],[352,32,51,70],[384,32,36,118],[384,32,51,96],[448,32,38,42],[448,32,51,70],[480,32,36,70],[480,32,38,118],[480,32,44,96],[480,32,51,96],[544,32,38,42],[544,32,51,70],[576,32,36,118],[576,32,51,96],[640,32,38,42],[640,32,51,70],[672,32,36,70],[672,32,38,118],[672,32,44,96],[672,32,51,96],[736,32,38,42],[736,32,51,70]]},{"bars":1,"notes":[[0,32,36,118],[0,32,38,96],[64,32,38,96],[96,32,38,96],[160,32,38,96],[192,32,36,118],[192,32,38,118],[256,32,38,96],[288,32,38,118],[320,32,38,96],[352,32,38,118]]},{"bars":1,"notes":[[0,32,36,118],[0,32,38,118],[64,32,38,96],[96,32,48,96],[128,32,48,96],[192,32,36,118],[192,32,47,96],[224,32,47,96],[256,32,41,96],[288,32,41,118],[320,32,41,96],[352,32,41,118]]},{"bars":1,"notes":[[0,32,36,118],[0,32,38,96],[0,32,49,118],[64,32,38,96],[96,32,36,118],[96,32,38,96],[160,32,38,96],[192,32,36,118],[192,32,38,96],[224,32,38,96],[256,32,38,96],[288,32,36,118],[288,32,38,118],[320,32,38,118],[352,32,38,118]]},{"bars":2,"notes":[[0,32,36,118],[0,32,42,96],[64,32,42,70],[96,32,38,118],[96,32,42,96],[160,32,42,70],[192,32,36,118],[192,32,42,96],[256,32,42,70],[288,32,38,118],[288,32,42,96],[320,32,38,96],[352,32,38,118],[352,32,42,70],[384,32,36,118],[384,32,49,118]]},{"bars":1,"notes":[[0,32,36,118],[0,32,49,118]]}],"rack":[],"solo":false,"volume":100}],"version":1}
|
apps/battery/__init__.py
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Brad Barnett
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: MIT
|
|
4
|
+
"""Battery: the charge, the battery's voltage, the charger and USB, and the
|
|
5
|
+
screen's brightness.
|
|
6
|
+
|
|
7
|
+
The battery is the board's ``battery`` role, as the status bar reads it. A
|
|
8
|
+
charger that can be switched (the AXP2101's) gets a switch; one that can't
|
|
9
|
+
is only shown. The brightness slider sets ``display_drv.brightness`` for as
|
|
10
|
+
long as the board runs.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import sys
|
|
14
|
+
|
|
15
|
+
import lvgl as lv
|
|
16
|
+
from appkit.bar import battery_percent, board_battery
|
|
17
|
+
|
|
18
|
+
from touchkit import ui
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def lines(battery):
|
|
22
|
+
"""What the screen says about *battery*, one line each."""
|
|
23
|
+
out = []
|
|
24
|
+
pct = battery_percent(battery)
|
|
25
|
+
out.append("%d%%" % pct if pct is not None else "No battery")
|
|
26
|
+
v = battery.voltage
|
|
27
|
+
if v is not None:
|
|
28
|
+
out.append("Battery %.2f V" % v)
|
|
29
|
+
state = getattr(battery, "battery_status", None)
|
|
30
|
+
if state is None:
|
|
31
|
+
state = "charging" if getattr(battery, "charging", False) else None
|
|
32
|
+
if state:
|
|
33
|
+
out.append("State: %s" % state)
|
|
34
|
+
vbus = getattr(battery, "vbus_voltage", None)
|
|
35
|
+
if vbus:
|
|
36
|
+
out.append("USB %.2f V" % vbus)
|
|
37
|
+
return out
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def main(scope):
|
|
41
|
+
try:
|
|
42
|
+
battery = board_battery()
|
|
43
|
+
except Exception as e:
|
|
44
|
+
ui.missing(scope, "No battery", "The battery didn't answer: %r" % (e,))
|
|
45
|
+
return
|
|
46
|
+
if battery is None:
|
|
47
|
+
ui.missing(scope, "No battery", "This board has no battery reading.")
|
|
48
|
+
return
|
|
49
|
+
root = scope.root
|
|
50
|
+
root.set_flex_flow(lv.FLEX_FLOW.COLUMN)
|
|
51
|
+
root.set_flex_align(lv.FLEX_ALIGN.CENTER, lv.FLEX_ALIGN.CENTER, lv.FLEX_ALIGN.CENTER)
|
|
52
|
+
root.set_style_pad_row(8, 0)
|
|
53
|
+
root.remove_flag(lv.obj.FLAG.SCROLLABLE)
|
|
54
|
+
text = ui.label(root, "", ui.font, ui.WHITE)
|
|
55
|
+
text.set_style_text_align(lv.TEXT_ALIGN.CENTER, 0)
|
|
56
|
+
|
|
57
|
+
if hasattr(battery, "charger"):
|
|
58
|
+
row = lv.obj(root)
|
|
59
|
+
row.remove_style_all()
|
|
60
|
+
row.set_size(lv.SIZE_CONTENT, lv.SIZE_CONTENT)
|
|
61
|
+
row.set_flex_flow(lv.FLEX_FLOW.ROW)
|
|
62
|
+
row.set_flex_align(lv.FLEX_ALIGN.CENTER, lv.FLEX_ALIGN.CENTER, lv.FLEX_ALIGN.CENTER)
|
|
63
|
+
row.set_style_pad_column(10, 0)
|
|
64
|
+
ui.label(row, "Charge", ui.small, ui.MUTED)
|
|
65
|
+
sw = lv.switch(row)
|
|
66
|
+
try:
|
|
67
|
+
if battery.charger():
|
|
68
|
+
sw.add_state(lv.STATE.CHECKED)
|
|
69
|
+
except Exception:
|
|
70
|
+
pass
|
|
71
|
+
|
|
72
|
+
def charge(e):
|
|
73
|
+
battery.charger(sw.has_state(lv.STATE.CHECKED))
|
|
74
|
+
|
|
75
|
+
sw.add_event_cb(charge, lv.EVENT.VALUE_CHANGED, None)
|
|
76
|
+
|
|
77
|
+
board = sys.modules.get("board_config")
|
|
78
|
+
drv = getattr(board, "display_drv", None)
|
|
79
|
+
if drv is not None and hasattr(drv, "brightness"):
|
|
80
|
+
ui.label(root, "Brightness", ui.small, ui.MUTED)
|
|
81
|
+
slider = lv.slider(root)
|
|
82
|
+
slider.set_width(min(scope.size[0] * 2 // 3, 240))
|
|
83
|
+
slider.set_range(5, 100)
|
|
84
|
+
try:
|
|
85
|
+
slider.set_value(int(drv.brightness * 100), False)
|
|
86
|
+
except Exception:
|
|
87
|
+
slider.set_value(100, False)
|
|
88
|
+
|
|
89
|
+
def bright(e):
|
|
90
|
+
drv.brightness = slider.get_value() / 100
|
|
91
|
+
|
|
92
|
+
slider.add_event_cb(bright, lv.EVENT.VALUE_CHANGED, None)
|
|
93
|
+
|
|
94
|
+
def tick(_t=None):
|
|
95
|
+
try:
|
|
96
|
+
text.set_text("\n".join(lines(battery)))
|
|
97
|
+
except OSError as e:
|
|
98
|
+
text.set_text("read failed: %r" % (e,))
|
|
99
|
+
|
|
100
|
+
scope.every(2000, tick)
|
|
101
|
+
tick()
|
apps/battery/app.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name": "battery", "title": "Battery", "category": "System", "icon": "battery_full", "color": "#4D6B2F"}
|