Skip to content

Commit

Permalink
finding and fixing double (( Hrefs in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jschrier committed Aug 19, 2024
1 parent f9f5dc0 commit 5d2bab8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _posts/2023-02-04-ROS-Setup-For-Raspberry-Pi-and-Pico.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ reboot # optional reboot the computer to confirm persist

# Other passing thoughts

* Given what a pain it is to compile micro-ros-agent on the Raspberry Pi, and the inconvenience of writing MicroROS code for the pico in C (instead of Python), perhaps there are other, better alternatives for this purpose? For example [MQTT](https://www.tomshardware.com/how-to/send-and-receive-data-raspberry-pi-pico-w-mqtt) is a lightweight publish/subscribe architcture, and using the [mosquitto broker it can be connected to ROS](https://robofoundry.medium.com/combining-ros2-and-mqtt-on-esp32-to-send-twist-messages-bab758cf098). We'll [explore this in the next post](({{ site.baseurl }}{% post_url 2023-02-11-MQTT-and-ROS2-integration %}) ).
* Given what a pain it is to compile micro-ros-agent on the Raspberry Pi, and the inconvenience of writing MicroROS code for the pico in C (instead of Python), perhaps there are other, better alternatives for this purpose? For example [MQTT](https://www.tomshardware.com/how-to/send-and-receive-data-raspberry-pi-pico-w-mqtt) is a lightweight publish/subscribe architcture, and using the [mosquitto broker it can be connected to ROS](https://robofoundry.medium.com/combining-ros2-and-mqtt-on-esp32-to-send-twist-messages-bab758cf098). We'll [explore this in the next post]({{ site.baseurl }}{% post_url 2023-02-11-MQTT-and-ROS2-integration %}) .
* In the end, `micro-ros-agent` is just a wrapper around `DDS-XRCE` so [apparently you can just use that instead](https://answers.ros.org/question/373503/micro-ros-agent-on-raspberry-pi-3/)

4 changes: 2 additions & 2 deletions _posts/2023-04-20-DIY-drum-machine-ideas.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags: audio synth pico drum electronics diy
# Circuit design

* A handful of 2k resistors is enough to build a [two-channel 1 Hz-20 MHz wavegenerator](https://www.instructables.com/Arbitrary-Wave-Generator-With-the-Raspberry-Pi-Pic/) using the programmable IO pins.
* Or drive the good-old [MCP4728 Quad DAC](https://www.adafruit.com/product/4470) [DATASHEET](https://ww1.microchip.com/downloads/en/DeviceDoc/22187E.pdf) at 100 kHz, which is far beyond what I can hear. Heck, I've even got three free channels left on my [MIDI-to-CV project](({{ site.baseurl }}{% post_url 2023-01-21-MIDI-to-CV-on-RP2040-part-2 %})) that could be used for separate drum signals. This type of [direct digital synthesis can be done efficiently](https://vanhunteradams.com/Pico/TimerIRQ/SPI_DDS.html), based on what appears to be an [excellent digital systems design course at Cornell, with comprehensive lecture videos](https://www.youtube.com/playlist?list=PLDqMkB5cbBA5oDg8VXM110GKc-CmvUqEZ)
* Or drive the good-old [MCP4728 Quad DAC](https://www.adafruit.com/product/4470) [DATASHEET](https://ww1.microchip.com/downloads/en/DeviceDoc/22187E.pdf) at 100 kHz, which is far beyond what I can hear. Heck, I've even got three free channels left on my [MIDI-to-CV project]{{ site.baseurl }}{% post_url 2023-01-21-MIDI-to-CV-on-RP2040-part-2 %})) that could be used for separate drum signals. This type of [direct digital synthesis can be done efficiently](https://vanhunteradams.com/Pico/TimerIRQ/SPI_DDS.html), based on what appears to be an [excellent digital systems design course at Cornell, with comprehensive lecture videos](https://www.youtube.com/playlist?list=PLDqMkB5cbBA5oDg8VXM110GKc-CmvUqEZ)
* Or go sample-based with a [PicoAudio I2S pack](https://shop.pimoroni.com/en-us/products/pico-audio-pack) I've got one of these kicking around the house, which I used for a Markov-chain music composition project...could also just program some wavetables for this. Might be the easiest path...[potentially as simple as IO](https://github.com/todbot/circuitpython-tricks/blob/main/larger-tricks/pidaydrummachine.py)
* I2S audio can get really cheap ([just a few bucks](https://www.aliexpress.us/item/3256802711963831.html?gatewayAdapt=glo2usa4itemAdapt&_randl_shipto=US))
* I2S is in [a preview for Micropython v1.19 so limited demos exist](https://github.com/miketeachman/micropython-i2s-examples)...or else you have to use [circuitpython](https://learn.adafruit.com/mp3-playback-rp2040/pico-i2s-mp3)
Expand All @@ -20,7 +20,7 @@ tags: audio synth pico drum electronics diy

* [digital-synthesis drum machine](https://www.youtube.com/watch?v=A_Bv5Ad-Cy8)
* If one gets [inspired by the classic TR-808 analog drum machine](http://mickeydelp.com/blog/anatomy-of-a-drum-machine) the signals have the form of: *drum*: decaying sine wave; *snare*: noisy decaying sine wave; *cymbal*: white noise (can tweak this with a PRNG)
* [Kurt Werner](https://ccrma.stanford.edu/~kwerner/) did a phd in simulating analog circuits, including the TR-808...and led me into a rabbit hole of [1-bit music](({{ site.baseurl }}{% post_url 2023-04-20-1-Bit-Music %}))
* [Kurt Werner](https://ccrma.stanford.edu/~kwerner/) did a phd in simulating analog circuits, including the TR-808...and led me into a rabbit hole of [1-bit music]({{ site.baseurl }}{% post_url 2023-04-20-1-Bit-Music %})
* [Euclidean rhythms](https://en.wikipedia.org/wiki/Euclidean_rhythm), naturally... (see also [post]({{ site.baseurl }}{% post_url 2023-06-03-Euclidean-Rhythm %}))
* [Teensy-based drum machine](https://cdm.link/2023/02/diy-drum-machine-teensy/) --- looks like [C-code describing the various audioparameters and how they play with the switches and potentiometers](https://github.com/albnys/Drum-Machine/blob/main/Drum_machine.ino)
* [Polaron](https://github.com/zueblin/Polaron) --teensy-based drum machine, nice interface, sequencer, c-code, open-source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Import this into [PrusaSlicer](https://www.prusa3d.com/page/prusaslicer_424/) an

To make this self supporting, the rise/run behavior has to be much more shallow than what you see in the example Bexfield sculptures, so ours looks more like a lumpy potato :-)

It may be more interesting to try another strategy; the ones with the flattened base could be self supporting in that axes. [But we will leave that for a future project...](({{ site.baseurl }}{% post_url 2023-11-25-Computational-Sculpture:-After-Karen-Bexfield,-part-2 %} ))
It may be more interesting to try another strategy; the ones with the flattened base could be self supporting in that axes. [But we will leave that for a future project...]({{ site.baseurl }}{% post_url 2023-11-25-Computational-Sculpture:-After-Karen-Bexfield,-part-2 %} )

## Notes on 3D-printing

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Dataset[#, MaxItems -> All] &@result["Messages"]

## Is any of this necessary?

In our [introductory LLMTools post, where we implemented some basic chemistry tools, we found that GPT-4 was pretty good at stringing together a couple tools without any detailed prompting](({{ site.baseurl }}{% post_url 2023-11-27-LLMTools-demonstration %})). So this may really not be strictly necessary. Perhaps a simple chain-of-thought prompt would suffice to lay out a plan.
In our [introductory LLMTools post, where we implemented some basic chemistry tools, we found that GPT-4 was pretty good at stringing together a couple tools without any detailed prompting]({{ site.baseurl }}{% post_url 2023-11-27-LLMTools-demonstration %}). So this may really not be strictly necessary. Perhaps a simple chain-of-thought prompt would suffice to lay out a plan.

There is certainly more to learn from [Lilian Weng's review](https://lilianweng.github.io/posts/2023-06-23-agent/).

Expand Down
4 changes: 2 additions & 2 deletions _posts/2024-01-16-GPT-4-does-acid-(base-chemistry).md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ The strategy looks OK, but it looks like some of the arithmetic went awry. But.

### If you give an LLM a calculator...

Just copy and paste the calculator code from the [previous post](({{ site.baseurl }}{% post_url 2024-01-09-Accurate-and-safe-LLM-numerical-calculations-using-Interpreter-and-LLMTools %})).
Just copy and paste the calculator code from the [previous post]({{ site.baseurl }}{% post_url 2024-01-09-Accurate-and-safe-LLM-numerical-calculations-using-Interpreter-and-LLMTools %}).

```mathematica
calculate = LLMTool[
Expand Down Expand Up @@ -368,7 +368,7 @@ Let's calculate the value of \( K_a \) of \( NH_4^+ \):

### Reflect on your result

Chain of Thought and Self-Reflection are powerful strategies for creating LLM agents (see [previous post on LLM agents](({{ site.baseurl }}{% post_url 2024-01-13-Implementing-the-ReAct-LLM-Agent-pattern-the-hard-way-and-the-easy-way %}))). This is how we teach students too: When you calculate an answer, see if it is plausible--we wouldn't expect the salt of a strong base should be a weak acid, so we would expect a weakly acidic pH as the answer. This would correct some of the errors we saw . Here we try an experiment where we do NOT provide a calculator, but DO ask for self reflection:
Chain of Thought and Self-Reflection are powerful strategies for creating LLM agents (see [previous post on LLM agents]({{ site.baseurl }}{% post_url 2024-01-13-Implementing-the-ReAct-LLM-Agent-pattern-the-hard-way-and-the-easy-way %})). This is how we teach students too: When you calculate an answer, see if it is plausible--we wouldn't expect the salt of a strong base should be a weak acid, so we would expect a weakly acidic pH as the answer. This would correct some of the errors we saw . Here we try an experiment where we do NOT provide a calculator, but DO ask for self reflection:

```mathematica
reflect = LLMConfiguration[
Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-07-20-Eurorack-case-building.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ date: 2024-07-20
tags: synth diy fusion360
---

This spring I [came to the conclusion that I needed to expand my Eurorack case](({{ site.baseurl }}{% post_url 2024-04-30-Great-Ideas-from-Korea,-part-2 %} )...). I had decided to buy one, but then again I don't need to expand it that much, and so naturally I am going to yak shave by **building a case...**
This spring I [came to the conclusion that I needed to expand my Eurorack case]({{ site.baseurl }}{% post_url 2024-04-30-Great-Ideas-from-Korea,-part-2 %}). I had decided to buy one, but then again I don't need to expand it that much, and so naturally I am going to yak shave by **building a case...**

# Desirerata

Expand Down

0 comments on commit 5d2bab8

Please sign in to comment.