# Code Sharing

**URL:** https://discourse.flucoma.org/c/code-sharing/8.md

[Latest](https://discourse.flucoma.org/latest.md) · [Categories](https://discourse.flucoma.org/categories.md)

---

## [About the Code Sharing category](https://discourse.flucoma.org/t/about-the-code-sharing-category/32)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 0

</div>

This is a place where you can share your proudest code gems, ideally using the toolbox.

---

## [Groove machine using fluid.buftransientslice~](https://discourse.flucoma.org/t/groove-machine-using-fluid-buftransientslice/77)

<div class="topic-metadata">

**Author:** [@pasquetje](https://discourse.flucoma.org/u/pasquetje)\
**Replies:** 7\
**Last updated:** [December 6, 2025, 2:32am UTC](https://discourse.flucoma.org/t/groove-machine-using-fluid-buftransientslice/77 "2025-12-06T02:32:07Z")

</div>

Here is a mini early quick way to watch and process markers generated by fluid.buftransientslice~. The used JSUI interface initially comes from groove~.maxhelp and was improved for the needs. You can stretch the wavefor…

---

## [1.0.9 Release!](https://discourse.flucoma.org/t/1-0-9-release/2645)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 7\
**Last updated:** [September 19, 2025, 6:53am UTC](https://discourse.flucoma.org/t/1-0-9-release/2645 "2025-09-19T06:53:22Z")

</div>

Here we go!!! Release Notes: new features: \[sc\] DataSet can read knearest on the server, see DataSet.kr \[all\] dataset tobuffer now has an argument to flip the ID and the label. breaking changes: \[all\] bufcompose now t…

---

## [Latent-space mapping example code](https://discourse.flucoma.org/t/latent-space-mapping-example-code/946)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 12\
**Last updated:** [August 18, 2025, 8:54am UTC](https://discourse.flucoma.org/t/latent-space-mapping-example-code/946 "2025-08-18T08:54:31Z")

</div>

Dear all As explained in this post I want to map 2 bespoke, non-overlapping timbral spaces that I would have downscale into a latent space that made sense, one for the source, one for the destination. I had the idea tha…

---

## [3 ways of overlapping unmatching descriptor spaces](https://discourse.flucoma.org/t/3-ways-of-overlapping-unmatching-descriptor-spaces/1880)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 3\
**Last updated:** [May 28, 2025, 1:51pm UTC](https://discourse.flucoma.org/t/3-ways-of-overlapping-unmatching-descriptor-spaces/1880 "2025-05-28T13:51:47Z")

</div>

The problem is well-known and fun to play with - I will do a more formal explanation but a first attempt has been made here: Musaiking non-overlaping spectral descriptor spaces - an attempt at explaining the issue clearl…

---

## [Visual Corpus Exploration Patch](https://discourse.flucoma.org/t/visual-corpus-exploration-patch/1154)

<div class="topic-metadata">

**Author:** [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)\
**Replies:** 20\
**Last updated:** [May 28, 2025, 1:41pm UTC](https://discourse.flucoma.org/t/visual-corpus-exploration-patch/1154 "2025-05-28T13:41:43Z")

</div>

Hi everyone, Below is a patch that lets you explore a corpus by analysing it with audio features and mapping those features onto a two-dimensional visual map. You can scrub through the space using your mouse …

---

## [Cool online colab using a variety of tools](https://discourse.flucoma.org/t/cool-online-colab-using-a-variety-of-tools/2584)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 0\
**Last updated:** [May 24, 2025, 1:38pm UTC](https://discourse.flucoma.org/t/cool-online-colab-using-a-variety-of-tools/2584 "2025-05-24T13:38:20Z")

</div>

Hello @jacob.hart has made a cool website which shows how to start a notebook online to make a corpus. It is fun to play with if you have fast internet connection. https://jdchart.github.io/

---

## [Live concat SC](https://discourse.flucoma.org/t/live-concat-sc/2029)

<div class="topic-metadata">

**Author:** [@tedmoore](https://discourse.flucoma.org/u/tedmoore)\
**Replies:** 24\
**Last updated:** [January 22, 2025, 7:00pm UTC](https://discourse.flucoma.org/t/live-concat-sc/2029 "2025-01-22T19:00:39Z")

</div>

04-real-time-concat.scd (6.7 KB)

---

## [1.0.8 is out!](https://discourse.flucoma.org/t/1-0-8-is-out/2498)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 7:35am UTC](https://discourse.flucoma.org/t/1-0-8-is-out/2498 "2025-01-10T07:35:33Z")

</div>

Dear all Here we go! Loads of small bugs, a few improvements. Terse release notes below. Enjoy! 1.0.8 Release Notes Bug Fixes: \[all\] slight improvement of SKMeans’s algorithm (more to come) \[all\] crash fix in true p…

---

## [3D Audio Corpus Explorer - Alpha Demo](https://discourse.flucoma.org/t/3d-audio-corpus-explorer-alpha-demo/2212)

<div class="topic-metadata">

**Author:** [@fearne](https://discourse.flucoma.org/u/fearne)\
**Replies:** 14\
**Last updated:** [September 3, 2024, 1:11am UTC](https://discourse.flucoma.org/t/3d-audio-corpus-explorer-alpha-demo/2212 "2024-09-03T01:11:12Z")

</div>

Hi folks! I’m a postgrad at Huddersfield and have been working on a 3D tool for the purpose of corpus browsing, wanted to share a very early first prototype for y’all to play around with :slight\_smile: Inspired by simil…

---

## [Patch: self-conscious FM](https://discourse.flucoma.org/t/patch-self-conscious-fm/174)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 7\
**Last updated:** [August 22, 2024, 9:48am UTC](https://discourse.flucoma.org/t/patch-self-conscious-fm/174 "2024-08-22T09:48:52Z")

</div>

Hello! As a proof of concept I’ve been trying to make a 2-oscillator-feedbacking-FM-synth to control itself… I share it as is, very under-documented and messy enough to make @rodrigo.constanzo sneer :wink: With my love…

---

## [Python FluCoMa](https://discourse.flucoma.org/t/python-flucoma/1863)

<div class="topic-metadata">

**Author:** [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)\
**Replies:** 5\
**Last updated:** [July 16, 2024, 10:57am UTC](https://discourse.flucoma.org/t/python-flucoma/1863 "2024-07-16T10:57:29Z")

</div>

Hi all, I took to making a new major version, 2.0.0, of the Python/FluCOMa CLI Bindings. The major motivation was to learn how dataclasses can be leveraged to make very simple object representations of the returns from …

---

## [Fluid.jit.plotter, for a better performance than fluid.plotter](https://discourse.flucoma.org/t/fluid-jit-plotter-for-a-better-performance-than-fluid-plotter/1884)

<div class="topic-metadata">

**Author:** [@balintlaczko](https://discourse.flucoma.org/u/balintlaczko)\
**Replies:** 83\
**Last updated:** [April 17, 2024, 2:29pm UTC](https://discourse.flucoma.org/t/fluid-jit-plotter-for-a-better-performance-than-fluid-plotter/1884 "2024-04-17T14:29:01Z")

</div>

I have been working with an increasingly large dataset that I want to “knearest-scrub” around with fluid.plotter. Initially I thought that north of 10k samples in a dataset the fluid.kdtree~ performance degrades so much …

---

## [1.0.7 is here!](https://discourse.flucoma.org/t/1-0-7-is-here/2252)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 6\
**Last updated:** [April 6, 2024, 8:27am UTC](https://discourse.flucoma.org/t/1-0-7-is-here/2252 "2024-04-06T08:27:54Z")

</div>

1.0.7 Release notes New Features all: fluid.dataset has a kNearestDist (in brute force) to match the kNearest(bruteforce) - use with caution! core: new C++ example on how to use the framework max: new nmf examples max: …

---

## [Chaining onset detectors (novelty -\> ampslice)](https://discourse.flucoma.org/t/chaining-onset-detectors-novelty-ampslice/503)

<div class="topic-metadata">

**Author:** [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Replies:** 11\
**Last updated:** [January 8, 2024, 10:31am UTC](https://discourse.flucoma.org/t/chaining-onset-detectors-novelty-ampslice/503 "2024-01-08T10:31:05Z")

</div>

In seeing that loads of people seem to like fluid.bufnoveltyslice~ (@tremblap in APT and @jamesbradbury in his ReaComa stuff), it got me wanting to figure something out where it would be more temporally accurate once it …

---

## [SC: 2D Plot Example Modification](https://discourse.flucoma.org/t/sc-2d-plot-example-modification/2142)

<div class="topic-metadata">

**Author:** [@heretogo](https://discourse.flucoma.org/u/heretogo)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 2:36am UTC](https://discourse.flucoma.org/t/sc-2d-plot-example-modification/2142 "2023-11-09T02:36:41Z")

</div>

In my local SuperCollider user’s group, one of our members requested this so I’m sharing with the community. It’s derived from @tedmoore’s tutorial but traversing the KdTree using a synth instead of using a visual plot. …

---

## [Using MLPregressor to get the confidence vector of MLPclassifier](https://discourse.flucoma.org/t/using-mlpregressor-to-get-the-confidence-vector-of-mlpclassifier/1387)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 6\
**Last updated:** [November 8, 2023, 12:33pm UTC](https://discourse.flucoma.org/t/using-mlpregressor-to-get-the-confidence-vector-of-mlpclassifier/1387 "2023-11-08T12:33:54Z")

</div>

Dear all Someone asked on our GitHub if it was possible for FluidMLPClassifier to provide its confidence vector. The answer is that there is another way: since the MLP code is the same under the hood, one can load a mod…

---

## [Quick NMF toolbox](https://discourse.flucoma.org/t/quick-nmf-toolbox/677)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 4\
**Last updated:** [September 21, 2023, 1:49pm UTC](https://discourse.flucoma.org/t/quick-nmf-toolbox/677 "2023-09-21T13:49:28Z")

</div>

Hello! I’m sharing a bit of a toolbox I needed to code to use my favourite examples from the helpfiles plus some interpolated additive synthesis from the various nmf decomposition. It was mostly for me, right in the mid…

---

## [Using array NamedControls with MLPRegressor for preset interpolation](https://discourse.flucoma.org/t/using-array-namedcontrols-with-mlpregressor-for-preset-interpolation/2086)

<div class="topic-metadata">

**Author:** [@dietcv](https://discourse.flucoma.org/u/dietcv)\
**Replies:** 2\
**Last updated:** [August 27, 2023, 11:47am UTC](https://discourse.flucoma.org/t/using-array-namedcontrols-with-mlpregressor-for-preset-interpolation/2086 "2023-08-27T11:47:21Z")

</div>

hey, after attending the flucoma workshop at stanford early July, I have been creating a more advanced implementation of the MLPRegressor example for interpolating between presets in SC. It can be used with an arbitrary…

---

## [Using FluCoMa tools with reaper](https://discourse.flucoma.org/t/using-flucoma-tools-with-reaper/311)

<div class="topic-metadata">

**Author:** [@jamesbradbury](https://discourse.flucoma.org/u/jamesbradbury)\
**Replies:** 187\
**Last updated:** [August 26, 2023, 10:51pm UTC](https://discourse.flucoma.org/t/using-flucoma-tools-with-reaper/311 "2023-08-26T22:51:20Z")

</div>

Hello, Thanks to the wisdom and knowledge of @tremblap and also some old posts the team made in the REAPER forum I was able to concoct a REASCRIPT script that can segment using noveltyslice inside of a reaper project. W…

---

## [NMF Filter "Transposition"](https://discourse.flucoma.org/t/nmf-filter-transposition/2076)

<div class="topic-metadata">

**Author:** [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Replies:** 3\
**Last updated:** [August 19, 2023, 8:12am UTC](https://discourse.flucoma.org/t/nmf-filter-transposition/2076 "2023-08-19T08:12:22Z")

</div>

Since I’m working on some fluid.nmffilter~ stuff, I figured I’d share a little test patch of bits. Also turns out I tried doing a “filter” thing with NMF like 5 years ago too! What this does is first it sorts the bases …

---

## [Fluid.datasetplot~ abstraction for 2D/3D visualization](https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783)

<div class="topic-metadata">

**Author:** [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Replies:** 99\
**Last updated:** [July 27, 2023, 6:05pm UTC](https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783 "2023-07-27T18:05:20Z")

</div>

After getting a bit tired of scrapping bits and pieces from various helpfiles and examples I decided to make something a bit more generalizable. Enter fluid.datasetplot~: This takes a fluid.dataset~ na…

---

## [SuperCollider: Control rate versions of slicers (FluidBufAmpSlice.kr)](https://discourse.flucoma.org/t/supercollider-control-rate-versions-of-slicers-fluidbufampslice-kr/1937)

<div class="topic-metadata">

**Author:** [@heretogo](https://discourse.flucoma.org/u/heretogo)\
**Replies:** 3\
**Last updated:** [July 4, 2023, 4:08am UTC](https://discourse.flucoma.org/t/supercollider-control-rate-versions-of-slicers-fluidbufampslice-kr/1937 "2023-07-04T04:08:49Z")

</div>

Playing around circle buffers following a conversation with @rodrigo.constanzo. The goal is to detect and analyze events at different timelscales and derive metrics (onset density, aproximate tempo, trend, and variation)…

---

## [Unsupervised Mapping Patch](https://discourse.flucoma.org/t/unsupervised-mapping-patch/1920)

<div class="topic-metadata">

**Author:** [@jpjpjp](https://discourse.flucoma.org/u/jpjpjp)\
**Replies:** 6\
**Last updated:** [May 25, 2023, 3:09pm UTC](https://discourse.flucoma.org/t/unsupervised-mapping-patch/1920 "2023-05-25T15:09:03Z")

</div>

Hi everyone, Just wanted to share a little patch I did to control anything with anything (but it has to go from one list to another of smaller dimensions). Just feed it something between 0. and 1. I used it to control …

---

## [Soundscaper - soundscape generation patch made with flucoma](https://discourse.flucoma.org/t/soundscaper-soundscape-generation-patch-made-with-flucoma/1711)

<div class="topic-metadata">

**Author:** [@brookt](https://discourse.flucoma.org/u/brookt)\
**Replies:** 6\
**Last updated:** [May 16, 2023, 8:34pm UTC](https://discourse.flucoma.org/t/soundscaper-soundscape-generation-patch-made-with-flucoma/1711 "2023-05-16T20:34:00Z")

</div>

I’ve completed a Max patch that relies pretty extensively on flucoma. Hopefully this will be of interest to some of you. Thanks to those who helped with my questions around the forums over the past while as I worked on t…

---

## [A patcher to better link descriptors and perception](https://discourse.flucoma.org/t/a-patcher-to-better-link-descriptors-and-perception/1787)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.flucoma.org/u/amundsen)\
**Replies:** 1\
**Last updated:** [May 16, 2023, 1:33pm UTC](https://discourse.flucoma.org/t/a-patcher-to-better-link-descriptors-and-perception/1787 "2023-05-16T13:33:00Z")

</div>

Despite the great documentation provided around FluCoMa about sound descriptors, most of them still appear very abstract to me - and I think it’s much worse for my students. So I wanted to have a tool to help figuring ou…

---

## [Old patch revived - Max example of time series encoding](https://discourse.flucoma.org/t/old-patch-revived-max-example-of-time-series-encoding/1879)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 0\
**Last updated:** [April 15, 2023, 12:48pm UTC](https://discourse.flucoma.org/t/old-patch-revived-max-example-of-time-series-encoding/1879 "2023-04-15T12:48:16Z")

</div>

Hello In the workshop yesterday, we spoke about time series, i.e. profile of descriptors in time, and I revived the old patch mentioned a few years back (APT - the code) - I made sure it works - it is still very under-d…

---

## [1.0.6 is here!](https://discourse.flucoma.org/t/1-0-6-is-here/1862)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 8:09pm UTC](https://discourse.flucoma.org/t/1-0-6-is-here/1862 "2023-04-12T20:09:22Z")

</div>

1.0.6 Release notes New Features all: KNNregressor is now supporting multi-dimensional output, in effect now a drop-in replacement for MLPregressor Breaking Changes SC: KDTree KR queries now support radius so paramete…

---

## [Musaiking non-overlaping spectral descriptor spaces - an attempt at explaining the issue clearly](https://discourse.flucoma.org/t/musaiking-non-overlaping-spectral-descriptor-spaces-an-attempt-at-explaining-the-issue-clearly/1791)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 3\
**Last updated:** [January 9, 2023, 4:18pm UTC](https://discourse.flucoma.org/t/musaiking-non-overlaping-spectral-descriptor-spaces-an-attempt-at-explaining-the-issue-clearly/1791 "2023-01-09T16:18:27Z")

</div>

Hello As you have read for many years, for all the projects and a decade before, I’m obsessed about playing a corpus with the bass. I am sorry if I repeat myself I now understand how impossible a generalized solution is…

---

## ['real-time' onset detection example](https://discourse.flucoma.org/t/real-time-onset-detection-example/163)

<div class="topic-metadata">

**Author:** [@tremblap](https://discourse.flucoma.org/u/tremblap)\
**Replies:** 70\
**Last updated:** [December 27, 2022, 3:12pm UTC](https://discourse.flucoma.org/t/real-time-onset-detection-example/163 "2022-12-27T15:12:25Z")

</div>

By now I thought I would understand onset detection… but I still thought this little patch would help. For now there is only one native slice object and one in prototype form from examples you’ve seen, but I hope this he…

[Next page](https://discourse.flucoma.org/c/code-sharing/8.md?page=1)
