User:Kwerner/220C

From CCRMA Wiki
Revision as of 10:17, 3 May 2012 by Kwerner (Talk | contribs)

Jump to: navigation, search

April 17th

Interested in changing project topics. Contacted Plogue to see if I could help them with a circuit modeling project. They make a really cool project called ChipSounds, which "authentically emulates 15 vintage 8bit-era sound chips (on top of their variants), down to their smallest idiosyncrasies" in VST/AU/RTAS plugins. In addition to sounding really awesome, the research that goes into developing this product lines up quite well with my research interests (and interest in the compositional restraints, cool sounds, and retro cachet of chiptunes).



April 18th

David Viens from Plogue responded! They are interested in having me work on an analog circuit modeling, and have suggested a few possible projects. They are currently developing a new plugin that also seems very cool. As a fan of old consumer synths and sound making devices, I noticed a lot of familiar circuits in their promo video (especially excited about the Casio SK-1, Speak&Math, and SNES)!

I've responded and let them know about the two projects that I'm most interested in.



April 19th

I need to figure out the legal/intellectual property/&c. issues involved with doing a project for a company as coursework in a graduate class. Hoping to get this cleared up with Prof. Chafe (or other folks who are aware... Spencer? Jiffer?) in the class meeting today, so I can move forward in talks with Plogue and start doing some circuit modeling!



April 23rd

I'm starting to do some work on the Casio SK-1, modelling the analog portions of the circuits. What I worked on over the weekend:

I spent some time with the SK-1 service manual, to try to understand the big picture of what is going on, and which analog parts I might work on modeling. Pages 5, 8, and 9 of the service manual will be particularly relevant to what I'm about to discuss, I'll include scans of them with a few of my notes. My understanding of the signal flow of the analog portion of the circuit (the right half of the block diagram on Page 5) is that it comprises four parts.


1. The envelope/pitch mixing circuits (Page 8)...

...which each (there are 4) take in a "pitch signal" and "envelope signal," and combine them together. It looks like there could be all sorts of interesting stuff happening here, transistors T15 and T16 are working as a kind of two-quadrant multiplier, T17 "mixes" the two signals into a "sound signal", and the resistor and capacitor on the output ("to filter circuit") form a high-pass filter. The diodes and transistors could have some non-linear behavior, and the circuit in general seems to do something more interesting than merely multiplying a signal by an envelope.

Page 8 shows 3 example signals, what looks like an envelope (A), what looks like a signal (B), and what looks like a mix of the two (C). Interestingly, the "mix" does not seem to be a multiplication of (A) and (B) but an addition. However, (A) and (B) are not the same as the "pitch signal" and "envelope signal" that are being fed in the right side of the diagram.

To help understand this, I am brushing up on my SPICE, and building a model of this part of the circuit. Something that could help me would be a better understanding of the nature of the "pitch signal" and "envelope signal" that are being sent in. Question, have Plogue done any measurements of these, or could they otherwise advise?


2. The Change-over Circuit (Page 9)...

...which routes (with an analog switch controlled by pins KO15 and PO3 of the CPU, according to whether the keyboard is in auto-accompany mode or not, etc.) the "Melody or Bass sound signal" and "Melody or Chord sound signal" to the Bass Filter or Melody Filter and Chord Filter or Melody Filter, respectively. The "Melody or Obbligato sound signal" and "Melody sound signal" are always routed through the Melody Filter.

There could be something interesting going on in the analog switch, could be worth looking into (IC2 = TC50H4066). I'll be looking up a data sheet soon to start investigating this.


3. The Filter Circuits (Page 9)...

...which filter the Bass, Chord, and Melody portions of the signal with different filters, as well as the "Percussion sound signal" coming from the CPU (pin SC / 97 / "Analog percussion signal output" on the CPU). The Percussion, Bass, and Chord filters seem pretty simple (all resistors and capacitors), but the Melody filter has a transistor in it as well. The transistor seems to be acting as buffer or follower, again there could be some non-linear behavior worth investigating.


4. The Mixer...

.. which mixes all the signals together. There doesn't seem to be much info on this in the service manual, but an investigation of the circuit should reveal what is going on.


There is also the matter of the microphone or 1/8" jack inputs. I haven't look at this at all yet.



April 24

Some resources for SPICE, thanks to Jack Perng, Collin Raffel, and Robin Gareus for the tips.

Via Jack: LTSpice for Mac OSX

Via Collin: LTSpice - step by step

Via Robin: NGSpice, SPICE Tutorial, NGSpice Manual, Simulating Analog Audio Circuits, NGSpice Sound I/O Support, Faust



April 26

In class (Music 424) today, Jorge Herrera mentioned the work that David Yeh has done on analog circuit modeling. David did his thesis ("Digital Implementation of Musical Distortion Circuits by Analysis and Simulation") in 2009, and it seems very relevant to the modeling work I would like to do. I am looking forward to spending time on a close reading of David's work for next week.



May 2

Today I am reviewing my old Advanced DSP Seminar notes from first quarter. Prof. Dave Berners gave some good lectures on circuit discretization that will be helpful.

I am also going through the LTSpice tutorials. Here are the ones I went through today:

-Your First LTSpice Schematic

-Resistor Capacitor Circuit

-Some LTSPICE Dirty Secrets

-AC Analysis

I made SPICE models of a simple passive lowpass and high pass filter to test it out (links coming soon). I also built models of the Percussion, Bass, Chord, and Melody filters of the SK-1. The first goal of building these circuits in SPICE is to understand portions of the circuit that I don't yet understand, and to confirm the behavior of parts of the circuit that I think I do understand. The percussion filter is a highpass filter, the bass and chord filters are bandpass filters (only one component varys between them, Resistors R27/28 are different values), and the melody filter is a different kind of bandpass filter.

Without taking into account non-ideal or non-linear behavior, the percussion, bass, and chord filters could be understood as linear systems (they only involve resistors and capacitors), and easily discretized (without actual circuit modeling). The transistor in the melody filter complicates it somewhat. If circuit modeling is to be employed, I need to start building a framework for accomplishing it, and do a few tests on simple circuits. I think I will try to do initial numerical models of passive lowpass and highpass filters. I also just read about some of the interesting non-linearities that capacitors may experience. The Wikipedia article explains (see "Non-ideal behavior").

Some inconsistencies in the Melody Filter circuit have popped up; page 5 (Filter Change-Over Circuit & Percussion Circuit) and page 28 (Main PCB Schematic Diagram) don't agree on a few details! The polarity of 3/4 of the capacitors is flipped, and the topology of the circuit is different. I tried to look at page 17 (PCB Top and Bottom View) to resolve this, but it is very difficult to read, and the capacitor polarity is not labelled for the capacitors I care about. I may need to resolve this discrepancy by opening up an actual SK-1...

The cover for my new album!

In other chiptunes news, I just released an album of electronic music that includes some elements of chiptunes music. Perhaps it will shed some light on the reason for my interest in this research topic. Check it out: http://kurtjameswerner.bandcamp.com/