| Author |
Message |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
Posted: Thu Jun 19, 2008 8:58 pm Post subject:
can cmos divide to musical 3rds, 4ths, 2nds,etc??? |
 |
|
i have seen a way to do 5ths. and octaves are easy. but can CMOS counters (or any other cmos chip) divide to things other than a 5th or an octave? like a 3rd?? or a 7th?
if a top octave chip can do it, it cant be too hard (since those chips were made long ago)
i assume there is a way using discrete gates?
anyway, i dont need all 12 notes
just a couple
thanks _________________ -------------------------------------------- check out various dan music at: http://www.myspace.com/lossnyc
http://www.myspace.com/snazelle
http://www.soundclick.com/lossnyc.htm http://www.indie911.com/dan-snazelle |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Jun 19, 2008 11:04 pm Post subject:
|
 |
|
loss1234, there you go asking imaginative questions again, will your curiosity never cease? haha. You can make pretty much any kind of counter you want if you use a state machine to do it. Actually a counter is a specific type of state machine if I recall correctly. I'd suggest that you read up on state machines and state machine synthesis. I learned it in college and used it in my career, but I've forgotten how to do it now!
That's about all the help I can provide since I have no music training and do not understand what you mean by a 7th or whatever. Could you explain what you meant by that? Now you are the one teaching me, it works both ways, eh? _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Fri Jun 20, 2008 1:25 am Post subject:
|
 |
|
Check out this page here,
http://www.electricdruid.com/forums.html?page=info.dds
It explains one way of doing it. Covers the kind of things which matter anyway.
BTW What is a State Machine? (Apart from being a Bill Manganaro that is! ) _________________ What makes a space ours, is what we put there, and what we do there. |
|
|
Back to top
|
|
 |
jnuaury
Joined: Feb 28, 2008 Posts: 161 Location: chicago
Audio files: 9
|
Posted: Fri Jun 20, 2008 2:14 am Post subject:
|
 |
|
if youd like to explore just intonation you are in luck!
but the conventional tunings we learn arent as easy
i happen to enjoy the sounds of just intonation (which is tuning to whole ratios)
some intervals are will sound very close and some may sound "out of tune"
anyways lets say you have the note E and you divide it by 5 you will get a C that is a 2 octaves and a major 3rd below... if you take the 4th and 5th divisions of your clocking oscillator they will be a major 3rd
so i find it easiest to have a pulse divider set up like ken stones where you have one input dividing into into numerous outputs and trying different combinations of the outputs
an easy way to do this would be to take a few 4017s sharing the same clock and listening to the zeroth output of each counter will changing the which pulse resets the counter |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Fri Jun 20, 2008 2:41 am Post subject:
|
 |
|
| Uncle Krunkus wrote: | BTW What is a State Machine? (Apart from being a Bill Manganaro that is! ) |
Uncle Krunkus, that link was 404 for me.
A state machine is a digital circuit composed of combinational logic and memory that implements a state diagram. A state diagram shows all of the possible memory states and defines the transitions between states according to the present state and the input variables, and also defines the output values at each transition. (my definitions) A state machine is a general model of all digital circuits that contain both memory and logic. The memory is often flip-flops, but can be any type of memory. A computer is really a hugely complex state machine, and a divide-by-n counter is a simple state machine.
If you have the state diagram, you can use synthesis techniques to reduce that diagram to the specific logic and number of flip-flops required to implement the state machine. Gee, I sound like a walking textbook, what caused that? Anyway, that's what a state machine is according to my faulty memory. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24513 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Fri Jun 20, 2008 6:08 am Post subject:
|
 |
|
read the title as "can mosc divide to ..."
The link is working here, maybe it was fixed. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
fluxmonkey
Joined: Jun 24, 2005 Posts: 708 Location: cleve
|
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
Posted: Fri Jun 20, 2008 11:00 am Post subject:
|
 |
|
Darn
if you look in the chapter on COunters in the CMOS COOKBOOK
page 312 in my edition, there is a diagram of how to use a HUGHES 0320 with three BCD switches to get ANY division between 3 and 999
too bad the chip is non-existent. no on has even heard of it.
are there other more modern FREQUENCY synthesizer chips??
inventor:
a 7th or a 3rd is a musical interval. ( i might butcher this as i am a self taught musician)
if you look at the semitones in a scale, c c# d D# e f F# g G# A A# B C) the scale for C would be CDEFGABC
there are some that are sharps and some that are flats. (there is no sharp between E/F or B/C)
so the E is the third, and the G is the fifth.
(a major C chord)
for a c minor, you would flat the 3rd,( which would be E flat-sharps and flats are the same btw)
each scale has certain semitones that it uses and some that you can use but are outside the scale. if you start with your first note, an octave would be the 8th. which is 12 semitones (i think)
you can also count intervals by semitones
one semitone is a minor second. two is a second, three is a minor third, four is a 3rd,etc etc
basically, you just count up a certain amount of semitones to get each interval.
do a search for the circle of fifths, or western scales to get more info.
thanks _________________ -------------------------------------------- check out various dan music at: http://www.myspace.com/lossnyc
http://www.myspace.com/snazelle
http://www.soundclick.com/lossnyc.htm http://www.indie911.com/dan-snazelle |
|
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Fri Jun 20, 2008 3:57 pm Post subject:
|
 |
|
The Electric Druid link was mainly about getting you to read this:
"The ratio of the frequency of one note to the next note up is the twelfth root of two, or 1.05946." Which shows that the divisions required to map out the notes of a chromatic scale are quite specific, and would be hard to obtain using CMOS division.
But, as that same page explains, it's not as hard if you up everything by 16bits first, (though still not exact). Basically, you can't divide a clock stream by anything but integers. Therefore, to get a ratio like 1:1.05946 (or even close) you would need to multiply by 65536 (2^16) and then divide back down by 69433. As far as Lunetta oscillators go, I think it would be easier to just start 16 octaves up.
But,..... I'm sure that, for some of the intervals, you could get a pretty good approximation by only multiplying up by say 4 to 8 octaves, which is fairly easily done with the 4046 and 4017 (possibly cascaded) in the feedback loop.
"jnuary-i checked out the ken stone circuit. i dont quite get how chaining the 4017's further divides the signal. are they chained somehow other than just sharing the same clock??"
loss1234, the 4017 in the feedback loop of the 4046PLL divides down what is coming out of it, and then uses that as it's reference. This "tricks" the 4046 into locking onto a frequency which is multiplied up by however much the 4017 divided it down. Does that make sense?
To cascade 4017s (so you can get 1 pulse out for say every 15 that go in), requires more than just sharing the same clock, you need to add the AND gate like in the example at the bottom of their datasheet. Basically the second 4017s clock comes through the AND when the first gets to it's 10th step. This "state" also inhibits the first 4017. When the second (or third, or fourth) 4017 gets to the "last step" this output resets all the 4017s and the count starts again on the first.
Remember though that you can realise the same division by using a binary counter and a few OR gates, because in this situation we're not that interested in using all the intermediate steps. (but we could be! )
Whether you could actually use this method to make a 4046 multiply the incoming clock up by 16 octaves would be an interesting thing to try. It may have trouble locking on at such high frequencies. (for a 1khz input, 16 octaves up would be about 65Mhz!) No I don't think the 4046 will cut that kind of mustard.
The question is, are there any other intervals apart from the 5th which are relatively simple ratios? Or close enough to be approximated? _________________ What makes a space ours, is what we put there, and what we do there. |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24513 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Fri Jun 20, 2008 4:14 pm Post subject:
|
 |
|
All simple ratios like 1/2, 3/4, 4/3, 4/7 etc. etc. are very useful musically and more easily so than the 'standard piano notes', they are easier to obtain as well.
The idea of having a multiplier followed by a divider is a great one! Don't go over-complicate it by trying to make a 12 tone equally tempered scale out of it, it's a lot of work and the result will just be less good than simple ratios.
Remember that the 12 TET scale is a compromise really that was derived from the simple ratios just for making the piano a manageable thing to build. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
Posted: Sat Jun 21, 2008 6:48 am Post subject:
|
 |
|
blue hell:
("ratios like 1/2, 3/4, 4/3, 4/7 etc. etc. are very useful musically")
Could you possible explain which DIVISIONS on Something like the 4017, these equate to? is it simply that the 2 output= 1/2? and the 3 output equals 3/4? or is it more complicated. I suppose one of the problems i have is that when we start talking about divisions that arent exact intervals but also arent octaves, i dont undertsand how to translate the pin labels to fractions.
but i will start with my ears.
thanks _________________ -------------------------------------------- check out various dan music at: http://www.myspace.com/lossnyc
http://www.myspace.com/snazelle
http://www.soundclick.com/lossnyc.htm http://www.indie911.com/dan-snazelle |
|
|
Back to top
|
|
 |
jnuaury
Joined: Feb 28, 2008 Posts: 161 Location: chicago
Audio files: 9
|
Posted: Sat Jun 21, 2008 6:57 am Post subject:
|
 |
|
if you use one 4017 and compare it to the clock you get a ratio of 1/x
if you divide it by two its 1/2 by three its 1/3 etc
thats why having multiple divisions of the same clock is useful
you could do this with by feeding multiple 4017s and then using a rotary switch to select the division of each chip or whatever....
so you have your main frequency you divide it by 4 on one chip and 5 on another to get a ratio of 4/5 |
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24513 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Sat Jun 21, 2008 7:04 am Post subject:
|
 |
|
When you do nothing all of the outputs of the 4017 will simply divide by 10.
The idea is to take one of the '0' to '9' outputs and connect that one to the reset input which will make the device divide by that number + 1 .. so connect the 0 out to reset and it will divide by 1 ... output 9 back to reset will make it divide by 10. Audio output can be taken from the '0' output, as that one will pulse always. ... hmm I might be one off with the division ratios, not sure if reset is immediate or clocked.
Anyway, it will not on it's own make fractions like 3/4 as for that you need a division by 4 and a multiplication by 3, so you need a rate multiplier as well. A rate multiplier can be made with the PLL thingie mentioned before. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
jnuaury
Joined: Feb 28, 2008 Posts: 161 Location: chicago
Audio files: 9
|
Posted: Sat Jun 21, 2008 7:06 am Post subject:
|
 |
|
no logical AND
you have two signals one is 1/4 the input's frequency the other is 1/5
when you listen through both of these (through mixer or wherever)
you will have an interval with a frequency ratio of 4 to 5 |
|
|
Back to top
|
|
 |
loss1234

Joined: Jul 24, 2007 Posts: 1536 Location: nyc
Audio files: 41
|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24513 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Sat Jun 21, 2008 7:11 am Post subject:
|
 |
|
Sorry, the PLL rate muliplier is not in this thread but in the other  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Sat Jun 21, 2008 7:11 am Post subject:
|
 |
|
| loss1234 wrote: | blue hell:
("ratios like 1/2, 3/4, 4/3, 4/7 etc. etc. are very useful musically")
Could you possible explain which DIVISIONS on Something like the 4017, these equate to? is it simply that the 2 output= 1/2? and the 3 output equals 3/4? or is it more complicated. I suppose one of the problems i have is that when we start talking about divisions that arent exact intervals but also arent octaves, i dont undertsand how to translate the pin labels to fractions.
but i will start with my ears.
thanks |
1/2 is simply half or divide by 2
3/4 is not easily done by simple division (as 3/4 equals 1/1.33333) so you need to multiply by 3 first (top number (denominator)) then divide by 4 (bottom (divisor))
It's the same story for anything which can't be expressed as 1/X where X is a whole number.
Jan was simply starting a basic list of ratios which work, they still (mostly) require multiplying up by a certain factor first.
I'm working on an Excell table which will highlight all basic approximations to a chromatic scale for multiplications up to 5 and down by 10, we'll see how many there are hey? I'm sure that anything which is accurate to 2 decimal places will be useable. (If possibly quite unnerving! ) Maybe the hardware will end up inventing a whole new scale. Fun to play with this sort of stuff.  _________________ What makes a space ours, is what we put there, and what we do there. |
|
|
Back to top
|
|
 |
jnuaury
Joined: Feb 28, 2008 Posts: 161 Location: chicago
Audio files: 9
|
Posted: Sat Jun 21, 2008 7:12 am Post subject:
|
 |
|
| loss1234 wrote: | his Q0 seems to have divide by 7 on the first chip, on the second its a divide by 8 and a divide by 2 (which maybe he is doing with those diodes?) and on the third and 4th its by 6 and 5.
can anyone explain this? |
ok by reseting the 4017 at the 6th output you get one pulse everytime the counter counts to 6 (you divide it by 6)
if you have the counter set to count to 6 you can also take the 3rd count out and when mixing that through diodes (OR) you get a frequency 1/3 the clock in addition to the 1/6 division |
|
|
Back to top
|
|
 |
|