squishbox 1.0.0__tar.gz
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.
- squishbox-1.0.0/LICENSE +21 -0
- squishbox-1.0.0/PKG-INFO +109 -0
- squishbox-1.0.0/README.md +89 -0
- squishbox-1.0.0/pyproject.toml +31 -0
- squishbox-1.0.0/setup.cfg +4 -0
- squishbox-1.0.0/src/squishbox/__init__.py +25 -0
- squishbox-1.0.0/src/squishbox/apps/__init__.py +0 -0
- squishbox-1.0.0/src/squishbox/apps/amsynthbox.py +488 -0
- squishbox-1.0.0/src/squishbox/apps/fpatcherbox.py +489 -0
- squishbox-1.0.0/src/squishbox/apps/glyphedit.py +100 -0
- squishbox-1.0.0/src/squishbox/apps/launcher.py +74 -0
- squishbox-1.0.0/src/squishbox/apps/sbcommander.py +218 -0
- squishbox-1.0.0/src/squishbox/apps/sbedit.py +122 -0
- squishbox-1.0.0/src/squishbox/apps/trackbox.py +438 -0
- squishbox-1.0.0/src/squishbox/config.py +80 -0
- squishbox-1.0.0/src/squishbox/data/__init__.py +1 -0
- squishbox-1.0.0/src/squishbox/data/defaults/amsynthboxconf.yaml +9 -0
- squishbox-1.0.0/src/squishbox/data/defaults/fpatcherboxconf.yaml +20 -0
- squishbox-1.0.0/src/squishbox/data/defaults/squishboxconf.yaml +86 -0
- squishbox-1.0.0/src/squishbox/data/defaults/trackboxconf.yaml +3 -0
- squishbox-1.0.0/src/squishbox/data/hardware/v2.yaml +16 -0
- squishbox-1.0.0/src/squishbox/data/hardware/v3.yaml +15 -0
- squishbox-1.0.0/src/squishbox/data/hardware/v4.yaml +21 -0
- squishbox-1.0.0/src/squishbox/data/hardware/v6.yaml +21 -0
- squishbox-1.0.0/src/squishbox/hardware.py +579 -0
- squishbox-1.0.0/src/squishbox/keys.py +101 -0
- squishbox-1.0.0/src/squishbox/midi.py +43 -0
- squishbox-1.0.0/src/squishbox/squishbox.py +670 -0
- squishbox-1.0.0/src/squishbox.egg-info/PKG-INFO +109 -0
- squishbox-1.0.0/src/squishbox.egg-info/SOURCES.txt +31 -0
- squishbox-1.0.0/src/squishbox.egg-info/dependency_links.txt +1 -0
- squishbox-1.0.0/src/squishbox.egg-info/requires.txt +8 -0
- squishbox-1.0.0/src/squishbox.egg-info/top_level.txt +1 -0
squishbox-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Bill Peterson
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
squishbox-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: squishbox
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: LCD + button hardware interface
|
|
5
|
+
Author-email: Bill Peterson <bill@geekfunklabs.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/GeekFunkLabs/squishbox
|
|
8
|
+
Project-URL: Issues, https://github.com/GeekFunkLabs/squishbox/issues
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: gpiod
|
|
13
|
+
Requires-Dist: pyyaml
|
|
14
|
+
Requires-Dist: alsa-midi
|
|
15
|
+
Requires-Dist: evdev
|
|
16
|
+
Provides-Extra: full
|
|
17
|
+
Requires-Dist: fluidpatcher; extra == "full"
|
|
18
|
+
Requires-Dist: gi; extra == "full"
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
|
|
21
|
+
# SquishBox
|
|
22
|
+
|
|
23
|
+
- [Official Documentation](https://geekfunklabs.github.io/squishbox)
|
|
24
|
+
- [Source Repository](https://github.com/GeekFunkLabs/squishbox)
|
|
25
|
+
|
|
26
|
+
The SquishBox is a compact add-on board and enclosure for Raspberry Pi
|
|
27
|
+
(primarily Pi 3B+ and Pi 4) that combines:
|
|
28
|
+
|
|
29
|
+
- high-quality stereo DAC with 1/4" outputs
|
|
30
|
+
- MIDI in/out via TRS minijacks
|
|
31
|
+
- 16x2 character LCD
|
|
32
|
+
- pushbutton rotary encoder
|
|
33
|
+
- breakout GPIO for extra controls, LEDs, and peripherals
|
|
34
|
+
|
|
35
|
+
This creates a portable embedded platform for audio projects such as synths,
|
|
36
|
+
sound modules, pedalboard utilities, sequencers, and music players.
|
|
37
|
+
|
|
38
|
+
The software package includes ready-to-run applications plus a simple Python API
|
|
39
|
+
for building your own.
|
|
40
|
+
|
|
41
|
+
## Building/Obtaining
|
|
42
|
+
|
|
43
|
+
This repository includes schematics, PCB fabrication files, BOMs, and enclosure
|
|
44
|
+
models for users who want to build their own hardware.
|
|
45
|
+
|
|
46
|
+
Kits and pre-built units are also available from the Geek Funk Labs
|
|
47
|
+
[store](https://geekfunklabs.com/store).
|
|
48
|
+
|
|
49
|
+
## Installing
|
|
50
|
+
|
|
51
|
+
The SquishBox software targets Raspberry Pi OS 13 (Trixie) on Pi 3B+/4.
|
|
52
|
+
Other platforms may work but are not officially tested.
|
|
53
|
+
|
|
54
|
+
To install on a fresh or existing system, log in as a regular user and run:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
curl -sL geekfunklabs.com/squishbox | bash
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Answer the prompts, wait for install to complete,
|
|
61
|
+
and reboot the Pi to activate the LCD/button interface.
|
|
62
|
+
|
|
63
|
+
## Using the SquishBox
|
|
64
|
+
|
|
65
|
+
On first boot, the SquishBox starts a launcher that lets the user choose
|
|
66
|
+
an app to run or modify system settings.
|
|
67
|
+
Selections can be made by turning the rotary encoder.
|
|
68
|
+
Tapping the rotary encoder confirms a choice.
|
|
69
|
+
Pressing and holding the encoder will cancel or return to the previous
|
|
70
|
+
screen in most situations.
|
|
71
|
+
To safely shut down the SquishBox before disconnecting power,
|
|
72
|
+
use the "Shutdown" option in the "Exit" menu.
|
|
73
|
+
|
|
74
|
+
## Writing SquishBox Apps
|
|
75
|
+
|
|
76
|
+
The squishbox python package provides access to the LCD,
|
|
77
|
+
controls (buttons/encoders), outputs,
|
|
78
|
+
and a set of menu-driven interaction helpers.
|
|
79
|
+
Here is a simple example app:
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
import squishbox
|
|
83
|
+
|
|
84
|
+
sb = squishbox.SquishBox()
|
|
85
|
+
|
|
86
|
+
sb.lcd.clear()
|
|
87
|
+
sb.lcd.write("Audio Test", row=0)
|
|
88
|
+
|
|
89
|
+
while True:
|
|
90
|
+
i, option = sb.menu_choose(["Noise", "Sine", "Exit"], row=1)
|
|
91
|
+
|
|
92
|
+
if option == "Noise":
|
|
93
|
+
sb.shell_cmd("speaker-test -l2 -c2")
|
|
94
|
+
|
|
95
|
+
elif option == "Sine":
|
|
96
|
+
sb.shell_cmd("speaker-test -l2 -c2 -tsine")
|
|
97
|
+
|
|
98
|
+
elif option == "Exit":
|
|
99
|
+
break
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Support and Feature Requests
|
|
103
|
+
|
|
104
|
+
The SquishBox is under active development, and feature requests are
|
|
105
|
+
welcome.
|
|
106
|
+
|
|
107
|
+
Please post requests/questions to Discussions on GitHub,
|
|
108
|
+
and open issues or pull requests for bugs.
|
|
109
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# SquishBox
|
|
2
|
+
|
|
3
|
+
- [Official Documentation](https://geekfunklabs.github.io/squishbox)
|
|
4
|
+
- [Source Repository](https://github.com/GeekFunkLabs/squishbox)
|
|
5
|
+
|
|
6
|
+
The SquishBox is a compact add-on board and enclosure for Raspberry Pi
|
|
7
|
+
(primarily Pi 3B+ and Pi 4) that combines:
|
|
8
|
+
|
|
9
|
+
- high-quality stereo DAC with 1/4" outputs
|
|
10
|
+
- MIDI in/out via TRS minijacks
|
|
11
|
+
- 16x2 character LCD
|
|
12
|
+
- pushbutton rotary encoder
|
|
13
|
+
- breakout GPIO for extra controls, LEDs, and peripherals
|
|
14
|
+
|
|
15
|
+
This creates a portable embedded platform for audio projects such as synths,
|
|
16
|
+
sound modules, pedalboard utilities, sequencers, and music players.
|
|
17
|
+
|
|
18
|
+
The software package includes ready-to-run applications plus a simple Python API
|
|
19
|
+
for building your own.
|
|
20
|
+
|
|
21
|
+
## Building/Obtaining
|
|
22
|
+
|
|
23
|
+
This repository includes schematics, PCB fabrication files, BOMs, and enclosure
|
|
24
|
+
models for users who want to build their own hardware.
|
|
25
|
+
|
|
26
|
+
Kits and pre-built units are also available from the Geek Funk Labs
|
|
27
|
+
[store](https://geekfunklabs.com/store).
|
|
28
|
+
|
|
29
|
+
## Installing
|
|
30
|
+
|
|
31
|
+
The SquishBox software targets Raspberry Pi OS 13 (Trixie) on Pi 3B+/4.
|
|
32
|
+
Other platforms may work but are not officially tested.
|
|
33
|
+
|
|
34
|
+
To install on a fresh or existing system, log in as a regular user and run:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -sL geekfunklabs.com/squishbox | bash
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Answer the prompts, wait for install to complete,
|
|
41
|
+
and reboot the Pi to activate the LCD/button interface.
|
|
42
|
+
|
|
43
|
+
## Using the SquishBox
|
|
44
|
+
|
|
45
|
+
On first boot, the SquishBox starts a launcher that lets the user choose
|
|
46
|
+
an app to run or modify system settings.
|
|
47
|
+
Selections can be made by turning the rotary encoder.
|
|
48
|
+
Tapping the rotary encoder confirms a choice.
|
|
49
|
+
Pressing and holding the encoder will cancel or return to the previous
|
|
50
|
+
screen in most situations.
|
|
51
|
+
To safely shut down the SquishBox before disconnecting power,
|
|
52
|
+
use the "Shutdown" option in the "Exit" menu.
|
|
53
|
+
|
|
54
|
+
## Writing SquishBox Apps
|
|
55
|
+
|
|
56
|
+
The squishbox python package provides access to the LCD,
|
|
57
|
+
controls (buttons/encoders), outputs,
|
|
58
|
+
and a set of menu-driven interaction helpers.
|
|
59
|
+
Here is a simple example app:
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
import squishbox
|
|
63
|
+
|
|
64
|
+
sb = squishbox.SquishBox()
|
|
65
|
+
|
|
66
|
+
sb.lcd.clear()
|
|
67
|
+
sb.lcd.write("Audio Test", row=0)
|
|
68
|
+
|
|
69
|
+
while True:
|
|
70
|
+
i, option = sb.menu_choose(["Noise", "Sine", "Exit"], row=1)
|
|
71
|
+
|
|
72
|
+
if option == "Noise":
|
|
73
|
+
sb.shell_cmd("speaker-test -l2 -c2")
|
|
74
|
+
|
|
75
|
+
elif option == "Sine":
|
|
76
|
+
sb.shell_cmd("speaker-test -l2 -c2 -tsine")
|
|
77
|
+
|
|
78
|
+
elif option == "Exit":
|
|
79
|
+
break
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Support and Feature Requests
|
|
83
|
+
|
|
84
|
+
The SquishBox is under active development, and feature requests are
|
|
85
|
+
welcome.
|
|
86
|
+
|
|
87
|
+
Please post requests/questions to Discussions on GitHub,
|
|
88
|
+
and open issues or pull requests for bugs.
|
|
89
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "squishbox"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "LCD + button hardware interface"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = [
|
|
12
|
+
"LICENSE",
|
|
13
|
+
]
|
|
14
|
+
authors = [
|
|
15
|
+
{ name = "Bill Peterson", email = "bill@geekfunklabs.com" }
|
|
16
|
+
]
|
|
17
|
+
requires-python = ">=3.10"
|
|
18
|
+
dependencies = [
|
|
19
|
+
"gpiod", "pyyaml", "alsa-midi", "evdev"
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[project.optional-dependencies]
|
|
23
|
+
full = ["fluidpatcher", "gi"]
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
Homepage = "https://github.com/GeekFunkLabs/squishbox"
|
|
27
|
+
Issues = "https://github.com/GeekFunkLabs/squishbox/issues"
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.package-data]
|
|
30
|
+
"squishbox.data" = ["**/*.yaml"]
|
|
31
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""SquishBox Raspberry Pi interface
|
|
2
|
+
|
|
3
|
+
This module provides classes and functions for creating python applications
|
|
4
|
+
for the `SquishBox <https://www.geekfunklabs.com/products/squishbox>`_ ,
|
|
5
|
+
a Raspberry Pi add-on that provides an LCD, pushbutton rotary encoder,
|
|
6
|
+
sound card, and MIDI input/output.
|
|
7
|
+
|
|
8
|
+
Requires:
|
|
9
|
+
- gpiod
|
|
10
|
+
- yaml
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
14
|
+
|
|
15
|
+
from .config import CONFIG
|
|
16
|
+
from .squishbox import SquishBox
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
__all__ = ["SquishBox", "CONFIG"]
|
|
20
|
+
|
|
21
|
+
try:
|
|
22
|
+
__version__ = version("squishbox")
|
|
23
|
+
except PackageNotFoundError:
|
|
24
|
+
__version__ = "0.0.0-dev"
|
|
25
|
+
|
|
File without changes
|