Comments (5)
Hi,
I personally tried some time ago, but stopped when I wanted it not to be "spiky" upon folding, a bit more like an analog behavior…
You are of course welcome to try and submit something through a PR if you get some nice results!
from mozzi.
"spiky" with the sharp turn? Maybe a bit of slew would help?
If you have any of the old code, please send it along.
from mozzi.
One (quick?) approach is to try Mozzi's WaveShaper class which uses a table to determine how the incoming wave gets shaped (or folded). The demo is in the synthesis examples. Scripts for producing tables are in Mozzi/extras/python (see table_generator_template.py), or you could draw tables in Audacity, save as raw 8bit and convert with char2Mozzi.py.
from mozzi.
@cwmoriarty Yes, or just a LowPassFilter after the wavefolding. I have not trace of what I did, that was really a quick test. I think the part that can be tricky is to find, in an efficient way, how many times it has to be folded (if the folder is harsh enough so that it bounces back a few times). I am happy to help if you get started!
@sensorium Yes, that's an idea but if I understand correctly, using the WaveShaper prevents the levels at which the folding will occur to be changed at run-time, no? A big plus comes for waveshapper when levels can be bound to an envelope or so…
from mozzi.
Yes, you're right Tom, using a single fixed table won't enable run-time changes in the mapping.
Just in case it's any use at all, I came across these quick sketches of wave folding and shaping in Pd (though it sounds like you're way ahead already):
folding: https://youtu.be/f2s3mAqLjkg
shaping: https://youtu.be/sg2TpxQ9CbU
from mozzi.
Related Issues (20)
- triangle warm 8129 table includes values outside valid range HOT 1
- Arduino giga port HOT 4
- getAudioInput not defined HOT 2
- The randSeed() argument type is different in the header and source files. HOT 2
- Stereo - Strange error compilation depending if a function was define before updateAudio() - Problem with preprocessor ? HOT 3
- Compilation errors when including both WaveFolder.h and ResonantFilter.h HOT 3
- Unable to compile for Atmega328PB with Arduino IDE HOT 3
- Sample example not working on UNO R4 HOT 11
- Arduino Nano 33 IoT tested and works with the output on DAC0, which is also called A0 HOT 2
- Output frequency 0.25% off on AVRs HOT 1
- RFC: Mozzi 2.0 part 1: Single compilation unit HOT 7
- RFC: Mozzi 2.0 part 2 - Configuration restructuring HOT 7
- Improving fixMath HOT 5
- Please Change Mozzi's License HOT 10
- Using Mozzi and I2C library for LCD HOT 14
- RFC: Mozzi 2.0 part 3 - Miscellanious
- UNO R4 port broken HOT 2
- Compatability/Compilation Issues w/ Nano 33 BLE Sense HOT 5
- Apparent frequency drops when amplitude increased beyond 8 bits on AVR HOT 3
- mozzi_rand cannot go full range HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mozzi.