Joined: Dec 25, 2007 Posts: 251 Location: Sydney, Australia
Audio files: 27
Posted: Tue Jul 15, 2008 1:33 pm Post subject:
By the way, in my FSK, the synch pulse only is put out at the start of the mark (high), not the start of the space (low) which is what I think your diagram notes suggest.
The difference in tone would only be slight, but you would perhaps expect the double synch approach to have a more consistent 1st harmonic, less doppler effect during PWM, but more nasty high harmonics from the sharp transition.
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 237
Posted: Tue Jul 15, 2008 1:37 pm Post subject:
The keyer NCO will be a simple phase accumulator type NCO, the threshhold is the numeric value of the phase accumulator at which point the PWM output will change state. This way, I can vary the keyer's pulse width by changing the threshhold value. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?corruptio optimi pessima
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 237
Posted: Tue Jul 15, 2008 2:20 pm Post subject:
Actually, I was going to do that, a synch on both edges.
So you're saying (above) that I should do the synch pulse only on the threshhold crossing druing the ramp portion of phase accumulator "waveform" (sawtooth really)? That's easier...
I'm wondering, should it be switchable so that synch can occur on either edge (but not both) ? _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?corruptio optimi pessima
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 237
Posted: Thu Jul 17, 2008 8:06 am Post subject:
Ricko wrote:
One or both rather than one or the other, I think. It is not law where the synch goes.
Cheers
Rick
Got it. One last question, if one, which is best or most effective, to synch when it switches to the low formant or to the high formant? (I get confused over mark and space...) _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?corruptio optimi pessima
Joined: Dec 25, 2007 Posts: 251 Location: Sydney, Australia
Audio files: 27
Posted: Thu Jul 17, 2008 8:48 am Post subject:
You would think there would be little difference, but there is a little difference.
When you change the pulse width to flip between the two frequencies you shift the phase of the second frequency formant. This gives a kind of Wow or doppler effect temporarily.
This is just the same as the effect you get when you have a pulse waveshaper driven by a triangle wave rather than a saw: moving the start edge is detected as a pitch variation.
So when the second format is low, changing PW will give a little instability on that low one; when the second formant is high, changing the PW will give a little instability on that high one.
Also, there may be a difference on notes that are higher than the formants, where you don't get a complete cycle. I don't know that it can be generalized, but different waveshapes will be generated.
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 237
Posted: Sun Jul 27, 2008 2:43 pm Post subject:
My FPGA implementation looks like it's working. Needs more work, but it's working as a 2 FSK & synched pair per voice polysynth, 8 voices. Currently only 2 sections because PWM was already there.
For the keyer, are you generating your "sections" from a sawtooth? and do you synch the slave on that sawtooth's reset?
Anyway, it sounds pretty cool, I can get some metallic string sounds which I like, especially in the lower register, almost piano sounding (I use one FSK pair with no transpose, the 2nd with transpose=12, the 2nd also is fined tuned sharp enough to play phasing games). _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?corruptio optimi pessima
Joined: Dec 25, 2007 Posts: 251 Location: Sydney, Australia
Audio files: 27
Posted: Sun Jul 27, 2008 10:28 pm Post subject:
I'd love to hear a sample!
> For the keyer, are you generating your "sections" from a sawtooth? and do you synch the slave on that sawtooth's reset?
Yes and yes.
For the analog hardware design in my mind, I would have a three-section FSK system, presented as a waveshaper rather than an oscillator: front, middle and back sections. My VST emulations suggest that two sections is too plain, and four sections is only useful for baritone or base notes.
Input - Saw in, Front Section Width mod, Back Section Width mod
Pots - Base Freq, Front Section freq, Back Section Freq
Output - Three level FSK sine or tri or half-wave rectified sine
Function
- Triangle oscillator, synced to mid point on Input at highest voltage
- Comparator on Input to go high when higher than a certain voltage, set by Front Section Width.
- Comparator on Input to go high when lower than a certain voltage . set by Back Section Width must be less than the Front Section Width.
- The base frequency is shared by each section. The front and back sections have the deltas from their pots added or subtracted.
This design should give a minimal parts count of perhaps
4 x Op-amp for oscillator and sine shaper
2 x comparator
6 x pots
4 x input
3 x output
without VC control of the oscillator needed, and therefore no expo needed. (On the VST, I didn't find that VC of the section frequencies gave much value: it just sounded like a few sharp band-pass filters moving around, and disguised the central effect of having different tones but same formants no matter which pitch. But it is just taste.)
When doing a two-stage FSK digitally, it is preferable to use a band-limited square to reduce aliasing. Strictly, you need to filter out an octave or two below nyquist from the master and the slave to prevent generating harmonics aliased down into the signal. This need is certainly lessened by using sines on the slave (and you have a high sample rate, as you mentioned, so most aliasing should be above the audiable rate.)
Joined: Dec 25, 2007 Posts: 251 Location: Sydney, Australia
Audio files: 27
Posted: Wed Jul 30, 2008 2:25 am Post subject:
Wow, firmware DIY synthesizers! Congratulations
I would be interested to hear a triangle version of this too. (As I mentioned, I think the richer waveforms tend to disguise the formant effect, but that is not to say that other effects are not pleasant too.)
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 237
Posted: Wed Jul 30, 2008 11:07 am Post subject:
Here is a comparison sample, the patch is the same in both the first and last halves except for the slave waveform. In the first half, triangle is used, in the second half, sawtooth.
Also - I've added a crude modulation for the FSK section values using an ADSR to modulate all 4 (2 for one NCO 2 for the other). You can hear this more in the saw half and also more in the lower register of both halves.
fsk_demo_02.wav
Description:
Sample of both triangle and sawtooth slave waveforms.
Here is a comparison sample, the patch is the same in both the first and last halves except for the slave waveform. In the first half, triangle is used, in the second half, sawtooth.
Also - I've added a crude modulation for the FSK section values using an ADSR to modulate all 4 (2 for one NCO 2 for the other). You can hear this more in the saw half and also more in the lower register of both halves.
Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 237
Posted: Wed Jul 30, 2008 11:28 am Post subject:
Sample rate is 250 KHz - no band limiting...
Oh and only 12 bits... I should add that most internal computations are done in 18 bit signed arithmetic and that the phase accumulators in the NCOs are 33 bits... _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat?corruptio optimi pessima
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