From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9d4129b011f14c7a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: A very Hacky Holidays Date: Mon, 20 Dec 2010 20:59:08 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Mon, 20 Dec 2010 20:59:08 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="17559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PPeLkm97jFVY+UsK/CqClQl84+jUQ4xQ=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:0gLYLjfV52TRe9zTT6MWSm8Ci/Q= Xref: g2news2.google.com comp.lang.ada:17047 Date: 2010-12-20T20:59:08+00:00 List-Id: R Tyler Croy expounded in news:slrnigna8d.b8b.tyler@kiwi.local: > On 2010-12-17, Warren wrote: >> R Tyler Croy expounded in >> news:slrnigl66m.b8b.tyler@kiwi.local: >> >>> For me Ada is relegated to being used in my free time, a >>> lot of which I will be having to hack on things over the >>> upcoming vacation. >>> >>> I wanted to ask you all what you may/may not be hacking >>> on over the break, perhaps we could cheer each other on >>> ;) >>> >>> A little positive reenforcement from your peers can never >>> hurt :) >> >> I've been working on an analog synthesizer. My MIDI module >> uses an ATmega168 using code written in Ada (thanks to >> Rolf's AVR-Ada project). My MIDI module seems to be >> exhibiting key rollover problems, which won't be hard to >> fix. I just need to add a nested "Note On" counter, so >> that I don't prematurely execute a physical "Note Off". >> >> The code is written in two tasks (actually threads under >> AVR-Ada). The main task processes MIDI events and queues >> some events for the 2nd task. The 2nd task takes care of >> waking up at the right time (via timeouts) and performing >> ADSR voltage changes (DAC # 2) and creation of trigger and >> gate signals (digital outputs). Pitch is also established >> by sending a value to the first DAC, using an SPI >> interface. >> >> My original code was all C-ish Arduino stuff, which I was >> not very happy with. When I discovered AVR-Ada, I jumped >> at the opportunity and rewrote it all in Ada. It is so >> much nicer to work with and Ada actually pointed out a >> couple of previously hidden bugs (in the C code). >> >> My latest adventures with the recently built VCA synth >> module, can be found below (there is at least one picture >> of the MIDI module in there somewhere): >> >> http://experimentalistsanonymous.com/board/index.php?topic= >> 2445.0 >> >> ( http://tinyurl.com/2d2p9vh ) >> >> I don't think you need to be a member to view the forum. >> >> Merry Christmas and Hacky New Year! > > Wow, sweet project! I was wondering when an AVR-Ada user > was going to pipe up with a neat project. Embedded work is so much more fun when using Ada, so I couldn't resist. > Does Ada have a theme song you'll be able to pipe through > the device? I have a bunch of work yet to do before it will be playing any tunes. At a minimum I still need to build a VCO (oscillator for pitch), VCF (filter) and LFO (low freq oscillator). However, it is all great homebrewed electronic fun. An analog synth (like this one) is normally only capable of one note at a time (monophonic). So it will take some multi- tracked recording to do anything interesting with it. But that is not a problem. All in due time.... Warren