Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
Posted: Mon Mar 22, 2010 10:38 pm Post subject:
The Physical Modeling eChucK DIY Project Subject description: Converting computer models into analog form
After thinking about the concept for a while, I realized that the same techniques I have used to implement the Karplus Strong algorithm as an analog circuit can be applied to many physical models of musical instruments. I see this as an emerging category in the modular synthesis category: physical instrument models.
For example, what if a modular synthesizer owner could just patch in a flute model and have a flute in the performance. Or a Trombone or a woodwind, etc. It's already done with drum machines and perhaps other instrument models and earlier pioneers in modular synthesis have performed exactly this stunt by wiring up modules. The next step, i feel, is to offer specialized circuit boards that perform like real instruments, or at least like models of real instruments.
The technique that I've been working with is simple. First I make a ChucK software model of the proposed circuit, being careful to use only analog hardware implementable programming constructs. This includes delay lines, multipliers, VCOs, VCFs, summing and difference amps, etc. Then once the software model is complete I convert it to a circuit board schematic, breadboard that, then have circuit boards made. The result will hopefully become a new line of modular synthesis products.
Attached you will find my first wind instrument ChucK model, the blown pipe model. Both source code and audio test file are attached. I plan to develop additional software models in this fashion and select one for the first design. Please feel free to modify the software models, change parameters, and generally play around with them. I encourage you to post any comments or suggestions you may have.
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
Posted: Mon Mar 22, 2010 10:42 pm Post subject:
I should also post two of my web references in doing this so you have the whole picture. Here is an excellent web page written for the G2 with algorithms that I am translating into ChucK form:
And here is a historical reference point, an article about Ron Berry who has apparently done all of this kind of thing already, just not in custom circuit board form:
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
Posted: Tue Mar 23, 2010 2:11 am Post subject:
Here is the result of this morning's programming, attached below. It is a simple blown pipe model with actual voltage, current, frequency, and delay calculations that describe the electrical signals on the board. Play it as is and you'll hear what sounds a heck of a lot like someone blowing into a pipe. This sounds promising, now to figure out the more complex flute model...
Les
BlownPipe3.ck
Description:
Blown Pipe model that sounds a lot like a blown pipe.
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
Posted: Tue Mar 23, 2010 10:50 am Post subject:
I've done some more modeling based on the G2 modeling web page and arrived at a passable flute model in ChucK, posted below. The quality of the sound is very sensitive to the gain values which must be tuned to produce the desired sound. Also if the low pass filter is lowered too much, the thing wails in feedback oscillation, ouch! So there is much to learn before prototyping a circuit.
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
Posted: Tue Mar 23, 2010 1:29 pm Post subject:
I ended up recoding the Jet function X^3-x and suddenly the flute really came to life! I must have had an error in the model. Attached is the latest flute ChucK file and an audio sample.
Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 270
Posted: Tue Mar 23, 2010 6:36 pm Post subject:
Thanks Dan, and a huge thanks to all those who contributed to this body of knowledge. All I'm doing here is implementing their designs in analog circuit board form.
I added vibrato which was easy, and I've created a block diagram of the Flute modular synthesizer circuit board. It corresponds closely to the software so hopefully it will work properly.
I ended up recoding the Jet function X^3-x and suddenly the flute really came to life!
Yes, the Flute2 Demo 20100323 1623.mp3 is way better than your first mp3.
Your block diagram is rather more complicated than I expected. Me and my friend Rix made a very nice flute patch on his clavia G2, the main feature being noise as the sound source, and a key tracking resonant filter. Velocity was patched to resonance. With low velocity we got a lot of blow noise, as we "blew" louder the self oscillation of the filter increased the pitch component of the sound.
Well, it's been as while ago, but I think we also had a velocity to Envelope depth to resonance, but it was a fairly simple concept really, not a VCO in sight, and it turned out very expressive and natural sounding.
Joined: May 04, 2007 Posts: 1734 Location: NM USA
Audio files: 54
Posted: Fri Oct 01, 2010 1:41 am Post subject:
Inventor wrote:
I should also post two of my web references in doing this so you have the whole picture. Here is an excellent web page written for the G2 with algorithms that I am translating into ChucK form:
And here is a historical reference point, an article about Ron Berry who has apparently done all of this kind of thing already, just not in custom circuit board form:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum